Skip to content

Commit

Permalink
chore: other fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jan 10, 2025
1 parent 147fd9a commit 7a7ea51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ function ProcessNewPosition(playerCoords)
end
local normal = vector3(math.sin(y) * math.cos(x), math.sin(y) * math.sin(x), math.cos(y))
local pos = playerCoords + normal * camera_radius
local hit, coords = GetShapeTestResultSync(StartShapeTestLosProbe(playerCoords, pos, -1, playerPed))
local hit, coords = GetShapeTestResultSync(StartShapeTestLosProbe(playerCoords, 0, -1, playerPed, 7, playerPed, 0, 7, 0))
return (hit == 1 and playerCoords + normal * (#(playerCoords - coords) - 1)) or pos
end

0 comments on commit 7a7ea51

Please sign in to comment.