Cleanup faking system a little bit
This commit is contained in:
parent
5d1af1dc1e
commit
d9415d880f
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue