public static EMS CreateEMS(Rage.Ped patient, string[] dialog, EMSData ed)
        {
            var e = new EMS(patient, ed.DispatchTo, dialog, ed.TransportToHospital, ed.SpawnAtScene, ed.DispatchFromHospital);

            ApplyServiceProperties(e, ed);
            return(e);
        }
示例#2
0
 internal static List <TrafficCitation> GetTrafficCitationsInHandForPed(Rage.Ped ped)
 {
     if (!ped || !TicketsInPosession.ContainsKey(ped))
     {
         return(null);
     }
     return(TicketsInPosession[ped]);
 }
示例#3
0
 internal static void RemoveTrafficCitationsInHandForPed(Rage.Ped ped)
 {
     if (ped != null) //dont care about game validility of Ped
     {
         if (TicketsInPosession.ContainsKey(ped))
         {
             TicketsInPosession.Remove(ped);
         }
     }
 }
        public static Coroner CreateCoroner(Rage.Ped victim, string[] dialog, CoronerData cd)
        {
            Coroner c;

            if (cd.DispatchFrom != SpawnPoint.Zero)
            {
                c = new Coroner(victim, cd.DispatchTo, cd.DispatchFrom, dialog, cd.SpawnAtScene);
            }
            else
            {
                c = new Coroner(victim, cd.DispatchTo, dialog, cd.SpawnAtScene);
            }

            ApplyServiceProperties(c, cd);
            return(c);
        }
示例#5
0
 internal static void AddTrafficCitationsInHandForPed(Rage.Ped ped, TrafficCitation citation)
 {
     if (ped)
     {
         if (TicketsInPosession.ContainsKey(ped))
         {
             TicketsInPosession[ped].Add(citation);
         }
         else
         {
             TicketsInPosession.Add(ped, new List <TrafficCitation>()
             {
                 citation
             });
         }
     }
 }
示例#6
0
文件: Ped.cs 项目: Bluscream/RAGEplus
 public static void setVariation(this Rage.Ped ped, Ped.Component component, int drawableIndex, Ped.TextureID texture) => ped.SetVariation((int)component, drawableIndex, (int)texture);