From 6a1cb22e6de811856b64a839bc4862043806a6f2 Mon Sep 17 00:00:00 2001 From: zaCade Date: Wed, 18 Jul 2018 15:58:30 +0200 Subject: [PATCH] StopSound: Add 'Shotgun Shot' only on CSS. Seems it causes errors on CSGO. --- StopSound/scripting/StopSound.sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/StopSound/scripting/StopSound.sp b/StopSound/scripting/StopSound.sp index 54b24736..1dd22715 100644 --- a/StopSound/scripting/StopSound.sp +++ b/StopSound/scripting/StopSound.sp @@ -48,9 +48,6 @@ public void OnPluginStart() g_MapMusic = new StringMap(); - // Detect game and hook appropriate tempent. - AddTempEntHook("Shotgun Shot", CSS_Hook_ShotgunShot); - // Ambient sounds AddAmbientSoundHook(Hook_AmbientSound); @@ -86,6 +83,9 @@ public void OnPluginStart() } else // CS:S { + // Detect game and hook appropriate tempent. + AddTempEntHook("Shotgun Shot", CSS_Hook_ShotgunShot); + // Weapon sounds will be caught here. AddNormalSoundHook(Hook_NormalSound_CSS);