Properly prefix all hook names.

pull/2/head
Icedream 2017-04-17 20:09:16 +02:00
parent 1c19c0b76b
commit e3d2cde7b0
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
2 changed files with 3 additions and 3 deletions

View File

@ -102,7 +102,7 @@ local function CreateMenu()
return menu return menu
end 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 bind == "gm_showspare2" and pressed then
if IsValid(lastMenu) and lastMenu ~= nil then if IsValid(lastMenu) and lastMenu ~= nil then
lastMenu:Hide() lastMenu:Hide()

View File

@ -149,7 +149,7 @@ local function SendUpdate(pl)
end end
-- Detect changes in the taunt list -- 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 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 (GAMEMODE.Hunter_Taunts == nil) or (GAMEMODE.Prop_Taunts == nil) then
if (tauntsTable[TEAM_HUNTERS] ~= HUNTER_TAUNTS) if (tauntsTable[TEAM_HUNTERS] ~= HUNTER_TAUNTS)
@ -227,7 +227,7 @@ end)
-- PlayerInitialSpawn gets called when the player gets to "Sending Client Info". -- PlayerInitialSpawn gets called when the player gets to "Sending Client Info".
-- We let the player know all the taunts for the menu here. -- 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) SendUpdate(pl)
end) end)