StopSound: Add 'Shotgun Shot' only on CSS.

Seems it causes errors on CSGO.
This commit is contained in:
zaCade 2018-07-18 15:58:30 +02:00
parent ab5bbd6e95
commit 6a1cb22e6d

View File

@ -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);