]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add sound part for victim, playercrush SMB feature
authorLegendaryGuard <rootuser999@gmail.com>
Mon, 14 Jun 2021 21:39:18 +0000 (23:39 +0200)
committerLegendaryGuard <rootuser999@gmail.com>
Mon, 14 Jun 2021 21:39:18 +0000 (23:39 +0200)
qcsrc/common/mutators/mutator/player_crush/player_crush.qc

index a72c226a1c20cbf331628ef051fa1f970f731562..db21c3db627b4088fa930c012aaa2aad79b87be5 100644 (file)
@@ -58,6 +58,7 @@ void pc_PlayerTouch(entity this, entity toucher)
                {
                        Damage (this, toucher, toucher, autocvar_g_player_crush_damage, DEATH_VH_CRUSH.m_id, DMG_NOWEP, this.origin, '0 0 0');
                        sound(toucher, CH_TRIGGER_SINGLE, SND_GOOMBA_STOMP, VOL_BASE, ATTEN_NORM);
+                       sound(this, CH_TRIGGER_SINGLE, SND_GOOMBA_STOMP, VOL_BASE, ATTEN_NORM);
                }
 #endif
 
@@ -90,6 +91,7 @@ void pc_PlayerTouch(entity this, entity toucher)
 
                        Damage (toucher, this, this, autocvar_g_player_crush_damage, DEATH_VH_CRUSH.m_id, DMG_NOWEP, toucher.origin, '0 0 0');
                        sound(this, CH_TRIGGER_SINGLE, SND_GOOMBA_STOMP, VOL_BASE, ATTEN_NORM);
+                       sound(toucher, CH_TRIGGER_SINGLE, SND_GOOMBA_STOMP, VOL_BASE, ATTEN_NORM);
        #endif
 #ifdef GAMEQC
                }
@@ -119,6 +121,7 @@ void pc_PlayerTouch(entity this, entity toucher)
 
                        Damage (toucher, this, this, autocvar_g_player_crush_damage, DEATH_VH_CRUSH.m_id, DMG_NOWEP, toucher.origin, '0 0 0');
                        sound(this, CH_TRIGGER_SINGLE, SND_GOOMBA_STOMP, VOL_BASE, ATTEN_NORM);
+                       sound(toucher, CH_TRIGGER_SINGLE, SND_GOOMBA_STOMP, VOL_BASE, ATTEN_NORM);
        #endif
 #ifdef GAMEQC
                }