mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-28 12:53:02 +05:00
cleaning
This commit is contained in:
parent
7d80aa64a1
commit
9f62794e94
1 changed files with 6 additions and 6 deletions
|
@ -459,8 +459,7 @@ local lerpedpos = Vector()
|
|||
local lastlockang = false
|
||||
local lastlockangstart = Angle()
|
||||
local lasteyeang = Angle()
|
||||
local updatethirdpersonshit = true
|
||||
-- local lerpedang = Vector()
|
||||
local updatethirdperson = true
|
||||
|
||||
function BodyAnimCalcView2(ply, pos, angles, fov)
|
||||
if ply:InVehicle() then
|
||||
|
@ -470,15 +469,16 @@ function BodyAnimCalcView2(ply, pos, angles, fov)
|
|||
end
|
||||
|
||||
if IsValid(BodyAnim) and pos:Distance(ply:EyePos()) > 10 then
|
||||
if updatethirdpersonshit then
|
||||
if updatethirdperson then
|
||||
ply:SetNoDraw(false)
|
||||
BodyAnim:SetNoDraw(true)
|
||||
BodyAnim:SetRenderOrigin(pos*1000)
|
||||
updatethirdpersonshit = false
|
||||
BodyAnim:SetRenderOrigin(pos * 1000)
|
||||
updatethirdperson = false
|
||||
end
|
||||
|
||||
return
|
||||
else
|
||||
updatethirdpersonshit = true
|
||||
updatethirdperson = true
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue