aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gamemode/npcsystem/npcs/zombie.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/gamemode/npcsystem/npcs/zombie.lua b/gamemode/npcsystem/npcs/zombie.lua
index 1075e9d..04e1712 100644
--- a/gamemode/npcsystem/npcs/zombie.lua
+++ b/gamemode/npcsystem/npcs/zombie.lua
@@ -37,12 +37,8 @@ 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 self == nil then
- print("In zombie, checkmele called with null self")
- end
- if ply == nil then
- print("In zombie, checkmele called with null ply")
- end
+ assert(self != nil, "checkmele called on nil npc!")
+ assert(ply != nil, "checkmelecalled for nil player!")
if(ply:GetPos():Distance(self:GetPos()) < 100) then return 20 end
return -1
end