mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
rhik error fix
This commit is contained in:
parent
b6984abe50
commit
abe10a2d20
@ -361,7 +361,7 @@ function SWEP:GunControllerRHIK(pos, ang)
|
||||
|
||||
local anim_mdl = slottbl.GunDriverModel
|
||||
|
||||
if !anim_mdl then return pos, ang end
|
||||
if !IsValid(anim_mdl) then return pos, ang end
|
||||
|
||||
local refl_mdl = slottbl.ReflectDriverModel
|
||||
|
||||
@ -377,7 +377,9 @@ function SWEP:GunControllerRHIK(pos, ang)
|
||||
self:RecalculateIKGunMotionOffset()
|
||||
end
|
||||
|
||||
local attpos, attang = anim_mdl:GetAttachment(qca).Pos, anim_mdl:GetAttachment(qca).Ang
|
||||
local getatt = anim_mdl:GetAttachment(qca)
|
||||
if !getatt then return pos, ang end
|
||||
local attpos, attang = getatt.Pos, getatt.Ang
|
||||
|
||||
attang:Sub( self.IKGunMotionOffsetAngle )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user