From 789be4eda3dcac19eb9fe3a290b3283529277c9d Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 28 Dec 2015 22:43:36 -0500 Subject: Updated to current --- gamemode/server/concommands.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gamemode/server/concommands.lua') 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 -- cgit v1.2.3-70-g09d2