From ad728d580ea64797f7bcd02894f18cc4d1072d97 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 30 Dec 2015 21:38:28 -0500 Subject: Changed research table and fix bird spawning --- gamemode/npcsystem/aidirector.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gamemode/npcsystem') diff --git a/gamemode/npcsystem/aidirector.lua b/gamemode/npcsystem/aidirector.lua index b9ae95e..073eea7 100644 --- a/gamemode/npcsystem/aidirector.lua +++ b/gamemode/npcsystem/aidirector.lua @@ -9,6 +9,7 @@ concommand.Add("ws_spawnbird",function(ply,cmd,args) end) function SpawnNpcByName(name, position) + if(CLIENT) then return end entdata = GetNpcByName(name) ent = ents.Create("ws_npc_ambient") ent:SetPos(position) @@ -74,7 +75,7 @@ hook.Add("Tick","SpawnAmbient",function() if (C != CONTENTS_WATER and C != CONTENTS_WATER+CONTENTS_TRANSLUCENT) then --print("Appropriate place found, spawning bird)") - SpawnNpcByName("Bird",v:GetPos() + (v:GetUp()*500)) + SpawnNpcByName("Bird",Pos) break end end -- cgit v1.2.3-70-g09d2