Disable music feature of StopSound, it's causing double playback sometimes?
This commit is contained in:
parent
567921eb88
commit
c993d05129
@ -54,7 +54,7 @@ public void OnPluginStart()
|
||||
AddTempEntHook("Shotgun Shot", CSS_Hook_ShotgunShot);
|
||||
|
||||
// Ambient sounds
|
||||
AddAmbientSoundHook(Hook_AmbientSound);
|
||||
//AddAmbientSoundHook(Hook_AmbientSound);
|
||||
|
||||
// Map music will be caught here
|
||||
HookEvent("round_end", Event_RoundEnd);
|
||||
@ -62,8 +62,8 @@ public void OnPluginStart()
|
||||
|
||||
CreateConVar("sm_stopsound_version", PLUGIN_VERSION, "Toggle Weapon Sounds", FCVAR_NOTIFY|FCVAR_DONTRECORD|FCVAR_REPLICATED);
|
||||
RegConsoleCmd("sm_stopsound", Command_StopSound, "Toggle hearing weapon sounds");
|
||||
RegConsoleCmd("sm_stopmusic", Command_StopMusic, "Toggle hearing map music");
|
||||
RegConsoleCmd("sm_music", Command_StopMusic, "Toggle hearing map music");
|
||||
//RegConsoleCmd("sm_stopmusic", Command_StopMusic, "Toggle hearing map music");
|
||||
//RegConsoleCmd("sm_music", Command_StopMusic, "Toggle hearing map music");
|
||||
|
||||
// Cookies
|
||||
g_hCookieStopSound = RegClientCookie("weaponsound_blocked", "Are weapon sounds enabled", CookieAccess_Protected);
|
||||
@ -120,7 +120,7 @@ public void OnPluginEnd()
|
||||
RemoveTempEntHook("Shotgun Shot", CSS_Hook_ShotgunShot);
|
||||
|
||||
// Remove ambient sound hook
|
||||
RemoveAmbientSoundHook(Hook_AmbientSound);
|
||||
//RemoveAmbientSoundHook(Hook_AmbientSound);
|
||||
|
||||
// Find ReloadEffect
|
||||
UserMsg ReloadEffect = GetUserMessageId("ReloadEffect");
|
||||
@ -235,7 +235,7 @@ public void OnClientCookiesCached(int client)
|
||||
// Map Music cookie
|
||||
GetClientCookie(client, g_hCookieStopMapMusic, sBuffer, sizeof(sBuffer));
|
||||
|
||||
if(sBuffer[0] != '\0')
|
||||
if(sBuffer[0] != '\0' && false)
|
||||
{
|
||||
g_bStopMapMusic[client] = true;
|
||||
g_bStopMapMusicHooked = true;
|
||||
|
Loading…
Reference in New Issue
Block a user