aboutsummaryrefslogtreecommitdiff
path: root/gamemode/server
diff options
context:
space:
mode:
authorAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2015-12-28 22:40:55 -0500
committerAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2015-12-28 22:40:55 -0500
commit489e7a0051419318d046f3f47e6e00c15b6dd487 (patch)
tree4d81377bca458f5946528ebe881f69cb1e9147a4 /gamemode/server
parent5c4ebc932d8c02522802c842d43d863d89aca162 (diff)
downloadwintersurvival2-489e7a0051419318d046f3f47e6e00c15b6dd487.tar.gz
wintersurvival2-489e7a0051419318d046f3f47e6e00c15b6dd487.tar.bz2
wintersurvival2-489e7a0051419318d046f3f47e6e00c15b6dd487.zip
Updates to current
Diffstat (limited to 'gamemode/server')
-rw-r--r--gamemode/server/concommands.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/gamemode/server/concommands.lua b/gamemode/server/concommands.lua
index a6c891c..6506973 100644
--- a/gamemode/server/concommands.lua
+++ b/gamemode/server/concommands.lua
@@ -6,6 +6,25 @@ concommand.Add("ws_giveitem",function(pl,com,args)
pl:AddItem(args[1],tonumber(args[2] or 1))
end)
+
+concommand.Add("ws_spawnbird",function(ply, cmd, args)
+ GAMEMODE:SpawnNPCByName("Bird",ply:GetPos())
+end)
+
+concommand.Add("ws_startnavgen",function(ply,cmd,args)
+ if (IsValid(pl) and !pl:IsAdmin()) then return end
+ Print("Starting nav generation")
+ local I = 0
+ navmesh.BeginGeneration()
+ while(navmesh.IsGenerating()) do
+ if(I % 100 == 0) then
+ print(I .. " iterations...")
+ end
+ I = I + 1
+ end
+ navmesh.Save()
+end)
+
concommand.Add("ws_revive",function(pl,com,args)
if (IsValid(pl) and !pl:IsAdmin()) then return end
if (!args[1]) then return end