From: LegendaryGuard Date: Mon, 14 Jun 2021 21:39:18 +0000 (+0200) Subject: Add sound part for victim, playercrush SMB feature X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bcc98f4d3c6058b222f9bd5d6d9f0ef649ec6f63;p=xonotic%2Fxonotic-data.pk3dir.git Add sound part for victim, playercrush SMB feature --- diff --git a/qcsrc/common/mutators/mutator/player_crush/player_crush.qc b/qcsrc/common/mutators/mutator/player_crush/player_crush.qc index a72c226a1..db21c3db6 100644 --- a/qcsrc/common/mutators/mutator/player_crush/player_crush.qc +++ b/qcsrc/common/mutators/mutator/player_crush/player_crush.qc @@ -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 }