mirror of
https://github.com/Haze1337/Sound-Manager.git
synced 2025-12-07 18:38:33 +00:00
Opt
Opt
This commit is contained in:
parent
ef70df5eac
commit
d18478ed34
Binary file not shown.
@ -478,11 +478,6 @@ public Action MuteAmbientTimer(Handle hTimer, any data)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!HasEntProp(entity, Prop_Data, "m_iszSound"))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
for(int i = 1; i <= MaxClients; i++)
|
for(int i = 1; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
if(!IsValidClient(i))
|
if(!IsValidClient(i))
|
||||||
@ -509,9 +504,7 @@ public Action SoundHook_Ambient(char sample[PLATFORM_MAX_PATH], int &entity, flo
|
|||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
char sClassname[64];
|
if(!HasEntProp(entity, Prop_Data, "m_iszSound"))
|
||||||
GetEntityClassname(entity, sClassname, 64);
|
|
||||||
if(!StrEqual(sClassname, "ambient_generic"))
|
|
||||||
{
|
{
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user