From 191ba416c8b611ea4901cead138789a357c56134 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 2 Apr 2017 20:05:56 -0400 Subject: I finally had some time to work on this... dependency added on bobbleheadbob's zone addon --- gamemode/core/mapstich/cl_mapstich.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 gamemode/core/mapstich/cl_mapstich.lua (limited to 'gamemode/core/mapstich/cl_mapstich.lua') diff --git a/gamemode/core/mapstich/cl_mapstich.lua b/gamemode/core/mapstich/cl_mapstich.lua new file mode 100644 index 0000000..65a5208 --- /dev/null +++ b/gamemode/core/mapstich/cl_mapstich.lua @@ -0,0 +1,12 @@ +--[[ + The client constantly cheks to see if we're in a serverchnage zone +]] + +hook.Add("Think","artery_checklevelchange",function() + local z = LocalPlayer():GetCurrentZone() + --print("looks like i'm in zone",z) + if z then + net.Start("art_zonechange") + net.SendToServer() + end +end) -- cgit v1.2.3-70-g09d2