forked from HaodongMo/ArcCW
Fix burn damage in BulletCallback
This commit is contained in:
parent
611a3fbc25
commit
a2b06d7870
@ -373,9 +373,9 @@ function ArcCW:BulletCallback(att, tr, dmg, bullet, phys)
|
||||
if IsValid(wep) and !wep:GetBuff_Override("Override_DamageTypeHandled", wep.DamageTypeHandled) then
|
||||
local _, maxrng = wep:GetMinMaxRange()
|
||||
-- ignite target
|
||||
if dmg:IsDamageType(DMG_BURN) and hit.range <= maxrng then
|
||||
dmg:SetDamageType(dmg:GetDamageType() - DMG_BURN)
|
||||
|
||||
if dmg:IsDamageType(DMG_BURN) and maxrng <= hit.range then
|
||||
dmg:SetDamageType(DMG_BULLET)
|
||||
else
|
||||
effect = "arccw_incendiaryround"
|
||||
decal = "FadingScorch"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user