From d9415d880f682d0a4b5030dc089bdb49542ffeca Mon Sep 17 00:00:00 2001 From: toasterpanic Date: Thu, 28 May 2026 18:24:41 -0400 Subject: [PATCH] Cleanup faking system a little bit --- lua/zcnpci.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/zcnpci.lua b/lua/zcnpci.lua index eb8da80..7843ecc 100644 --- a/lua/zcnpci.lua +++ b/lua/zcnpci.lua @@ -154,8 +154,8 @@ hook.Add("HomigradDamage", "zcnpci", function(ent, dmginfo) last_attacker[ent] = dmginfo:GetAttacker() if dmginfo:IsDamageType(DMG_BULLET + DMG_BUCKSHOT + DMG_BLAST) then - if dmginfo:GetDamage() > 1.5 then - ent:TakeDamage(ent:Health()) + if dmginfo:GetDamage() > 3 then + table.insert(npcs_to_fake, ent) end elseif dmginfo:IsDamageType(DMG_CLUB + DMG_SLASH) then local fists = dmginfo:GetAttacker():GetWeapon("weapon_hands_sh")