Insurgency

Insurgency

L4D2 soundscapes
4 条留言
Nullifidian 2022 年 3 月 18 日 上午 4:25 
Thanks for the update
Nullifidian 2022 年 3 月 15 日 下午 2:01 
part of code to block loop if anyone want:

public void OnPluginStart() {
AddNormalSoundHook(NormalSoundHook);
}

public Action NormalSoundHook(int clients[64], int &numClients, char sound[PLATFORM_MAX_PATH],
int &entity, int &channel, float &volume, int &level, int &pitch, int &flags) {

if (StrEqual(sound,"ambient/fire/fire_small_loop2.wav")) {
return Plugin_Handled;
}
return Plugin_Continue;
}
Nullifidian 2022 年 3 月 15 日 下午 1:55 
One of your recent updates added: "root\sound\ambient\fire\fire_small_loop2.wav" which make any sourcemod plugin that uses "IgniteEntity" start playing an endless loop of this sound. While it is possible to block it with a soundhook it's a kinda waste of CPU.