diff options
Diffstat (limited to 'gamemode/npcsystem/npcs')
| -rw-r--r-- | gamemode/npcsystem/npcs/antlion1.lua | 4 | ||||
| -rw-r--r-- | gamemode/npcsystem/npcs/antlion2.lua | 4 | ||||
| -rw-r--r-- | gamemode/npcsystem/npcs/zombie.lua | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/gamemode/npcsystem/npcs/antlion1.lua b/gamemode/npcsystem/npcs/antlion1.lua index 3e90e19..259f108 100644 --- a/gamemode/npcsystem/npcs/antlion1.lua +++ b/gamemode/npcsystem/npcs/antlion1.lua @@ -36,10 +36,10 @@ NPC.IdleSequences = { --Attacks should be formated as [i]={function (return int dammage) canattack(ply) = function doattack(ply)} --NPC will do the most dammage possible per attack local checkmele = function(self, ply) - if not self then + if self == nil then print("In antlion1, checkmele called with null self") end - if not ply then + if ply == nil then print("In antlion1, checkmele called with null ply") end if(ply:GetPos():Distance(self:GetPos()) < 100) then return 20 end diff --git a/gamemode/npcsystem/npcs/antlion2.lua b/gamemode/npcsystem/npcs/antlion2.lua index 28154cc..6c16c72 100644 --- a/gamemode/npcsystem/npcs/antlion2.lua +++ b/gamemode/npcsystem/npcs/antlion2.lua @@ -36,10 +36,10 @@ NPC.IdleSequences = { --Attacks should be formated as [i]={function (return int dammage) canattack(ply) = function doattack(ply)} --NPC will do the most dammage possible per attack local checkmele = function(self, ply) - if not self then + if self == nil then print("In antlion2, checkmele called with null self") end - if not ply then + if ply == nil then print("In antlion2, checkmele called with null ply") end if(ply:GetPos():Distance(self:GetPos()) < 100) then return 20 end diff --git a/gamemode/npcsystem/npcs/zombie.lua b/gamemode/npcsystem/npcs/zombie.lua index e62b833..1075e9d 100644 --- a/gamemode/npcsystem/npcs/zombie.lua +++ b/gamemode/npcsystem/npcs/zombie.lua @@ -37,10 +37,10 @@ NPC.IdleSequences = { --Attacks should be formated as [i]={function (return int dammage) canattack(ply) = function doattack(ply)}
--NPC will do the most dammage possible per attack
local checkmele = function(self, ply)
- if not self then
+ if self == nil then
print("In zombie, checkmele called with null self")
end
- if not ply then
+ if ply == nil then
print("In zombie, checkmele called with null ply")
end
if(ply:GetPos():Distance(self:GetPos()) < 100) then return 20 end
|
