concommand.Add("ws_giveitem",function(pl,com,args) if (!IsValid(pl)) then return end if (!pl:IsAdmin()) then return end if (!args[1]) then return end pl:AddItem(args[1],tonumber(args[2] or 1)) end) concommand.Add("ws_cleanup",function(ply,cmd,args) if(!IsValid(ply) or !pl:IsAdmin()) then return end cleanup = { "ws_arrow", "ws_campfire", "ws_grave", "ws_rune", "ws_alter", "ws_barrel", "ws_grave", "ws_infuser", "ws_item", "ws_npc_ambient", "ws_prop", "ws_researchtable", "ws_shop", } for k,v in pairs(cleanup) do for i,j in pairs(ents.FindByClass(v)) do j:Remove() end end 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) --Revive a player concommand.Add("ws_revive",function(pl,com,args) if (IsValid(pl) and !pl:IsAdmin()) then return end if (!args[1]) then return end for k,v in pairs(player.GetAll()) do if (v:Nick():lower():find(args[1]:lower()) and v:IsPigeon()) then v:ChatPrint("You have been resurrected from the dead by an admin!") v:SetHuman(true) v:KillSilent() v:EmitSound("wintersurvival2/ritual/wololo.mp3") end end end) --Manual generate a proprain, for debugging concommand.Add("ws_proprain",function(ply,cmd,args) if (IsValid(pl) and !pl:IsAdmin()) then return end GAMEMODE:GeneratePropRain() end) --Manual reload of items + recepies, usefull for testing concommand.Add("ws_reloaditems",function(ply,cmd,args) if (IsValid(pl) and !pl:IsAdmin()) then return end GAMEMODE:LoadItems() end) --Manual reload of npc's, usefull for testing concommand.Add("ws_reloadnpcs",function(ply,cmd,args) if (IsValid(pl) and !pl:IsAdmin()) then return end GAMEMODE:LoadNPCS() end) --Generate a nice HTML representation of all the recepies. concommand.Add("ws_generaterecipes",function(pl,com,args) if (IsValid(pl) and !pl:IsAdmin()) then return end local filename = "ws_recipedata.txt" for k,v in pairs(GAMEMODE.Recipes) do if not v.Recipe then continue end if not v.Name then continue end file.Append(filename,"