mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 21:33: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 lastlockang = false
|
||||||
local lastlockangstart = Angle()
|
local lastlockangstart = Angle()
|
||||||
local lasteyeang = Angle()
|
local lasteyeang = Angle()
|
||||||
local updatethirdpersonshit = true
|
local updatethirdperson = true
|
||||||
-- local lerpedang = Vector()
|
|
||||||
|
|
||||||
function BodyAnimCalcView2(ply, pos, angles, fov)
|
function BodyAnimCalcView2(ply, pos, angles, fov)
|
||||||
if ply:InVehicle() then
|
if ply:InVehicle() then
|
||||||
|
@ -470,15 +469,16 @@ function BodyAnimCalcView2(ply, pos, angles, fov)
|
||||||
end
|
end
|
||||||
|
|
||||||
if IsValid(BodyAnim) and pos:Distance(ply:EyePos()) > 10 then
|
if IsValid(BodyAnim) and pos:Distance(ply:EyePos()) > 10 then
|
||||||
if updatethirdpersonshit then
|
if updatethirdperson then
|
||||||
ply:SetNoDraw(false)
|
ply:SetNoDraw(false)
|
||||||
BodyAnim:SetNoDraw(true)
|
BodyAnim:SetNoDraw(true)
|
||||||
BodyAnim:SetRenderOrigin(pos * 1000)
|
BodyAnim:SetRenderOrigin(pos * 1000)
|
||||||
updatethirdpersonshit = false
|
updatethirdperson = false
|
||||||
end
|
end
|
||||||
|
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
updatethirdpersonshit = true
|
updatethirdperson = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue