From cc2f78ca9fc6cd2e3bc8225b62fff87cc5034926 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 3 Jan 2016 23:26:08 -0500 Subject: Added 2 antlion types --- gamemode/npcsystem/aidirector.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'gamemode/npcsystem/aidirector.lua') 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() -- cgit v1.2.3-70-g09d2