From bcc98f4d3c6058b222f9bd5d6d9f0ef649ec6f63 Mon Sep 17 00:00:00 2001 From: LegendaryGuard Date: Mon, 14 Jun 2021 23:39:18 +0200 Subject: [PATCH] Add sound part for victim, playercrush SMB feature --- qcsrc/common/mutators/mutator/player_crush/player_crush.qc | 3 +++ 1 file changed, 3 insertions(+) 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 } -- 2.39.2