Beispiel #1
0
 private void SetANPRHitDetails(ANPRHitTypes HitType)
 {
     if (HitType == ANPRHitTypes.DisqualifiedOwner)
     {
         SuspectBritishPersona.LicenceStatus = BritishPersona.LicenceStatuses.Disqualified;
     }
     else if (HitType == ANPRHitTypes.RevokedLicence)
     {
         SuspectBritishPersona.LicenceStatus = BritishPersona.LicenceStatuses.Revoked;
     }
     else if (HitType == ANPRHitTypes.NoInsurance)
     {
         SuspectCarRecords.Insured = false;
     }
     else if (HitType == ANPRHitTypes.NoMOT)
     {
         SuspectCarRecords.HasMOT = false;
     }
     else if (HitType == ANPRHitTypes.NoTax)
     {
         SuspectCarRecords.IsTaxed = false;
     }
     else if (HitType == ANPRHitTypes.Stolen)
     {
         SuspectCar.IsStolen = true;
     }
 }
Beispiel #2
0
        private string ANPRHitReasonString(ANPRHitTypes HitType)
        {
            string s = "";

            if (HitType == ANPRHitTypes.DisqualifiedOwner)
            {
                s = "Owner Disqualified";
            }
            else if (HitType == ANPRHitTypes.RevokedLicence)
            {
                s = "Owner's Licence Revoked";
            }
            else if (HitType == ANPRHitTypes.NoInsurance)
            {
                s = "No Insurance";
            }
            else if (HitType == ANPRHitTypes.NoMOT)
            {
                s = "No MOT";
            }
            else if (HitType == ANPRHitTypes.NoTax)
            {
                s = "No Tax";
            }
            else if (HitType == ANPRHitTypes.Stolen)
            {
                s = "Reported Stolen";
            }
            return(s);
        }
Beispiel #3
0
        public override bool OnBeforeCalloutDisplayed()
        {
            Game.LogTrivial("Creating BritishCallout.ANPR_Hit");

            if (!FindSpawnPoint(325, 375, 180))
            {
                return(false);
            }
            HitType = (ANPRHitTypes)Enum.GetValues(typeof(ANPRHitTypes)).GetValue(EntryPoint.rnd.Next(Enum.GetValues(typeof(ANPRHitTypes)).Length));

            CalloutMessage  = "~o~ANPR Hit: ~r~" + ANPRHitReasonString(HitType);
            CalloutPosition = sp;
            Functions.PlayScannerAudioUsingPosition("WE_HAVE_01 BRITISHCRIME_ANPRHIT IN_OR_ON_POSITION", sp);
            ShowCalloutAreaBlipBeforeAccepting(sp, 200f);

            return(base.OnBeforeCalloutDisplayed());
        }