Esempio n. 1
0
        public async Task Prepare()
        {
            VehicleHash[] possibleVehicles =
            {
                VehicleHash.Voltic2,
                VehicleHash.Voltic,
                VehicleHash.Kuruma2,
                VehicleHash.Oppressor,
                VehicleHash.Lectro
            };
            deliveryCar = await MissionHelper.CreateRobustVehicle(possibleVehicles[API.GetRandomIntInRange(0, possibleVehicles.Length)],
                                                                  new Vector3(667.4f, -756f, 23.7f), 171.5f);

            missionMusic = new MissionMusic();
            missionMusic.PlayStartMusic();

            missionHelper = new DeliveryMissionHelper(deliveryCar, missionMusic);

            Ped enemy1 = await missionHelper.CreateNeutralEnemyPed(PedHash.BikeHire01, new Vector3(667.8f, -768.8f, 23.6f), 184.8f, WeaponHash.AssaultRifleMk2);

            enemy1._StartScenario("WORLD_HUMAN_AA_SMOKE");
            Ped enemy2 = await missionHelper.CreateNeutralEnemyPed(PedHash.Car3Guy1, new Vector3(668.1f, -773f, 23.5f), 6f, WeaponHash.AssaultRifleMk2);

            enemy2._StartScenario("WORLD_HUMAN_DRUG_DEALER");
            Ped enemy3 = await missionHelper.CreateNeutralEnemyPed(PedHash.Car3Guy2, new Vector3(667f, -754.4f, 31.3f), 0f, WeaponHash.AssaultRifleMk2);

            enemy3._StartScenario("WORLD_HUMAN_BINOCULARS");
            Ped enemy4 = await missionHelper.CreateNeutralEnemyPed(PedHash.CarBuyerCutscene, new Vector3(672.1f, -781.9f, 23.5f), 101.9f, WeaponHash.AssaultRifleMk2);

            enemy4._StartScenario("WORLD_HUMAN_DRINKING");
            Ped enemy5 = await missionHelper.CreateNeutralEnemyPed(PedHash.MexGang01GMY, new Vector3(656.8f, -793.8f, 23.5f), 1.6f, WeaponHash.AssaultRifleMk2);

            enemy5._StartScenario("WORLD_HUMAN_WELDING");
            enemyVehicles = new List <Vehicle>();
            Vehicle vehicle1 = await EntityUtil.CreateVehicle(VehicleHash.SabreGT, new Vector3(654.5f, -729.8f, 24.2f), 181.1f);

            enemyVehicles.Add(vehicle1);
            Ped enemy6 = await missionHelper.CreateNeutralEnemyPed(PedHash.MexGang01GMY, new Vector3(), 0f, WeaponHash.PistolMk2);

            enemy6.SetIntoVehicle(vehicle1, VehicleSeat.Driver);
            Vehicle vehicle2 = await EntityUtil.CreateVehicle(VehicleHash.Ninef, new Vector3(669.4f, -706.8f, 24.6f), 177.5f);

            enemyVehicles.Add(vehicle2);
            Ped enemy7 = await missionHelper.CreateNeutralEnemyPed(PedHash.MexGoon01GMY, new Vector3(), 0f, WeaponHash.PistolMk2);

            enemy7.SetIntoVehicle(vehicle2, VehicleSeat.Driver);
            Ped enemy8 = await missionHelper.CreateNeutralEnemyPed(PedHash.MexGoon02GMY, new Vector3(), 0f, WeaponHash.MicroSMG);

            enemy8.SetIntoVehicle(vehicle2, VehicleSeat.Passenger);
            Ped enemy9 = await missionHelper.CreateNeutralEnemyPed(PedHash.MexThug01AMY, new Vector3(677.3f, -861.9f, 23.5f), 182.4f, WeaponHash.AssaultRifleMk2);

            enemy9._StartScenario("WORLD_HUMAN_CONST_DRILL");
            Ped enemy10 = await missionHelper.CreateNeutralEnemyPed(PedHash.MexBoss01GMM, new Vector3(683.5f, -861.9f, 23.6f), 64.5f, WeaponHash.AssaultRifleMk2);

            enemy10._StartScenario("WORLD_HUMAN_COP_IDLES");
        }
Esempio n. 2
0
        public async Task OnTick()
        {
            await Task.FromResult(0);

            missionHelper.HandleMissionFailedCheck();
            if (!missionHelper.IsDeliveryTaskStarted())
            {
                if (Game.PlayerPed.CurrentVehicle == deliveryCar)
                {
                    heli = await EntityUtil.CreateVehicle(VehicleHash.Maverick, new Vector3(1509.8f, -224.2f, 892.1f), 145.3f);

                    enemyVehicles.Add(heli);
                    heliBlip        = heli.AttachBlip();
                    heliBlip.Sprite = BlipSprite.HelicopterAnimated;
                    heliBlip.Color  = BlipColor.Red;
                    Ped enemy1 = await missionHelper.CreateNeutralEnemyPed(PedHash.Korean01GMY, new Vector3());

                    enemy1.SetIntoVehicle(heli, VehicleSeat.Driver);
                    Ped enemy2 = await missionHelper.CreateNeutralEnemyPed(PedHash.KorLieut01GMY, new Vector3(), 0f, WeaponHash.AssaultRifleMk2);

                    enemy2.SetIntoVehicle(heli, VehicleSeat.LeftRear);
                    Ped enemy3 = await missionHelper.CreateNeutralEnemyPed(PedHash.Korean02GMY, new Vector3(), 0f, WeaponHash.AssaultRifleMk2);

                    enemy3.SetIntoVehicle(heli, VehicleSeat.RightRear);

                    missionHelper.CreateDeliveryTask();
                }
            }
            else
            {
                if (heli.IsDead && heliBlip.Exists())
                {
                    heliBlip.Delete();
                }

                await missionHelper.HandleDeliveryDropOff();
            }
        }
