Skip to content

Commit

Permalink
Remove setPedRotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ds1-e committed Nov 19, 2024
1 parent 7e28f4b commit 7688fbe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions [gameplay]/superman/CHandleSuperman.lua
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,10 @@ function Superman:processIdleFlight(player)

Sight.z = math.deg(Sight.z) + 180

setPedRotation(localPlayer, Sight.z)
setElementRotation(localPlayer, 0, 0, Sight.z)
else
local Zangle = getPedCameraRotation(player)
setPedRotation(player, Zangle)

setElementRotation(player, 0, 0, Zangle)
end
end
Expand Down Expand Up @@ -529,7 +528,7 @@ function Superman:processMovingFlight(player, Velocity)
Rotation.y = self.rotations[player]

-- Apply the calculated rotation
setPedRotation(player, Rotation.z)

setElementRotation(player, Rotation.x, Rotation.y, Rotation.z)

-- Save the current velocity
Expand Down Expand Up @@ -569,7 +568,7 @@ function Superman:processLanding(player, Velocity, distanceToGround)
Rotation.x = Rotation.x - 40

-- Apply the calculated rotation
setPedRotation(player, Rotation.z)

setElementRotation(player, Rotation.x, Rotation.y, Rotation.z)
end

Expand Down

0 comments on commit 7688fbe

Please sign in to comment.