From 02bd0a8ee6cee190e301a7ceb320943f3901044d Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Mon, 17 Apr 2017 20:11:35 +0200 Subject: [PATCH] Prefix all network messages consistently. --- lua/autorun/client/prophunt_tauntmenu.lua | 4 ++-- lua/autorun/server/prophunt_tauntmenu.lua | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lua/autorun/client/prophunt_tauntmenu.lua b/lua/autorun/client/prophunt_tauntmenu.lua index 722dd43..16741c1 100644 --- a/lua/autorun/client/prophunt_tauntmenu.lua +++ b/lua/autorun/client/prophunt_tauntmenu.lua @@ -2,7 +2,7 @@ local sortedTaunts = {} local lastMenu = nil -net.Receive("TauntList_Update", function() +net.Receive("PH_TauntList_Update", function() local tauntsTable = net.ReadTable() @@ -44,7 +44,7 @@ local windowColor = Color(128, 128, 128, 192) local textColor = Color(255, 255, 255) local function PlayTaunt(sound) - net.Start("TauntMenu_Play") + net.Start("PH_TauntMenu_Play") net.WriteString(sound) net.SendToServer() end diff --git a/lua/autorun/server/prophunt_tauntmenu.lua b/lua/autorun/server/prophunt_tauntmenu.lua index d19f09f..d3c2f5e 100644 --- a/lua/autorun/server/prophunt_tauntmenu.lua +++ b/lua/autorun/server/prophunt_tauntmenu.lua @@ -112,8 +112,8 @@ local fixedNames = { } hook.Add("Initialize", "PH_TauntMenu_StringPooling", function() - util.AddNetworkString("TauntList_Update") - util.AddNetworkString("TauntMenu_Play") + util.AddNetworkString("PH_TauntMenu_Update") + util.AddNetworkString("PH_TauntMenu_Play") end) local function FixName(name) @@ -137,13 +137,13 @@ local function PlayTaunt(pl, sound) end local function BroadcastUpdate() - net.Start("TauntList_Update") + net.Start("PH_TauntList_Update") net.WriteTable(tauntsFixedTable) net.Broadcast() end local function SendUpdate(pl) - net.Start("TauntList_Update") + net.Start("PH_TauntList_Update") net.WriteTable(tauntsFixedTable) net.Send(pl) end @@ -232,7 +232,7 @@ hook.Add("PlayerInitialSpawn", "PH_TauntMenu_UpdateFirst", function(pl) end) -- Sent by the client to play a custom taunt -net.Receive("TauntMenu_Play", function(len, pl) +net.Receive("PH_TauntMenu_Play", function(len, pl) local path = net.ReadString() PlayTaunt(pl, path)