aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared/sh_npcmap.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-11-27 22:02:47 -0500
committerAlexander Pickering <alexandermpickering@gmail.com>2016-11-27 22:02:47 -0500
commit2c4329e2b6e19182a441f79a5c3010011f8ae767 (patch)
treee4d8cd88690bed4cfacf2d4df39bdeed97b376f8 /gamemode/shared/sh_npcmap.lua
parent5f2a8015bd5d2a42e79038bb52f20260d8d97ba0 (diff)
downloadartery-2c4329e2b6e19182a441f79a5c3010011f8ae767.tar.gz
artery-2c4329e2b6e19182a441f79a5c3010011f8ae767.tar.bz2
artery-2c4329e2b6e19182a441f79a5c3010011f8ae767.zip
Vairous updates
Diffstat (limited to 'gamemode/shared/sh_npcmap.lua')
-rw-r--r--gamemode/shared/sh_npcmap.lua27
1 files changed, 0 insertions, 27 deletions
diff --git a/gamemode/shared/sh_npcmap.lua b/gamemode/shared/sh_npcmap.lua
deleted file mode 100644
index 5c6d93c..0000000
--- a/gamemode/shared/sh_npcmap.lua
+++ /dev/null
@@ -1,27 +0,0 @@
-
-local pmeta = FindMetaTable("Player")
-
-if SERVER then
- util.AddNetworkString("addmapicon")
-end
-
-function pmeta:AddMapIcon(icon,position)
- print("adding map icon")
- net.Start("addmapicon")
- net.WriteString(icon)
- net.WriteVector(position)
- net.Send(self)
-end
-
-if CLIENT then
- net.Receive("addmapicon",function()
- print("got recieve for map icon")
- LocalPlayer().MapIcons = LocalPlayer().MapIcons or {}
- local matstr = net.ReadString()
- local matpos = net.ReadVector()
- table.insert(LocalPlayer().MapIcons,{
- ["material"] = Material(matstr),
- ["pos"] = matpos,
- })
- end)
-end