fix prev commit (dont change other dmgtype logic)

This commit is contained in:
Artyom 2024-07-23 20:10:00 +03:00
parent 844222d2c0
commit b51081f88c

View File

@ -375,17 +375,19 @@ 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 maxrng <= hit.range then
dmg:SetDamageType(DMG_BULLET)
else
effect = "arccw_incendiaryround"
decal = "FadingScorch"
if dmg:IsDamageType(DMG_BURN) then
if maxrng <= hit.range then
dmg:SetDamageType(DMG_BULLET)
else
effect = "arccw_incendiaryround"
decal = "FadingScorch"
if SERVER then
if vFireInstalled then
CreateVFire(trent, hitpos, hitnormal, hit.damage * 0.02)
else
trent:Ignite(1, 0)
if SERVER then
if vFireInstalled then
CreateVFire(trent, hitpos, hitnormal, hit.damage * 0.02)
else
trent:Ignite(1, 0)
end
end
end
end