Example #1
0
        public override void Process()
        {
            base.Process();

            if (!hearthAttackCreated && Game.LocalPlayer.Character.DistanceTo(hearthAttackPed.Position) < 30f)
            {
                hearthAttackCreated = true;

                GameFiber.StartNew(delegate {
                    while (true)
                    {
                        GameFiber.Yield();

                        if (EMSFunctions.DidEMSRevivePed(hearthAttackPed) != null)
                        {
                            break;
                        }
                    }
                });
            }

            if (hearthAttackCreated)
            {
                End();
            }
        }
 public static uint GetOriginalDeathWeaponAssetHash(Ped p)
 {
     if (p && p.IsDead)
     {
         return(EMSFunctions.GetOriginalDeathWeaponAsset(p).Hash);
     }
     else
     {
         return(0);
     }
 }
Example #3
0
        public static void RequestTransportToHospitalForNearestValidPed(Ped ped)
        {
            if (ped.Exists())
            {
                if (!EntryPoint.suspectsPendingTransport.Contains(ped))
                {
                    EntryPoint.suspectsPendingTransport.Add(ped);

                    EMSFunctions.PickUpPatient(ped);
                }
                else
                {
                    Game.LogTrivial("Already pending police transport.");
                }
            }
        }
Example #4
0
 internal static void RespondToLocation() => EMSFunctions.RespondToLocation(((Entity)Game.get_LocalPlayer().get_Character()).get_Position(), new bool?(true));
 public static bool HasBeenTreated(Ped p)
 {
     return(EMSFunctions.DidEMSRevivePed(p) != null);
 }