aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/npcmap/sv_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/core/npcmap/sv_npcmap.lua
parent5f2a8015bd5d2a42e79038bb52f20260d8d97ba0 (diff)
downloadartery-2c4329e2b6e19182a441f79a5c3010011f8ae767.tar.gz
artery-2c4329e2b6e19182a441f79a5c3010011f8ae767.tar.bz2
artery-2c4329e2b6e19182a441f79a5c3010011f8ae767.zip
Vairous updates
Diffstat (limited to 'gamemode/core/npcmap/sv_npcmap.lua')
-rw-r--r--gamemode/core/npcmap/sv_npcmap.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/gamemode/core/npcmap/sv_npcmap.lua b/gamemode/core/npcmap/sv_npcmap.lua
new file mode 100644
index 0000000..8368484
--- /dev/null
+++ b/gamemode/core/npcmap/sv_npcmap.lua
@@ -0,0 +1,22 @@
+if CLIENT then error("You're not supposed to be here!") end
+local pmeta = FindMetaTable("Player")
+
+util.AddNetworkString("addmapicon")
+util.AddNetworkString("addmaparea")
+
+function pmeta:AddMapIcon(icon,subarea,position)
+ print("adding map icon")
+ net.Start("addmapicon")
+ net.WriteString(icon)
+ net.WriteString(subarea)
+ net.WriteVector(position)
+ net.Send(self)
+end
+
+function pmeta:AddMapArea(icon,subarea,bordertbl)
+ print("adding area")
+ net.Start("addmaparea")
+ net.WriteString(icon)
+ net.WriteString(subarea)
+ net.WriteTable(bordertbl)
+end