forked from HaodongMo/ArcCW
fix prev commit (dont change other dmgtype logic)
This commit is contained in:
parent
844222d2c0
commit
b51081f88c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user