Skip to content

Commit

Permalink
Merge pull request #273 from freedy69/patch-1
Browse files Browse the repository at this point in the history
Tweak ped pointing
  • Loading branch information
TomGrobbe authored May 5, 2022
2 parents fcbe679 + bfc24bd commit 1ba6298
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions vMenu/FunctionsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ async Task TogglePointing()
// Press the B button on keyboard once to toggle.
else
{
if (Game.IsControlJustReleased(0, Control.SpecialAbilitySecondary) && !Game.PlayerPed.IsInVehicle())
if (Game.IsControlJustReleased(0, Control.SpecialAbilitySecondary) && UpdateOnscreenKeyboard() != 0 && !Game.PlayerPed.IsInVehicle())
{
await TogglePointing();
}
Expand All @@ -979,18 +979,18 @@ async Task TogglePointing()
}
else
{
N_0xd5bb4025ae449a4e(Game.PlayerPed.Handle, "Pitch", GetPointingPitch());
N_0xd5bb4025ae449a4e(Game.PlayerPed.Handle, "Heading", GetPointingHeading());
N_0xb0a6cfd2c69c1088(Game.PlayerPed.Handle, "isBlocked", GetPointingIsBlocked());
SetTaskMoveNetworkSignalFloat(Game.PlayerPed.Handle, "Pitch", GetPointingPitch());
SetTaskMoveNetworkSignalFloat(Game.PlayerPed.Handle, "Heading", GetPointingHeading());
SetTaskMoveNetworkSignalBool(Game.PlayerPed.Handle, "isBlocked", GetPointingIsBlocked());
if (GetFollowPedCamViewMode() == 4)
{
N_0xb0a6cfd2c69c1088(Game.PlayerPed.Handle, "isFirstPerson", true);
SetTaskMoveNetworkSignalBool(Game.PlayerPed.Handle, "isFirstPerson", true);
}
else
{
N_0xb0a6cfd2c69c1088(Game.PlayerPed.Handle, "isFirstPerson", false);
SetTaskMoveNetworkSignalBool(Game.PlayerPed.Handle, "isFirstPerson", false);
}
N_0xd5bb4025ae449a4e(Game.PlayerPed.Handle, "Speed", 0.25f);
SetTaskMoveNetworkSignalFloat(Game.PlayerPed.Handle, "Speed", 0.25f);
}
}
}
Expand Down

0 comments on commit 1ba6298

Please sign in to comment.