mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
Bob on Start3D
This commit is contained in:
parent
e040442511
commit
333efe61a7
@ -135,7 +135,12 @@ function SWEP:PreDrawViewModel()
|
|||||||
self.ViewModelFOV = vmfov
|
self.ViewModelFOV = vmfov
|
||||||
|
|
||||||
if !arc9_dev_benchgun:GetBool() then
|
if !arc9_dev_benchgun:GetBool() then
|
||||||
cam.Start3D(nil, nil, self:WidescreenFix(vmfov), nil, nil, nil, nil, 0.5, 10000)
|
local mp, ma = self:GetViewModelPosition( EyePos(), EyeAngles(), true )
|
||||||
|
mp:Sub( EyePos() )
|
||||||
|
ma:Sub( EyeAngles() )
|
||||||
|
mp:Mul( -1 )
|
||||||
|
ma:Mul( -1 )
|
||||||
|
cam.Start3D(mp, ma, self:WidescreenFix(vmfov), nil, nil, nil, nil, 0.5, 10000)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- self:DrawCustomModel(true, EyePos() + EyeAngles():Forward() * 16, EyeAngles())
|
-- self:DrawCustomModel(true, EyePos() + EyeAngles():Forward() * 16, EyeAngles())
|
||||||
|
@ -105,7 +105,9 @@ local DampAngleEdit = function(a, v1, v2)
|
|||||||
LerpAngleEdit(a, v1, v2)
|
LerpAngleEdit(a, v1, v2)
|
||||||
end
|
end
|
||||||
|
|
||||||
function SWEP:GetViewModelPosition(pos, ang)
|
function SWEP:GetViewModelPosition(pos, ang, meth)
|
||||||
|
if !meth then return vector_origin, angle_zero end
|
||||||
|
|
||||||
local owner = self:GetOwner()
|
local owner = self:GetOwner()
|
||||||
if !IsValid(owner) then return end
|
if !IsValid(owner) then return end
|
||||||
-- if owner != LocalPlayer() then return end
|
-- if owner != LocalPlayer() then return end
|
||||||
|
Loading…
Reference in New Issue
Block a user