diff options
| author | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2015-12-30 21:38:28 -0500 |
|---|---|---|
| committer | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2015-12-30 21:38:28 -0500 |
| commit | ad728d580ea64797f7bcd02894f18cc4d1072d97 (patch) | |
| tree | ca8d85b1aff6bb4a917bbeafb2d4dd5add26d504 /gamemode/npcsystem | |
| parent | 76f2e4086134f45413bb67209ae1e842e79dca4c (diff) | |
| download | wintersurvival2-ad728d580ea64797f7bcd02894f18cc4d1072d97.tar.gz wintersurvival2-ad728d580ea64797f7bcd02894f18cc4d1072d97.tar.bz2 wintersurvival2-ad728d580ea64797f7bcd02894f18cc4d1072d97.zip | |
Changed research table and fix bird spawning
Diffstat (limited to 'gamemode/npcsystem')
| -rw-r--r-- | gamemode/npcsystem/aidirector.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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
|
