aboutsummaryrefslogtreecommitdiff
path: root/gamemode/npcsystem/aidirector.lua
diff options
context:
space:
mode:
authorAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-01-03 23:26:08 -0500
committerAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-01-03 23:26:08 -0500
commitcc2f78ca9fc6cd2e3bc8225b62fff87cc5034926 (patch)
treeb852abfbd60ec8378d13c46add56d03f6fc570a3 /gamemode/npcsystem/aidirector.lua
parent97c511eb32ab1edd85391b027ecbdcb38c61eaa9 (diff)
downloadwintersurvival2-cc2f78ca9fc6cd2e3bc8225b62fff87cc5034926.tar.gz
wintersurvival2-cc2f78ca9fc6cd2e3bc8225b62fff87cc5034926.tar.bz2
wintersurvival2-cc2f78ca9fc6cd2e3bc8225b62fff87cc5034926.zip
Added 2 antlion types
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()