Small fixup to stinger projectiles.
This commit is contained in:
parent
3a8925f3c0
commit
62834e9e3f
2 changed files with 15 additions and 5 deletions
|
|
@ -112,6 +112,5 @@ stinger/altfire stingera
|
||||||
stinger/hit bladehit
|
stinger/hit bladehit
|
||||||
stinger/hit2 ricochet
|
stinger/hit2 ricochet
|
||||||
stinger/flesh chunkhit
|
stinger/flesh chunkhit
|
||||||
$pitchshift stinger/hit2 5
|
|
||||||
|
|
||||||
flak/click click
|
flak/click click
|
||||||
|
|
@ -35,7 +35,16 @@ Class StingerProjectile : Actor
|
||||||
Height 2;
|
Height 2;
|
||||||
PROJECTILE;
|
PROJECTILE;
|
||||||
+SKYEXPLODE;
|
+SKYEXPLODE;
|
||||||
+BLOODSPLATTER;
|
}
|
||||||
|
override int DoSpecialDamage( Actor target, int damage, Name damagetype )
|
||||||
|
{
|
||||||
|
if ( !target.bNOBLOOD )
|
||||||
|
{
|
||||||
|
target.SpawnBlood(pos,AngleTo(target),damage);
|
||||||
|
A_PlaySound("stinger/flesh");
|
||||||
|
A_AlertMonsters();
|
||||||
|
}
|
||||||
|
return damage;
|
||||||
}
|
}
|
||||||
States
|
States
|
||||||
{
|
{
|
||||||
|
|
@ -43,15 +52,17 @@ Class StingerProjectile : Actor
|
||||||
TPRJ A -1 Bright;
|
TPRJ A -1 Bright;
|
||||||
Stop;
|
Stop;
|
||||||
Death:
|
Death:
|
||||||
|
Crash:
|
||||||
TNT1 A 0
|
TNT1 A 0
|
||||||
{
|
{
|
||||||
if ( !Random[Stinger](0,2) ) A_PlaySound("stinger/hit2",CHAN_BODY,0.5);
|
if ( !Random[Stinger](0,2) ) A_PlaySound("stinger/hit2",CHAN_BODY,0.5,pitch:FRandom[Stinger](0.5,1.5));
|
||||||
else A_PlaySound("stinger/hit",CHAN_BODY,0.6);
|
else A_PlaySound("stinger/hit",CHAN_BODY,0.6);
|
||||||
|
A_AlertMonsters();
|
||||||
}
|
}
|
||||||
TPRJ BCDEFG 2 Bright;
|
TPRJ BCDEFG 2 Bright;
|
||||||
Stop;
|
Stop;
|
||||||
XDeath:
|
XDeath:
|
||||||
TNT1 A 1 A_PlaySound("stinger/flesh");
|
TNT1 A 1;
|
||||||
Stop;
|
Stop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue