aboutsummaryrefslogtreecommitdiff
path: root/gamemode/npcsystem/aidirector.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/npcsystem/aidirector.lua')
-rw-r--r--gamemode/npcsystem/aidirector.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/gamemode/npcsystem/aidirector.lua b/gamemode/npcsystem/aidirector.lua
index a78e41e..f9f7203 100644
--- a/gamemode/npcsystem/aidirector.lua
+++ b/gamemode/npcsystem/aidirector.lua
@@ -8,6 +8,16 @@ concommand.Add("ws_spawnbird",function(ply,cmd,args)
SpawnNpcByName("Bird",ply:GetPos())
end)
+concommand.Add("ws_spawnnpc",function(ply,cmd,args)
+ if(!args[1]) then print("You must enter the name of an npc")
+ return end
+
+ local npc = GetNpcByName(args[1])
+ if(npc == nil) then print("Not a valid name!")
+ return end
+ SpawnNpcByName(args[1],ply:GetPos())
+end)
+
function SpawnNpcByName(name, position)
if(CLIENT) then return end
entdata = GetNpcByName(name)
@@ -59,7 +69,9 @@ local Up = Vector(0,0,1)
--Randomly spawn npc's around?
local ambientnpcs = {
[0] = "Bird",
- [1] = "Zombie"
+ [1] = "Zombie",
+ [2] = "Antlion Scout",
+ [3] = "Antlion Pouncer"
}
local Tick = CurTime()
hook.Add("Tick","SpawnAmbient",function()