Don't set heading when aiming

This commit is contained in:
Sardelka
2022-08-14 13:21:13 +08:00
parent 8305d9997a
commit 560f092304
2 changed files with 2 additions and 9 deletions

View File

@ -103,13 +103,6 @@ namespace RageCoop.Client
Counter.Restart();
}
string hash(string t)
{
unchecked
{
return "0x"+((uint)Game.GenerateHash(t)).ToString("X");
}
}
#if DEBUG
#endif
public static Ped P;
@ -117,7 +110,6 @@ namespace RageCoop.Client
private bool _lastDead;
private void OnTick(object sender, EventArgs e)
{
if (Game.IsLoading)
{
return;
@ -137,6 +129,7 @@ namespace RageCoop.Client
// GTA.UI.Screen.ShowHelpTextThisFrame(P.GetPedSpeed().ToString());
PlayerPosition=P.ReadPosition();
FPS=Game.FPS;
GTA.UI.Screen.ShowHelpTextThisFrame(P.Heading.ToString());
DoQueuedActions();
if (!Networking.IsOnServer)

View File

@ -667,7 +667,7 @@ namespace RageCoop.Client
MainPed.PositionNoOffset=Position;
return;
}
if (!(localRagdoll|| MainPed.IsDead))
if (!(localRagdoll || MainPed.IsDead || IsAiming))
{
MainPed.Heading=Heading;
MainPed.Velocity=Velocity+5*dist*(Position-MainPed.ReadPosition());