diff options
Diffstat (limited to 'gamemode/npcsystem')
| -rw-r--r-- | gamemode/npcsystem/aidirector.lua | 8 | ||||
| -rw-r--r-- | gamemode/npcsystem/loadnpcs.lua | 3 | ||||
| -rw-r--r-- | gamemode/npcsystem/npcs/bird.lua | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/gamemode/npcsystem/aidirector.lua b/gamemode/npcsystem/aidirector.lua index d5da7db..f6cd0f9 100644 --- a/gamemode/npcsystem/aidirector.lua +++ b/gamemode/npcsystem/aidirector.lua @@ -1,7 +1,7 @@ --Lol i dunno, spawn some npc's or something
-concommand.Add("ws_spawnbird",function(ply, cmd, args)
- SpawnNpcByName("Bird",ply:GetPos())
+concommand.Add("ws_spawnzomb",function(ply, cmd, args)
+ SpawnNpcByName("Zombie",ply:GetPos())
end
)
@@ -40,7 +40,7 @@ local traceline = util.TraceLine local contents = util.PointContents
local Up = Vector(0,0,1)
---Randomly spawn npc's around?
+--Randomly spawn bird npc's around?
local Tick = CurTime()
hook.Add("Tick","SpawnAmbient",function()
if(CLIENT) then return end
@@ -71,7 +71,7 @@ hook.Add("Tick","SpawnAmbient",function() local C = contents(Pos)
if (C != CONTENTS_WATER and C != CONTENTS_WATER+CONTENTS_TRANSLUCENT) then
- print("Appropriate place found, spawning bird)")
+ --print("Appropriate place found, spawning bird)")
SpawnNpcByName("Bird",Pos)
break
end
diff --git a/gamemode/npcsystem/loadnpcs.lua b/gamemode/npcsystem/loadnpcs.lua index 72a1511..c522400 100644 --- a/gamemode/npcsystem/loadnpcs.lua +++ b/gamemode/npcsystem/loadnpcs.lua @@ -39,7 +39,7 @@ function GetNpcByName(name) return nil
end
-
+--[[
function GM:SpawnNPCByName(name,pos)
print("Server side, spawning bird!")
@@ -75,6 +75,7 @@ function GM:SpawnNPCByName(name,pos) end
ent:Spawn()
end
+]]
--[[
function GetRecipeForItem(name)
for k,v in pairs( GAMEMODE.Recipes ) do
diff --git a/gamemode/npcsystem/npcs/bird.lua b/gamemode/npcsystem/npcs/bird.lua index d09f1ef..fa98335 100644 --- a/gamemode/npcsystem/npcs/bird.lua +++ b/gamemode/npcsystem/npcs/bird.lua @@ -33,7 +33,7 @@ end --What to replace ENT:RunBehaviour with
function NPC:Behave()
- print("Going into bird's custom behaviour")
+ --print("Going into bird's custom behaviour")
while ( true ) do
self:StartActivity( ACT_IDLE ) -- walk anims
self:PlaySequenceAndWait( "Idle01" ) -- Sit on the floor
|
