Added ability to disable automatic respawn

Prepare for client side scripting.
This commit is contained in:
Sardelka
2022-05-31 02:16:12 -08:00
parent a33f839004
commit b863b7037a
8 changed files with 67 additions and 21 deletions

View File

@ -44,6 +44,11 @@ namespace RageCoop.Client
Flag = p.GetPedFlags(),
Heading=p.Heading,
};
if (packet.Health==1&&packet.ID==Main.LocalPlayerID)
{
// Fake death
packet.Health=0;
}
if (packet.Flag.HasFlag(PedDataFlags.IsAiming))
{
packet.AimCoords = p.GetAimCoord();