From 62834e9e3fb6ec8f10da1b1229d04da55947ac73 Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Tue, 13 Aug 2019 03:02:30 +0200 Subject: [PATCH] Small fixup to stinger projectiles. --- sndinfo.txt | 3 +-- zscript/stinger.zsc | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/sndinfo.txt b/sndinfo.txt index 8382640..93a9333 100644 --- a/sndinfo.txt +++ b/sndinfo.txt @@ -112,6 +112,5 @@ stinger/altfire stingera stinger/hit bladehit stinger/hit2 ricochet stinger/flesh chunkhit -$pitchshift stinger/hit2 5 -flak/click click \ No newline at end of file +flak/click click diff --git a/zscript/stinger.zsc b/zscript/stinger.zsc index 5a8d2ca..25cdcc1 100644 --- a/zscript/stinger.zsc +++ b/zscript/stinger.zsc @@ -35,7 +35,16 @@ Class StingerProjectile : Actor Height 2; PROJECTILE; +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 { @@ -43,15 +52,17 @@ Class StingerProjectile : Actor TPRJ A -1 Bright; Stop; Death: + Crash: 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); + A_AlertMonsters(); } TPRJ BCDEFG 2 Bright; Stop; XDeath: - TNT1 A 1 A_PlaySound("stinger/flesh"); + TNT1 A 1; Stop; } }