diff --git a/plugins/l4d2_feedthetrolls.smx b/plugins/l4d2_feedthetrolls.smx index b7a8f6b..a868750 100644 Binary files a/plugins/l4d2_feedthetrolls.smx and b/plugins/l4d2_feedthetrolls.smx differ diff --git a/scripting/include/feedthetrolls/combos.inc b/scripting/include/feedthetrolls/combos.inc index 2686bf2..6e5904f 100644 --- a/scripting/include/feedthetrolls/combos.inc +++ b/scripting/include/feedthetrolls/combos.inc @@ -58,7 +58,7 @@ void SetupsTrollCombos() { SetupCombo(combo, "Shut up"); combo.AddTroll("Vocalize Gag"); - combo.AddTroll("Honk / Meow", .flags=1); + combo.AddTroll("Honk / Meow / Woof", .flags=1); SetupCombo(combo, "Weakness Compels You"); combo.AddTroll("No Shove"); diff --git a/scripting/include/feedthetrolls/events.inc b/scripting/include/feedthetrolls/events.inc index af0be62..7a10171 100644 --- a/scripting/include/feedthetrolls/events.inc +++ b/scripting/include/feedthetrolls/events.inc @@ -8,6 +8,9 @@ public void OnMapStart() { if(hBotReverseFFDefend.IntValue > 0) hSbFriendlyFire.BoolValue = true; AddFileToDownloadsTable("sound/custom/meow1.mp3"); PrecacheSound("custom/meow1.mp3"); + AddFileToDownloadsTable("sound/custom/woof1.mp3"); + PrecacheSound("custom/woof1.mp3"); + lastButtonUser = -1; HookEntityOutput("func_button", "OnPressed", Event_ButtonPress); @@ -273,7 +276,7 @@ public Action OnClientSayCommand(int client, const char[] command, const char[] static int honkID; static int profanityID; - if(honkID == 0) honkID = GetTrollID("Honk / Meow"); + if(honkID == 0) honkID = GetTrollID("Honk / Meow / Woof"); if(profanityID == 0) profanityID = GetTrollID("No Profanity"); if(Trolls[honkID].IsActive(client) && Trolls[honkID].activeFlagClients[client] & 1) { @@ -705,7 +708,7 @@ public void OnSceneStageChanged(int scene, SceneStages stage) { public Action SoundHook(int clients[MAXPLAYERS], int& numClients, char sample[PLATFORM_MAX_PATH], int& entity, int& channel, float& volume, int& level, int& pitch, int& flags, char soundEntry[PLATFORM_MAX_PATH], int& seed) { static int honkID; static int vocalGagID; - if(honkID == 0) honkID = GetTrollID("Honk / Meow"); + if(honkID == 0) honkID = GetTrollID("Honk / Meow / Woof"); if(vocalGagID == 0) vocalGagID = GetTrollID("Vocalize Gag"); if(lastButtonUser > 0 && IsClientConnected(lastButtonUser) && !IsFakeClient(lastButtonUser) && StrEqual(sample, "npc/mega_mob/mega_mob_incoming.wav")) { @@ -729,6 +732,8 @@ public Action SoundHook(int clients[MAXPLAYERS], int& numClients, char sample[PL strcopy(sample, sizeof(sample), "player/footsteps/clown/concrete1.wav"); else if(Trolls[honkID].activeFlagClients[entity] & 2) strcopy(sample, sizeof(sample), "custom/meow1.mp3"); + else if(Trolls[honkID].activeFlagClients[entity] & 4) + strcopy(sample, sizeof(sample), "custom/woof1.mp3"); else return Plugin_Continue; return Plugin_Changed; diff --git a/scripting/include/feedthetrolls/trolls.inc b/scripting/include/feedthetrolls/trolls.inc index f81f6b5..82daa27 100644 --- a/scripting/include/feedthetrolls/trolls.inc +++ b/scripting/include/feedthetrolls/trolls.inc @@ -96,10 +96,11 @@ void SetupTrolls() { // Trolls[index].AddFlagPrompt(false); // Trolls[index].AddFlag("Mute for All", true); // Trolls[index].AddFlag("Mute For All But Them", false); - index = SetupTroll("Honk / Meow", "Honk or Meow", TrollMod_Constant); + index = SetupTroll("Honk / Meow / Woof", "Custom sounds", TrollMod_Constant); Trolls[index].AddCustomFlagPrompt("Choose Sound:"); Trolls[index].AddFlag("Honk", true); Trolls[index].AddFlag("Meow", false); + Trolls[index].AddFlag("Woof", false); Trolls[index].AddCustomFlagPrompt("Choose Chat modifier:", false, 1); Trolls[index].AddFlag("Show Modified to Them", true); Trolls[index].AddFlag("Show Original to Them", false);