mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
NO_DAMAGE_FORCES in bipod for mytton pls test cuz i didn't
This commit is contained in:
parent
e6730a41e1
commit
b6d62865a2
@ -94,6 +94,9 @@ function SWEP:EnterBipod()
|
||||
self:SetBipodPos(owner:EyePos() + (owner:EyeAngles():Forward() * 4) - Vector(0, 0, 2))
|
||||
|
||||
self:ExitSights()
|
||||
|
||||
owner.ARC9_HadNoDMGForceEFlag = owner:IsEFlagSet( EFL_NO_DAMAGE_FORCES )
|
||||
owner:AddEFlags( EFL_NO_DAMAGE_FORCES )
|
||||
end
|
||||
|
||||
function SWEP:ExitBipod(force)
|
||||
@ -112,6 +115,11 @@ function SWEP:ExitBipod(force)
|
||||
self:CancelReload()
|
||||
|
||||
self:ExitSights()
|
||||
|
||||
local owner = self:GetOwner()
|
||||
|
||||
if !owner.ARC9_HadNoDMGForceEFlag then owner:RemoveEFlags( EFL_NO_DAMAGE_FORCES ) end
|
||||
owner.ARC9_HadNoDMGForceEFlag = nil
|
||||
end
|
||||
|
||||
SWEP.BipodTime = 0.5
|
||||
|
Loading…
Reference in New Issue
Block a user