mirror of
https://github.com/HaodongMo/ArcCW.git
synced 2025-03-04 03:13:30 -05:00
minor tweak, JK
This commit is contained in:
parent
f93fff2558
commit
a02eaedc1c
@ -735,7 +735,7 @@ function SWEP:BarrelHitWall()
|
||||
mask = mask
|
||||
})
|
||||
|
||||
if tr.Hit then
|
||||
if tr.Hit and not tr.Entity.ArcCWProjectile then
|
||||
local l = (tr.HitPos - src):Length()
|
||||
l = l
|
||||
return 1 - math.Clamp(l / (self.BarrelLength + self:GetBuff_Add("Add_BarrelLength")), 0, 1)
|
||||
|
Loading…
Reference in New Issue
Block a user