aboutsummaryrefslogtreecommitdiff
path: root/gamemode/server/concommands.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/server/concommands.lua')
-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