Set eyeang roll to 0 (#126)

* Set eyeang roll to 0
This commit is contained in:
Redox 2023-08-23 17:48:01 +01:00 committed by GitHub
parent dfd4a7e1ed
commit e9853a8c94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,8 +36,9 @@ end
local function unball( ply )
assert( ply:IsValid(), "Player is invalid: " .. tostring( ply ) )
local eyeAngles = ply:EyeAngles()
local pos = ply:GetPos()
local eyeAngles = ply:EyeAngles()
eyeAngles.r = 0
ply:SetParent()
ply:UnSpectate()