Cleanup faking system a little bit

This commit is contained in:
toasterpanic 2026-05-28 18:24:41 -04:00
parent 5d1af1dc1e
commit d9415d880f

View file

@ -154,8 +154,8 @@ hook.Add("HomigradDamage", "zcnpci", function(ent, dmginfo)
last_attacker[ent] = dmginfo:GetAttacker() last_attacker[ent] = dmginfo:GetAttacker()
if dmginfo:IsDamageType(DMG_BULLET + DMG_BUCKSHOT + DMG_BLAST) then if dmginfo:IsDamageType(DMG_BULLET + DMG_BUCKSHOT + DMG_BLAST) then
if dmginfo:GetDamage() > 1.5 then if dmginfo:GetDamage() > 3 then
ent:TakeDamage(ent:Health()) table.insert(npcs_to_fake, ent)
end end
elseif dmginfo:IsDamageType(DMG_CLUB + DMG_SLASH) then elseif dmginfo:IsDamageType(DMG_CLUB + DMG_SLASH) then
local fists = dmginfo:GetAttacker():GetWeapon("weapon_hands_sh") local fists = dmginfo:GetAttacker():GetWeapon("weapon_hands_sh")