Esempio n. 3
0
        public async Task Prepare()
        {
            VehicleHash[] possibleVehicles =
            {
                VehicleHash.Voltic2,
                VehicleHash.Kuruma2,
                VehicleHash.Oppressor,
                VehicleHash.Dukes2,
                VehicleHash.Comet3
            };
            deliveryCar = await MissionHelper.CreateRobustVehicle(possibleVehicles[API.GetRandomIntInRange(0, possibleVehicles.Length)],
                                                                  new Vector3(666.4f, 676.9f, 128.5f), 193.4f);

            missionMusic = new MissionMusic();
            missionMusic.PlayStartMusic();

            missionHelper = new DeliveryMissionHelper(deliveryCar, missionMusic);

            Ped enemy1 = await missionHelper.CreateNeutralEnemyPed(PedHash.Korean01GMY, new Vector3(663.1f, 662.5f, 128.9f), 252.3f, WeaponHash.PistolMk2);

            enemy1._StartScenario("WORLD_HUMAN_AA_SMOKE");
            Ped enemy2 = await missionHelper.CreateNeutralEnemyPed(PedHash.Korean02GMY, new Vector3(667.5f, 661.1f, 128.9f), 70.3f, WeaponHash.PistolMk2);

            enemy2._StartScenario("WORLD_HUMAN_GUARD_PATROL");
            Ped enemy3 = await missionHelper.CreateNeutralEnemyPed(PedHash.Korean02GMY, new Vector3(780.2f, 571.4f, 127.5f), 330.4f, WeaponHash.PistolMk2);

            enemy3._StartScenario("WORLD_HUMAN_SMOKING");
            enemyVehicles = new List <Vehicle>();
            Vehicle vehicle1 = await EntityUtil.CreateVehicle(VehicleHash.Sentinel, new Vector3(851.3f, 504f, 125.9f), 343f);

            enemyVehicles.Add(vehicle1);
            Ped enemy4 = await missionHelper.CreateNeutralEnemyPed(PedHash.KorLieut01GMY, new Vector3(), 0f, WeaponHash.PistolMk2);

            enemy4.SetIntoVehicle(vehicle1, VehicleSeat.Driver);
            Ped enemy5 = await missionHelper.CreateNeutralEnemyPed(PedHash.KorBoss01GMM, new Vector3(), 0f, WeaponHash.MicroSMG);

            enemy5.SetIntoVehicle(vehicle1, VehicleSeat.Passenger);
            Ped enemy6 = await missionHelper.CreateNeutralEnemyPed(PedHash.KorLieut01GMY, new Vector3(903.5f, 541.6f, 123.2f), 271.7f, WeaponHash.PistolMk2);

            enemy6._StartScenario("WORLD_HUMAN_SMOKING");
            Ped enemy7 = await missionHelper.CreateNeutralEnemyPed(PedHash.Korean01GMY, new Vector3(906.7f, 541.7f, 123.2f), 93.5f, WeaponHash.PistolMk2);

            enemy7._StartScenario("WORLD_HUMAN_GUARD_PATROL");
            Ped enemy8 = await missionHelper.CreateNeutralEnemyPed(PedHash.KorBoss01GMM, new Vector3(902.2f, 510.7f, 121.9f), 296f, WeaponHash.PistolMk2);

            enemy8._StartScenario("WORLD_HUMAN_STAND_IMPATIENT");
        }
        public async Task Prepare()
        {
            deliveryCar = await MissionHelper.CreateRobustVehicle(VehicleHash.Schafter5, new Vector3(-2307.3f, 369.3f, 174.2f), 323.8f);

            API.SetEntityLoadCollisionFlag(deliveryCar.Handle, true);

            missionMusic = new MissionMusic();
            missionMusic.PlayStartMusic();

            missionHelper = new DeliveryMissionHelper(deliveryCar, missionMusic);
            Ped enemy = await missionHelper.CreateNeutralEnemyPed(PedHash.Security01SMM, new Vector3(), 0f, WeaponHash.CarbineRifle);

            enemy.SetIntoVehicle(deliveryCar, VehicleSeat.Driver);
            enemy.Task.CruiseWithVehicle(deliveryCar, 30f, (int)DrivingStyle.Normal);
        }