From e3d2cde7b0727e3d342e89002b4ab2ebee16b4a3 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Mon, 17 Apr 2017 20:09:16 +0200 Subject: [PATCH] Properly prefix all hook names. --- lua/autorun/client/prophunt_tauntmenu.lua | 2 +- lua/autorun/server/prophunt_tauntmenu.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/autorun/client/prophunt_tauntmenu.lua b/lua/autorun/client/prophunt_tauntmenu.lua index 038aebd..722dd43 100644 --- a/lua/autorun/client/prophunt_tauntmenu.lua +++ b/lua/autorun/client/prophunt_tauntmenu.lua @@ -102,7 +102,7 @@ local function CreateMenu() return menu end -hook.Add( "PlayerBindPress", "PlayerBindPressFKeyMenus", function(pl, bind, pressed) +hook.Add( "PlayerBindPress", "PH_TauntMenu_PlayerBindPressFKeyMenus", function(pl, bind, pressed) if bind == "gm_showspare2" and pressed then if IsValid(lastMenu) and lastMenu ~= nil then lastMenu:Hide() diff --git a/lua/autorun/server/prophunt_tauntmenu.lua b/lua/autorun/server/prophunt_tauntmenu.lua index 21a5567..d19f09f 100644 --- a/lua/autorun/server/prophunt_tauntmenu.lua +++ b/lua/autorun/server/prophunt_tauntmenu.lua @@ -149,7 +149,7 @@ local function SendUpdate(pl) end -- Detect changes in the taunt list -hook.Add("Think", "TauntList_DetectUpdate", function() +hook.Add("Think", "PH_TauntMenu_DetectUpdate", function() -- If we don't have Tauntpack loader installed, we only have the global taunt tables used by Prop Hunt itself. if (GAMEMODE.Hunter_Taunts == nil) or (GAMEMODE.Prop_Taunts == nil) then if (tauntsTable[TEAM_HUNTERS] ~= HUNTER_TAUNTS) @@ -227,7 +227,7 @@ end) -- PlayerInitialSpawn gets called when the player gets to "Sending Client Info". -- We let the player know all the taunts for the menu here. -hook.Add("PlayerInitialSpawn", "TauntList_UpdateFirst", function(pl) +hook.Add("PlayerInitialSpawn", "PH_TauntMenu_UpdateFirst", function(pl) SendUpdate(pl) end)