Stunner implemented.

Small tweaks.
This commit is contained in:
Marisa the Magician 2019-09-22 15:20:52 +02:00
commit c0ad22d9e6
8 changed files with 327 additions and 7 deletions

View file

@ -102,7 +102,7 @@ Class FatRing : Actor
{
Super.Tick();
if ( isFrozen() ) return;
A_FadeOut(1/21.,0);
A_FadeOut(1/19.,0);
}
States
{
@ -128,6 +128,7 @@ Class BigBlast : Actor
override void PostBeginPlay()
{
Super.PostBeginPlay();
A_AlertMonsters();
A_Explode(50+special1,150);
A_QuakeEx(4,4,4,10,0,300,"",QF_RELATIVE|QF_SCALEDOWN,falloff:150,rollintensity:0.2);
A_PlaySound("big/blast",CHAN_VOICE,pitch:FRandom[BigGun](0.8,1.2));
@ -326,6 +327,7 @@ Class BigGun : UnrealWeapon
l.hitactor.DamageMobj(invoker,self,l.hitdamage,'BigShot',DMG_THRUSTLESS);
UTMainHandler.DoKnockback(l.hitactor,l.x,90000.);
let b = Spawn("BigBlast",l.hitlocation-l.x*8.);
b.target = self;
b.special1 = l.hitdamage;
b.angle = atan2(l.x.y,l.x.x);
b.pitch = asin(-l.x.z);
@ -349,6 +351,7 @@ Class BigGun : UnrealWeapon
if ( !invoker.t.Results.Side ) hitnormal *= -1;
}
let b = Spawn("BigBlast",invoker.t.Results.HitPos+hitnormal*8.);
b.target = self;
b.special1 = int(invoker.t.penetration);
b.angle = atan2(hitnormal.y,hitnormal.x);
b.pitch = asin(-hitnormal.z);