]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add additional sound if we hit in the air with the vortex with maximum damage
authorz411 <z411@omaera.org>
Wed, 28 Jul 2021 23:06:25 +0000 (19:06 -0400)
committerz411 <z411@omaera.org>
Wed, 28 Jul 2021 23:14:57 +0000 (19:14 -0400)
qcsrc/common/sounds/all.inc
qcsrc/common/weapons/weapon/vortex.qc

index f296df93a2aa41ebd6b795640b136aca977cd910..d1d9ad31800cf5d3d68aaaea8a0c52087ceee987 100644 (file)
@@ -280,6 +280,8 @@ SOUND(ENDMATCH, "misc/endmatch");
 SOUND(OVERTIME, "misc/overtime");
 SOUND(TIMEOUT, "misc/timeout");
 
+SOUND(MIDAIR, "misc/midair");
+
 SOUND(SPAWN, "misc/spawn");
 
 SOUND(TALK, "misc/talk");
index 32026c9efee3ee444e5d232acce5b41cb30a7a26..cea974854a07f4409573da73905170901a3ebf3e 100644 (file)
@@ -142,6 +142,9 @@ void W_Vortex_Attack(Weapon thiswep, entity actor, .entity weaponentity, float i
        FireRailgunBullet(actor, weaponentity, w_shotorg, w_shotorg + w_shotdir * max_shot_distance, mydmg, false, myforce, mymindist, mymaxdist, myhalflife, myforcehalflife, dtype);
 
        if(yoda && flying) {
+               if(charge == 1) // play additional sound if we hit in the air with maximum damage
+                       sound(NULL, CH_INFO, SND_MIDAIR, VOL_BASE, ATTN_NONE);
+               
                Give_Medal(actor, YODA);
        }