public MyChineseEscapeMission() { ID = MyMissionID.CHINESE_ESCAPE; /* ID must be added to MyMissions.cs */ Name = MyTextsWrapperEnum.CHINESE_ESCAPE; Description = MyTextsWrapperEnum.CHINESE_ESCAPE_Description; // "Defend Madelyn's mothership and escape with stolen cargo\n" DebugName = new StringBuilder("08d-Chinese escape"); Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(-1919599, 0, 5268734); // Story sector of the script Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point RequiredMissions = new MyMissionID[] { MyMissionID.CHINESE_REFINERY }; RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.CHINESE_ESCAPE_SPEAK_WITH_MADELYN }; RequiredActors = new MyActorEnum[] {MyActorEnum.MADELYN}; m_objectives = new List<MyObjective>(); // Creating of list of submissions m_objective01_flyTowardsMadelyn = new MyObjective( // One member of that list (MyTextsWrapperEnum.CHINESE_ESCAPE_GET_CLOSER_Name), MyMissionID.CHINESE_ESCAPE_GET_CLOSER, (MyTextsWrapperEnum.CHINESE_ESCAPE_GET_CLOSER_Description), null, this, new MyMissionID[] { }, new MyMissionLocation(baseSector, (uint)EntityID.O01DefendMadelyn), startDialogId: MyDialogueEnum.CHINESE_ESCAPE_0100_INTRODUCTION ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudMadelynsSapho }; m_objective01_flyTowardsMadelyn.OnMissionLoaded += O01FlyTowardsMadelynLoaded; m_objective01_flyTowardsMadelyn.OnMissionSuccess += O01FlyTowardsMadelynSuccess; m_objectives.Add(m_objective01_flyTowardsMadelyn); m_objective02_defendMadelyn = new MyObjectiveDestroy( (MyTextsWrapperEnum.CHINESE_ESCAPE_DEFEND_SHIP_Name), MyMissionID.CHINESE_ESCAPE_DEFEND_SHIP, (MyTextsWrapperEnum.CHINESE_ESCAPE_DEFEND_SHIP_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_ESCAPE_GET_CLOSER }, null, new List<uint> { (uint)EntityID.SpawnLastL, (uint)EntityID.SpawnLastR, (uint)EntityID.SpawnLastAsteroid}, true, true ) { SaveOnSuccess = true }; m_objectives.Add(m_objective02_defendMadelyn); m_objective02_defendMadelyn.OnMissionLoaded += new MissionHandler(m_objective02_defendMadelyn_OnMissionLoaded); m_objective02_defendMadelyn.OnMissionCleanUp += new MissionHandler(m_objective02_defendMadelyn_OnMissionCleanUp); var objective03_lastDialogue = new MyObjectiveDialog( MyTextsWrapperEnum.CHINESE_ESCAPE_SPEAK_WITH_MADELYN_Name, MyMissionID.CHINESE_ESCAPE_SPEAK_WITH_MADELYN, MyTextsWrapperEnum.CHINESE_ESCAPE_SPEAK_WITH_MADELYN_Description, null, this, new MyMissionID[] { MyMissionID.CHINESE_ESCAPE_DEFEND_SHIP }, dialogId: MyDialogueEnum.CHINESE_ESCAPE_1000_LAST_OF_THEM ) { SaveOnSuccess = false }; m_objectives.Add(objective03_lastDialogue); }
public MySlaverBase2Mission() { RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; ID = MyMissionID.SLAVER_BASE_2; /* ID must be added to MyMissions.cs */ DebugName = new StringBuilder("09d-Slaver base Delta Earnings"); // Name of mission Name = MyTextsWrapperEnum.SLAVER_BASE_DELTA_EARNINGS; Description = MyTextsWrapperEnum.SLAVER_BASE_DELTA_EARNINGS_Description; Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(4169480, 0, -8216683); // Story sector of the script - i.e. (-2465,0,6541) Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point - must by typecasted to uint and referenced from EntityID enum RequiredMissions = new MyMissionID[] { MyMissionID.FORT_VALIANT_B }; // IDs of missions required to make this mission available RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.SLAVER_BASE_2_FREE_SLAVES, }; m_objectives = new List<MyObjective>(); // Creating of list of submissions // ----------- START OF SUBMISSIONS DEFINITION -------------- var introTalk = new MyObjectiveDialog( MyMissionID.SLAVER_BASE_2_INTRO, null, this, new MyMissionID[] { }, MyDialogueEnum.SLAVERBASE2_0100_INTRO ) { SaveOnSuccess = false }; m_objectives.Add(introTalk); var paralyzeDefense = new MyObjectiveDestroy( // MySubmissionDestroy means mission with objective to destroy something - here it is class member so you can call methods on it MyTextsWrapperEnum.SLAVER_BASE_2_PARALYZE_DEFENSE, //Name of the submission MyMissionID.SLAVER_BASE_2_PARALYZE_DEFENSE, // ID of the submission MyTextsWrapperEnum.SLAVER_BASE_2_PARALYZE_DEFENSE_Description, // Description of the submission null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_2_INTRO }, // ID of submissions required to make this submission available - these declares the sequence of submissions new List<uint> { (uint) EntityID.turret_1, (uint) EntityID.turret_2, (uint) EntityID.turret_3, (uint) EntityID.turret_4, (uint) EntityID.turret_5, (uint) EntityID.turret_6 }, // ID of objects to be destroyed as a mission objective null, true, startDialogID: MyDialogueEnum.SLAVERBASE2_0200_DESTROY_TURRETS ) { SaveOnSuccess = true }; m_objectives.Add(paralyzeDefense); paralyzeDefense.OnMissionLoaded += ParalyzeDefenseOnMissionLoaded; paralyzeDefense.OnMissionCleanUp += ParalyzeDefenseOnMissionUnloaded; var unlockprison1 = new MyUseObjective( MyTextsWrapperEnum.UNLOCK_PRISON_1, MyMissionID.UNLOCK_PRISON_1, MyTextsWrapperEnum.Blank, null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_2_PARALYZE_DEFENSE }, new MyMissionLocation(baseSector, (uint) EntityID.hub1), MyTextsWrapperEnum.PressToHack, MyTextsWrapperEnum.SecurityControlHUB, MyTextsWrapperEnum.HackingProgress, 2000, startDialogId: MyDialogueEnum.SLAVERBASE2_0300_TURRETS_DESTROYED ) { SaveOnSuccess = false }; unlockprison1.OnMissionSuccess += m_Unlockprison1_OnMissionSuccess; m_objectives.Add(unlockprison1); var unlockprison2 = new MyUseObjective( MyTextsWrapperEnum.UNLOCK_PRISON_2, MyMissionID.UNLOCK_PRISON_2, MyTextsWrapperEnum.Blank, null, this, new MyMissionID[] { MyMissionID.UNLOCK_PRISON_1 }, new MyMissionLocation(baseSector, (uint) EntityID.hub2), MyTextsWrapperEnum.PressToHack, MyTextsWrapperEnum.SecurityControlHUB, MyTextsWrapperEnum.HackingProgress, 2000, startDialogId: MyDialogueEnum.SLAVERBASE2_0400_FIRST_HUB_DESTROYED ) { SaveOnSuccess = false }; m_objectives.Add(unlockprison2); var talkAboutGenerator = new MyObjectiveDialog( MyMissionID.SLAVER_BASE_2_TALK_ABOUT_GENERATOR, null, this, new MyMissionID[] { MyMissionID.UNLOCK_PRISON_2 }, MyDialogueEnum.SLAVERBASE2_0500_BOTH_HUBS_DESTROYED ) { SaveOnSuccess = false }; m_objectives.Add(talkAboutGenerator); var breakTheChains = new MyObjectiveDestroy( MyTextsWrapperEnum.SLAVER_BASE_2_BREAK_THE_CHAINS, MyMissionID.SLAVER_BASE_2_BREAK_THE_CHAINS, MyTextsWrapperEnum.Blank, null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_2_TALK_ABOUT_GENERATOR }, new List<uint> { (uint) EntityID.generator_1 }, null, true ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudGenerator }; breakTheChains.OnMissionSuccess += BreakTheChains_OnMissionSuccess; breakTheChains.Components.Add(new MyDetectorDialogue((uint)EntityID.GeneratorDetectorDummy, MyDialogueEnum.SLAVERBASE2_0600_GENERATOR_REACHED)); m_objectives.Add(breakTheChains); var talkAboutPrisoners = new MyObjectiveDialog( MyMissionID.SLAVER_BASE_2_TALK_ABOUT_PRISONERS, null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_2_BREAK_THE_CHAINS }, MyDialogueEnum.SLAVERBASE2_0700_GENERATOR_DESTROYED ) { SaveOnSuccess = false }; m_objectives.Add(talkAboutPrisoners); var freeSlaves = new MyMultipleUseObjective( MyTextsWrapperEnum.SLAVER_BASE_2_FREE_SLAVES, MyMissionID.SLAVER_BASE_2_FREE_SLAVES, MyTextsWrapperEnum.Blank, null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_2_TALK_ABOUT_PRISONERS }, MyTextsWrapperEnum.UnlockCell, MyTextsWrapperEnum.PrisonCell, MyTextsWrapperEnum.UnlockingInProgress, 2000, new List<uint> { (uint) EntityID.slave_1, (uint) EntityID.slave_2, (uint) EntityID.slave_3, (uint) EntityID.slave_4, (uint) EntityID.slave_5 }, MyUseObjectiveType.Activating ) { SaveOnSuccess = true, SuccessDialogId = MyDialogueEnum.SLAVERBASE2_1200_MISSION_COMPLETE }; freeSlaves.OnObjectUsedSucces += OnFreeSlavesObjectiveSuccess; m_objectives.Add(freeSlaves); //var finalFreedom = new MyObjective( // One member of that list - its type defines the type of submission - MySubmission means fly to the dummypoint to success. Here it is var so you cannot call methods on it // new StringBuilder("Return to Valiant."), // Name of the submission // MyMissionID.SLAVER_BASE_2_FINAL_FREEDOM, // ID of the submission - must be added to MyMissions.cs // new StringBuilder("Return to Valiant.\n"), // Description of the submission // null, // this, // new MyMissionID[] { MyMissionID.SLAVER_BASE_2_FREE_SLAVES, MyMissionID.SLAVER_BASE_1_FREE_SLAVES_2, MyMissionID.SLAVER_BASE_1_FREE_SLAVES_3, MyMissionID.SLAVER_BASE_1_FREE_SLAVES_4, MyMissionID.SLAVER_BASE_1_FREE_SLAVES_5 }, // ID of submissions required to make this submission available - it is clear so this submission is the starting submission // new MyMissionLocation(baseSector, (uint)EntityID.FinalFreedom), // ID of dummy point of checkpoint // startDialogId: MyDialogueEnum.SLAVERBASE2_1200_MISSION_COMPLETE // ) { SaveOnSuccess = false }; // False means do not save game in that checkpointa //m_objectives.Add(finalFreedom); // Adding this submission to the list of submissions of current mission }
public MyRimeConvinceMission() { ID = MyMissionID.RIME_CONVINCE; /* ID must be added to MyMissions.cs */ DebugName = new StringBuilder("10-Rime"); // Name of mission Name = MyTextsWrapperEnum.RIME_CONVINCE; Description = MyTextsWrapperEnum.RIME_CONVINCE_Description; Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(-1922856, 0, -2867519); // Story sector of the script - i.e. (-2465,0,6541) Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point - must by typecasted to uint and referenced from EntityID enum RequiredMissions = new MyMissionID[] { MyMissionID.FORT_VALIANT_C }; // IDs of missions required to make this mission available RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.RIME_CONVINCE_TALK_TO_FRANCIS }; m_objectives = new List <MyObjective>(); // Creating of list of submissions RequiredActors = new MyActorEnum[] { MyActorEnum.MADELYN, MyActorEnum.MARCUS, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; var introduction = new MyObjectiveDialog( MyMissionID.RIME_CONVINCE_INTRODUCTION, null, this, new MyMissionID[] { }, dialogId: MyDialogueEnum.RIME_0100_INTRODUCTION ) { SaveOnSuccess = true }; m_objectives.Add(introduction); m_01MeetReef = new MyMeetObjective( (MyTextsWrapperEnum.RIME_CONVINCE_GET_FRANCIS_REEF_Name), MyMissionID.RIME_CONVINCE_GET_FRANCIS_REEF, (MyTextsWrapperEnum.RIME_CONVINCE_GET_FRANCIS_REEF_Description), this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_INTRODUCTION }, null, (uint)EntityID.FrancisReef, distanceToTalk: 300, slowdown: 0.25f, startDialogueId: MyDialogueEnum.RIME_0150_HEAD_TO_REEF, successDialogueId: MyDialogueEnum.RIME_0200_REEF_REACHED ) { SaveOnSuccess = false, FollowMe = false }; m_objectives.Add(m_01MeetReef); m_01MeetReef.OnMissionLoaded += M01MeetReefOnOnMissionLoaded; m_02TalkToReef = new MyObjectiveDialog( MyTextsWrapperEnum.Null, MyMissionID.RIME_CONVINCE_TALK_FRANCIS_REEF, MyTextsWrapperEnum.Null, null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_GET_FRANCIS_REEF }, dialogId: MyDialogueEnum.RIME_0300_TALK_TO_REEF ) { SaveOnSuccess = true }; m_objectives.Add(m_02TalkToReef); m_02TalkToReef.OnMissionLoaded += M02TalkToReefOnOnMissionLoaded; m_02TalkToReef.OnMissionSuccess += M02TalkToReefOnOnMissionSuccess; m_05FlyToDuplex = new MyObjective( (MyTextsWrapperEnum.RIME_CONVINCE_GO_TO_DUPLEX_Name), MyMissionID.RIME_CONVINCE_GO_TO_DUPLEX, (MyTextsWrapperEnum.RIME_CONVINCE_GO_TO_DUPLEX_Description), null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_TALK_FRANCIS_REEF }, new MyMissionLocation(baseSector, (uint)EntityID.FlyToDummy), //startDialogId: MyDialogueEnum.RIME_0400_ON_THE_WAY, successDialogId: MyDialogueEnum.RIME_0500_LISTEN_TO_SUSPICIOUS ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudDuplex }; m_objectives.Add(m_05FlyToDuplex); MyObjectiveDialog clientsTalk = new MyObjectiveDialog( MyMissionID.RIME_CONVINCE_CLIENTS_TALK, null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_GO_TO_DUPLEX }, dialogId: MyDialogueEnum.RIME_0600_CLIENTS_TALK); clientsTalk.OnMissionLoaded += delegate { MyScriptWrapper.ActivateSpawnPoint((uint)EntityID.SpawnpointClient1); MyScriptWrapper.ActivateSpawnPoint((uint)EntityID.SpawnpointClient2); }; m_objectives.Add(clientsTalk); MyObjectiveDialog bouncerTalk = new MyObjectiveDialog( MyMissionID.RIME_CONVINCE_DUPLEX_BOUNCER, null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_CLIENTS_TALK }, dialogId: MyDialogueEnum.RIME_0700_DUPLEX_BOUNCER); bouncerTalk.OnMissionLoaded += delegate { MyScriptWrapper.ActivateSpawnPoint((uint)EntityID.SpawnpointBouncer); }; bouncerTalk.OnMissionSuccess += delegate { MySmallShipBot bouncer = MyScriptWrapper.TryGetEntity("Bouncer") as MySmallShipBot; if (bouncer != null) { bouncer.LookTarget = null; m_barkeeper.LookTarget = null; bouncer.SetWaypointPath("Client1"); bouncer.PatrolMode = MyPatrolMode.ONE_WAY; bouncer.Patrol(); } }; m_objectives.Add(bouncerTalk); var returnBack = new MyObjective( (MyTextsWrapperEnum.RIME_CONVINCE_RETURN_TO_POSITION_Name), MyMissionID.RIME_CONVINCE_RETURN_TO_POSITION, (MyTextsWrapperEnum.RIME_CONVINCE_RETURN_TO_POSITION_Description), null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_DUPLEX_BOUNCER }, new MyMissionLocation(baseSector, (uint)EntityID.FlyToDummy)) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.Nothing }; returnBack.OnMissionSuccess += ReturnBackOnMissionSuccess; m_objectives.Add(returnBack); MyObjectiveDialog contactAppears = new MyObjectiveDialog( MyTextsWrapperEnum.RIME_CONVINCE_CONTACT_APPEARS_Name, MyMissionID.RIME_CONVINCE_CONTACT_APPEARS, MyTextsWrapperEnum.RIME_CONVINCE_CONTACT_APPEARS_Description, null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_RETURN_TO_POSITION }, dialogId: MyDialogueEnum.RIME_0800_CONTACT_APPEARS); contactAppears.OnMissionSuccess += delegate { MySmallShipBot mitchel = (MySmallShipBot)MyScriptWrapper.GetEntity("Mitchel"); mitchel.SetWaypointPath("Follow1"); mitchel.PatrolMode = MyPatrolMode.ONE_WAY; mitchel.Patrol(); m_07followContact.TargetId = mitchel.EntityId.Value.NumericValue; }; m_objectives.Add(contactAppears); m_07followContact = new MyObjectiveFollowBot( (MyTextsWrapperEnum.RIME_CONVINCE_FOLLOW_CONTACT_Name), MyMissionID.RIME_CONVINCE_FOLLOW_CONTACT, (MyTextsWrapperEnum.RIME_CONVINCE_FOLLOW_CONTACT_Description), null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_CONTACT_APPEARS }, null, (uint)EntityID.FactoryFound, MyDialogueEnum.RIME_0900_FOLLOW_INSTRUCTION) { FarDialog = MyDialogueEnum.RIME_2100_HE_IS_GONE, ShortDialog = MyDialogueEnum.RIME_2200_HE_SPOTTED_US, SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudFollow }; m_objectives.Add(m_07followContact); var factoryFoundDialogue = new MyObjectiveDialog( (MyTextsWrapperEnum.RIME_CONVINCE_FACTORY_FOUND_DIALOGUE_Name), MyMissionID.RIME_CONVINCE_FACTORY_FOUND_DIALOGUE, (MyTextsWrapperEnum.RIME_CONVINCE_FACTORY_FOUND_DIALOGUE_Description), null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_FOLLOW_CONTACT }, dialogId: MyDialogueEnum.RIME_1000_FACTORY_FOUND ) { SaveOnSuccess = true }; m_objectives.Add(factoryFoundDialogue); var destroyFactoryBots = new MyObjectiveDestroy( (MyTextsWrapperEnum.RIME_CONVINCE_DESTROY_FACTORY_BOTS_Name), MyMissionID.RIME_CONVINCE_DESTROY_FACTORY_BOTS, (MyTextsWrapperEnum.RIME_CONVINCE_DESTROY_FACTORY_BOTS_Description), null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_FACTORY_FOUND_DIALOGUE }, null, m_factorySpawns //startDialogID: MyDialogueEnum.RIME_1100_WE_GOT_YOUR_BACK ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.Nothing }; destroyFactoryBots.OnMissionLoaded += DestroyFactoryBotsLoaded; m_objectives.Add(destroyFactoryBots); m_08CollectIllegalCargo = new MyMultipleUseObjective ((MyTextsWrapperEnum.RIME_CONVINCE_COLLECT_CARGO_Name), MyMissionID.RIME_CONVINCE_COLLECT_CARGO, (MyTextsWrapperEnum.RIME_CONVINCE_COLLECT_CARGO_Description), null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_DESTROY_FACTORY_BOTS }, MyTextsWrapperEnum.PressToCollectCargo, MyTextsWrapperEnum.IllegalCargo, MyTextsWrapperEnum.TakingInProgress, 2000, m_boxes, MyUseObjectiveType.Taking ) { RadiusOverride = 70f, SaveOnSuccess = true, StartDialogId = MyDialogueEnum.RIME_1100_GRAB_THE_ALCOHOL }; m_objectives.Add(m_08CollectIllegalCargo); m_08CollectIllegalCargo.OnMissionLoaded += M08CollectIllegalCargoOnOnMissionLoaded; m_08CollectIllegalCargo.OnObjectUsedSucces += M08CollectIllegalCargoOnOnObjectUsedSucces; m_08CollectIllegalCargo.OnMissionSuccess += M08CollectIllegalCargoOnOnMissionSuccess; var cargoCollectedDialogue = new MyObjectiveDialog( (MyTextsWrapperEnum.RIME_CONVINCE_CARGO_COLLECTED_DIALOG_Name), MyMissionID.RIME_CONVINCE_CARGO_COLLECTED_DIALOG, (MyTextsWrapperEnum.RIME_CONVINCE_CARGO_COLLECTED_DIALOG_Description), null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_COLLECT_CARGO }, dialogId: MyDialogueEnum.RIME_1200_GET_TO_THE_VESSEL ) { SaveOnSuccess = true }; m_objectives.Add(cargoCollectedDialogue); var flyToVessel = new MyObjective( (MyTextsWrapperEnum.RIME_CONVINCE_FLY_TO_VESSEL_Name), MyMissionID.RIME_CONVINCE_FLY_TO_VESSEL, (MyTextsWrapperEnum.RIME_CONVINCE_FLY_TO_VESSEL_Description), null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_CARGO_COLLECTED_DIALOG }, new MyMissionLocation(baseSector, (uint)EntityID.FlyToVessel), startDialogId: MyDialogueEnum.RIME_1300_ON_THE_WAY_TO_VESSEL ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudRaynoldsVessel }; m_objectives.Add(flyToVessel); flyToVessel.OnMissionLoaded += FlyToVesselLoaded; m_waitForTheMoment = new MyObjective( (MyTextsWrapperEnum.RIME_CONVINCE_WAIT_FOR_THE_MOMENT_Name), MyMissionID.RIME_CONVINCE_WAIT_FOR_THE_MOMENT, (MyTextsWrapperEnum.RIME_CONVINCE_WAIT_FOR_THE_MOMENT_Description), null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_FLY_TO_VESSEL }, null, startDialogId: MyDialogueEnum.RIME_1500_WAIT_FOR_THE_SIGNAL, successDialogId: MyDialogueEnum.RIME_1600_THIS_IS_OUR_CHANCE) { SaveOnSuccess = true }; m_objectives.Add(m_waitForTheMoment); m_waitForTheMoment.OnMissionLoaded += WaitForTheMomentLoaded; m_waitForTheMoment.OnMissionUpdate += WaitForTheMomentUpdate; m_waitForTheMoment.OnMissionCleanUp += new MissionHandler(m_waitForTheMoment_OnMissionCleanUp); m_09plantcargo = new MyMultipleUseObjective ((MyTextsWrapperEnum.RIME_CONVINCE_PLANT_CARGO_Name), MyMissionID.RIME_CONVINCE_PLANT_CARGO, (MyTextsWrapperEnum.RIME_CONVINCE_PLANT_CARGO_Description), null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_WAIT_FOR_THE_MOMENT }, MyTextsWrapperEnum.HoldToPlantCargo, MyTextsWrapperEnum.IllegalCargo, MyTextsWrapperEnum.PlantingInProgress, 2000, m_plantBoxes, MyUseObjectiveType.Taking, startDialogId: MyDialogueEnum.RIME_1650_PLACE ) { RadiusOverride = 60f, SaveOnSuccess = true }; m_objectives.Add(m_09plantcargo); m_09plantcargo.OnMissionLoaded += M09PlantcargoOnOnMissionLoaded; m_09plantcargo.OnMissionSuccess += M09PlantcargoOnOnMissionSuccess; m_09plantcargo.OnObjectUsedSucces += M09PlantcargoOnOnObjectUsedSucces; var getOutOfTheVessel = new MyObjective( (MyTextsWrapperEnum.RIME_CONVINCE_GET_OUT_OF_THE_VESSEL_Name), MyMissionID.RIME_CONVINCE_GET_OUT_OF_THE_VESSEL, (MyTextsWrapperEnum.RIME_CONVINCE_GET_OUT_OF_THE_VESSEL_Description), null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_PLANT_CARGO }, new MyMissionLocation(baseSector, (uint)EntityID.FlyToVessel) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.Nothing }; m_objectives.Add(getOutOfTheVessel); getOutOfTheVessel.OnMissionLoaded += GetOutOfTheVesselLoaded; getOutOfTheVessel.OnMissionSuccess += GetOutOfTheVesselSuccess; /* * var cargoPlantedObjectiveDialogue = new MyObjectiveDialog( * new StringBuilder("Listen to the conversation"), * MyMissionID.RIME_CONVINCE_CARGO_PLANTED_OBJECTIVE_DIALOGUE, * new StringBuilder(""), * null, * this, * new MyMissionID[] { MyMissionID.RIME_CONVINCE_GET_OUT_OF_THE_VESSEL }, * dialogId: MyDialogueEnum.RIME_1800_CARGO_PLANTED * ) { SaveOnSuccess = true }; * m_objectives.Add(cargoPlantedObjectiveDialogue); */ m_10MeetReef = new MyMeetObjective( (MyTextsWrapperEnum.RIME_CONVINCE_GO_BACK_TO_FRANCIS_Name), MyMissionID.RIME_CONVINCE_GO_BACK_TO_FRANCIS, (MyTextsWrapperEnum.RIME_CONVINCE_GO_BACK_TO_FRANCIS_Description), this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_GET_OUT_OF_THE_VESSEL }, null, (uint)EntityID.FrancisReef, 100, 0.25f, null, startDialogueId: MyDialogueEnum.RIME_1800_CARGO_PLANTED ) { SaveOnSuccess = false, FollowMe = false }; m_objectives.Add(m_10MeetReef); //m_01MeetReef.OnMissionLoaded += M01MeetReefOnOnMissionLoaded; m_11TalkToReef = new MyObjectiveDialog( MyMissionID.RIME_CONVINCE_TALK_TO_FRANCIS, null, this, new MyMissionID[] { MyMissionID.RIME_CONVINCE_GO_BACK_TO_FRANCIS }, dialogId: MyDialogueEnum.RIME_2000_REEF_TALK ) { SaveOnSuccess = false }; m_objectives.Add(m_11TalkToReef); m_11TalkToReef.OnMissionLoaded += M11TalkToReefOnOnMissionLoaded; m_11TalkToReef.OnMissionSuccess += M11TalkToReefOnOnMissionSuccess; }
public MyJunkyardEACAmbushMission() { ID = MyMissionID.JUNKYARD_EAC_AMBUSH; /* ID must be added to MyMissions.cs */ DebugName = new StringBuilder("13-EAC ambush"); // Name of mission Name = MyTextsWrapperEnum.JUNKYARD_EAC_AMBUSH; Description = MyTextsWrapperEnum.JUNKYARD_EAC_AMBUSH_Description; Flags = MyMissionFlags.Story; RequiredActors = new MyActorEnum[] { MyActorEnum.MADELYN, MyActorEnum.MARCUS, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; MyMwcVector3Int baseSector = new MyMwcVector3Int(2567538, 0, -172727); // Story sector of the script - i.e. (-2465,0,6541) Location = new MyMissionLocation(baseSector, (uint)EntityID.PlayerStart); // Starting dummy point - must by typecasted to uint and referenced from EntityID enum RequiredMissions = new MyMissionID[] { MyMissionID.RESEARCH_VESSEL }; // IDs of missions required to make this mission available RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_DEFEND_MADELYN }; Components.Add(new MySpawnpointLimiter(m_spawns, 7)); #region Objectives m_objectives = new List <MyObjective>(); // Creating of list of submissions var flyToManjeet = new MyMeetObjective( MyTextsWrapperEnum.EAC_AMBUSH_FLY_TO_MANJEET, MyMissionID.JUNKYARD_EAC_AMBUSH_FLY_MANJEET, MyTextsWrapperEnum.EAC_AMBUSH_FLY_TO_MANJEET_DESC, this, new MyMissionID[] { }, null, (uint)EntityID.FlyToManjeet, 100, 0.25f, null, MyDialogueEnum.EAC_AMBUSH_0100_INTRO ) { SaveOnSuccess = false, FollowMe = false }; flyToManjeet.OnMissionLoaded += FlyToManjeet_Loaded; m_objectives.Add(flyToManjeet); var speakToManjeet = new MyObjectiveDialog( MyMissionID.JUNKYARD_EAC_AMBUSH_TALK_RANIJT, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_FLY_MANJEET }, MyDialogueEnum.EAC_AMBUSH_0200_MANJEET ) { SaveOnSuccess = false }; speakToManjeet.OnMissionLoaded += SpeakToManjeet_Loaded; m_objectives.Add(speakToManjeet); m_backToMadelyn = new MyObjective( MyTextsWrapperEnum.EAC_AMBUSH_GO_BACK_TO_MADELYN, MyMissionID.JUNKYARD_EAC_AMBUSH_GO_BACK_TO_MADELYN, MyTextsWrapperEnum.EAC_AMBUSH_GO_BACK_TO_MADELYN_DESC, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_TALK_RANIJT }, new MyMissionLocation(baseSector, (uint)EntityID.GoBackToMadelyn), startDialogId: MyDialogueEnum.EAC_AMBUSH_0300_GUYS_HURRY_UP ) { HudName = MyTextsWrapperEnum.Nothing }; m_backToMadelyn.OnMissionLoaded += BackToMadelyn_Loaded; m_objectives.Add(m_backToMadelyn); m_speakWithPolice = new MyObjective( MyTextsWrapperEnum.Null, MyMissionID.JUNKYARD_EAC_AMBUSH_SPEAK_POLICE, MyTextsWrapperEnum.Null, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_GO_BACK_TO_MADELYN }, null ); m_speakWithPolice.OnMissionLoaded += SpeakWithPolice_Loaded; m_objectives.Add(m_speakWithPolice); m_defendMadelyn = new MyObjectiveDialog( MyTextsWrapperEnum.EAC_AMBUSH_DEFEND_MADELYN1, MyMissionID.JUNKYARD_EAC_AMBUSH_DEFEND_MADELYN_1, MyTextsWrapperEnum.EAC_AMBUSH_DEFEND_MADELYN1_DESC, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_SPEAK_POLICE }, MyDialogueEnum.EAC_AMBUSH_0500_ONE_LITTLE_ISSUE ) { SaveOnSuccess = true }; m_defendMadelyn.OnMissionLoaded += DefendMadelyn_Loaded; m_objectives.Add(m_defendMadelyn); var destroyGenerator = new MyObjectiveDestroy( MyTextsWrapperEnum.EAC_AMBUSH_DESTROY_GENERATOR, MyMissionID.JUNKYARD_EAC_AMBUSH_DESTROY_GENERATOR, MyTextsWrapperEnum.EAC_AMBUSH_DESTROY_GENERATOR_DESC, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_DEFEND_MADELYN_1 }, new List <uint> { (uint)EntityID.DestroyGenerator } ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_AMBUSH_0700_SPLIT_TO_DESTROY_GENERATORS, HudName = MyTextsWrapperEnum.HudDisruptor }; destroyGenerator.OnMissionLoaded += DestroyGenerator_Loaded; destroyGenerator.OnMissionSuccess += DestroyGenerator_Success; m_objectives.Add(destroyGenerator); var returnToMadelyn = new MyTimedReachLocationObjective( MyTextsWrapperEnum.EAC_AMBUSH_RETURN_TO_MADELYN, MyMissionID.JUNKYARD_EAC_AMBUSH_RETUR_TO_MADELYN, MyTextsWrapperEnum.EAC_AMBUSH_RETURN_TO_MADELYN_DESC, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_DESTROY_GENERATOR }, new TimeSpan(0, 0, 45), new MyMissionLocation(baseSector, (uint)EntityID.ReturnToMadelyn) ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_AMBUSH_1000, HudName = MyTextsWrapperEnum.HudMadelynsSapho }; returnToMadelyn.OnMissionLoaded += ReturnToMadelyn_Loaded; m_objectives.Add(returnToMadelyn); m_defendMadelyn2 = new MyObjective( MyTextsWrapperEnum.EAC_AMBUSH_DEFEND_MADELYN2, MyMissionID.JUNKYARD_EAC_AMBUSH_DEFEND_MADELYN, MyTextsWrapperEnum.EAC_AMBUSH_DEFEND_MADELYN2_DESC, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_RETUR_TO_MADELYN }, null ) { StartDialogId = MyDialogueEnum.EAC_AMBUSH_1200_1300 }; m_defendMadelyn2.OnMissionLoaded += DefendMadelyn2_Loaded; m_defendMadelyn2.OnMissionUpdate += DefendMadelyn2_Update; m_objectives.Add(m_defendMadelyn2); #endregion }
public MyRiftMission() { m_subShakeAction = new MyTimerActionDelegate(SubShake); m_farExplosionAction = new MyTimerActionDelegate(FarExplosion); ID = MyMissionID.RIFT; /* ID must be added to MyMissions.cs */ DebugName = new StringBuilder("14-Rift"); Name = Localization.MyTextsWrapperEnum.RIFT; Description = Localization.MyTextsWrapperEnum.RIFT_Description; Flags = MyMissionFlags.Story; AchievementName = MySteamAchievementNames.Mission21_Rift; MyMwcVector3Int baseSector = new MyMwcVector3Int(-56700, 0, 4276); Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); RequiredMissions = new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH }; RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.RIFT_GOTO_30 }; RequiredActors = new MyActorEnum[] { MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; m_objectives = new List <MyObjective>(); MySpawnpointSmartWaves spawnPointSmartWaves = new MySpawnpointSmartWaves(null, null, 2); var intro = new MyObjectiveDialog( MyMissionID.RIFT_INTRO, null, this, new MyMissionID[] { }, MyDialogueEnum.RIFT_0050_INTRO ) { SaveOnSuccess = true, }; m_objectives.Add(intro); //Cannot see dialogues over inv.screen /* * var getSupplies = new MyObjectiveEnterInventroy( * new StringBuilder("Get supplies for the journey to the Rift"), * MyMissionID.RIFT_GOTO_GETSUPPLIES1, * new StringBuilder("Buy whatever useful."), * null, * this, * new MyMissionID[] { MyMissionID.RIFT_INTRO }, * new List<uint>() { (uint)EntityID.Objective_Vendor } * ) * { * SaveOnSuccess = true, * };*/ var getSupplies = new MyObjective( (MyTextsWrapperEnum.RIFT_GOTO_GETSUPPLIES1_Name), MyMissionID.RIFT_GOTO_GETSUPPLIES1, (MyTextsWrapperEnum.RIFT_GOTO_GETSUPPLIES1_Description), null, this, new MyMissionID[] { MyMissionID.RIFT_INTRO }, new MyMissionLocation(baseSector, (uint)EntityID.Objective_Vendor), radiusOverride: 30 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudSupplies }; getSupplies.OnMissionSuccess += GetSuppliesSubmissionSuccess; getSupplies.OnMissionLoaded += GetSuppliesSubmissionLoaded; m_objectives.Add(getSupplies); var reachTheRiftSubmission = new MyObjective( (MyTextsWrapperEnum.RIFT_GOTO_10_Name), MyMissionID.RIFT_GOTO_10, (MyTextsWrapperEnum.RIFT_GOTO_10_Description), null, this, new MyMissionID[] { MyMissionID.RIFT_GOTO_GETSUPPLIES1 }, new MyMissionLocation(baseSector, (uint)EntityID.Objective_RiftEntraceLocation) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudRift }; reachTheRiftSubmission.OnMissionLoaded += ReachTheRiftSubmissionLoaded; reachTheRiftSubmission.OnMissionSuccess += ReachTheRiftSubmissionSuccess; m_objectives.Add(reachTheRiftSubmission); var getOreSubmission = new MyHarvestOreSubmission( (MyTextsWrapperEnum.RIFT_URANITE_Name), MyMissionID.RIFT_URANITE, (MyTextsWrapperEnum.RIFT_URANITE_Description), null, this, new MyMissionID[] { MyMissionID.RIFT_GOTO_10 }, new MyMissionLocation(baseSector, (uint)EntityID.Objective_Uranite), MyMwcObjectBuilder_Ore_TypesEnum.URANITE, URANITE_TO_OBTAIN, successDialogId: MyDialogueEnum.RIFT_1000_MINING_DONE ) { SaveOnSuccess = true }; getOreSubmission.Components.Add(spawnPointSmartWaves); getOreSubmission.OnMissionLoaded += GetOreSubmissionLoaded; getOreSubmission.OnMissionSuccess += GetOreSubmissionSuccess; m_objectives.Add(getOreSubmission); var returnToMothershipSubmission = new MyObjective( (MyTextsWrapperEnum.RIFT_GOTO_30_Name), MyMissionID.RIFT_GOTO_30, (MyTextsWrapperEnum.RIFT_GOTO_30_Description), null, this, new MyMissionID[] { MyMissionID.RIFT_URANITE }, new MyMissionLocation(baseSector, MyMissionLocation.MADELYN_HANGAR), radiusOverride: MyMissionLocation.MADELYN_HANGAR_RADIUS ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudMadelynsSapho }; returnToMothershipSubmission.OnMissionLoaded += ReturnSubmissionLoaded; returnToMothershipSubmission.OnMissionSuccess += ReturnSubmissionSuccess; m_objectives.Add(returnToMothershipSubmission); //m_subShakeAction = SubShake; //m_farExplosionAction = FarExplosion; }
public MyRussianWarehouseMission() { MyMwcVector3Int baseSector = new MyMwcVector3Int(-7420630, 0, 388170); ID = MyMissionID.RUSSIAN_WAREHOUSE; DebugName = new StringBuilder("05-Russian warehouse"); Name = MyTextsWrapperEnum.RUSSIAN_WAREHOUSE; Description = MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_Description; Flags = MyMissionFlags.Story; Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); RequiredMissions = new MyMissionID[] { MyMissionID.PIRATE_BASE }; RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_MEETINGPOINT }; RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN }; m_objectives = new List<MyObjective>(); m_sneakInsideMainBaseSubmission = new MyObjective( (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_SNEAKINMAINBASE_Name), MyMissionID.RUSSIAN_WAREHOUSE_SNEAKINMAINBASE, (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_SNEAKINMAINBASE_Description), null, this, new MyMissionID[] { }, new MyMissionLocation(baseSector, (uint)EntityID.SneakInsideSubmissionLocation), startDialogId: MyDialogueEnum.RUSSIAN_WAREHOUSE_0100 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudEntrance }; m_sneakInsideMainBaseSubmission.OnMissionLoaded += SneakInsideMainBaseSubmission_OnMissionLoaded; m_objectives.Add(m_sneakInsideMainBaseSubmission); var TurnOffSecurityCams = new MyObjectiveDisablePrefabs( (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_TURNOFFCAMS_Name), MyMissionID.RUSSIAN_WAREHOUSE_TURNOFFCAMS, (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_TURNOFFCAMS_Description), null, this, new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_SNEAKINMAINBASE }, new List<uint>() { (uint)EntityID.TurnOffCamera0, (uint)EntityID.TurnOffCamera1, (uint)EntityID.TurnOffCamera2 }, new List<uint>() { (uint)EntityID.TurnOffHUB }, markObjectsToDisable: false, startDialogId: MyDialogueEnum.RUSSIAN_WAREHOUSE_0200 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudSecurityHub }; m_objectives.Add(TurnOffSecurityCams); TurnOffSecurityCams.OnMissionLoaded += TurnOffSecurityCams_OnMissionLoaded; var ControlTurret = new MyObjectiveDisablePrefabs( (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_CTRLTURRET_Name), MyMissionID.RUSSIAN_WAREHOUSE_CTRLTURRET, (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_CTRLTURRET_Description), null, this, new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_TURNOFFCAMS }, new List<uint>() { (uint)EntityID.SecurityTower1, (uint)EntityID.SecurityTower2, (uint)EntityID.SecurityTower3, (uint)EntityID.SecurityTower4, (uint)EntityID.SecurityTower5 }, new List<uint>() { (uint)EntityID.SecurityTowersHUB }, markObjectsToDisable: false ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudSecurityHub }; ControlTurret.OnMissionLoaded += ControlTurretOnLoaded; ControlTurret.OnMissionSuccess += ControlTurretOnSuccess; m_objectives.Add(ControlTurret); var OpenDoor = new MyObjectiveEnablePrefabs( (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_OPEN_DOORS_Name), MyMissionID.RUSSIAN_WAREHOUSE_OPEN_DOORS, (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_OPEN_DOORS_Description), null, this, new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_CTRLTURRET }, null, new List<uint> { (uint)EntityID.OpenDoorHUB}, new List<uint> { (uint)EntityID.GetOutsideDoors }, startDialogId: MyDialogueEnum.RUSSIAN_WAREHOUSE_0300 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudHub }; m_objectives.Add(OpenDoor); var GetOutsideMainBase = new MyObjective( (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_GETOUTMAINBASE_Name), MyMissionID.RUSSIAN_WAREHOUSE_GETOUTMAINBASE, (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_GETOUTMAINBASE_Description), null, this, new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_OPEN_DOORS }, new MyMissionLocation(baseSector, (uint)EntityID.GetOutsideSubmissionLocation), startDialogId: MyDialogueEnum.RUSSIAN_WAREHOUSE_0400 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.Nothing }; GetOutsideMainBase.OnMissionLoaded += new MissionHandler(GetOutsideMainBase_OnMissionLoaded); m_objectives.Add(GetOutsideMainBase); var BreakThruOldEntrance = new MyObjective( (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_BREAKOLDENTRANCE_Name), MyMissionID.RUSSIAN_WAREHOUSE_BREAKOLDENTRANCE, (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_BREAKOLDENTRANCE_Description), null, this, new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_GETOUTMAINBASE }, new MyMissionLocation(baseSector, (uint)EntityID.BreakThroughSubmissionLocation), startDialogId: MyDialogueEnum.RUSSIAN_WAREHOUSE_1100 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.Nothing }; BreakThruOldEntrance.OnMissionLoaded += BreakThruOldEntrance_OnMissionLoaded; BreakThruOldEntrance.OnMissionUpdate += UpdateRussianMothershipMovement; m_objectives.Add(BreakThruOldEntrance); var LocateWarehouse = new MyObjective( (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_LOCATEWAREHOUSE_Name), MyMissionID.RUSSIAN_WAREHOUSE_LOCATEWAREHOUSE, (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_LOCATEWAREHOUSE_Description), null, this, new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_BREAKOLDENTRANCE }, new MyMissionLocation(baseSector, (uint)EntityID.LocateWarehouseSubmissionLocation), startDialogId: MyDialogueEnum.RUSSIAN_WAREHOUSE_0500 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.Nothing }; LocateWarehouse.OnMissionUpdate += UpdateRussianMothershipMovement; LocateWarehouse.OnMissionLoaded += LocateWarehouse_OnMissionLoaded; LocateWarehouse.OnMissionCleanUp += LocateWarehouse_OnMissionUnload; m_objectives.Add(LocateWarehouse); var FindTransmitter = new MyUseObjective( (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_FINDTRANSMITTER_Name), MyMissionID.RUSSIAN_WAREHOUSE_FINDTRANSMITTER, (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_FINDTRANSMITTER_Description), null, this, new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_LOCATEWAREHOUSE }, new MyMissionLocation(baseSector, (uint)EntityID.TransmitterCargoBox), Localization.MyTextsWrapperEnum.PressToTakeCargo, Localization.MyTextsWrapperEnum.TakeAll, Localization.MyTextsWrapperEnum.TakeAll, 1000, radiusOverride: 50, startDialogId: MyDialogueEnum.RUSSIAN_WAREHOUSE_0700 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudTransmitter }; FindTransmitter.OnMissionUpdate += UpdateRussianMothershipMovement; FindTransmitter.OnMissionLoaded += new MissionHandler(FindTransmitter_OnMissionLoaded); FindTransmitter.OnMissionSuccess += new MissionHandler(FindTransmitter_OnMissionSuccess); m_objectives.Add(FindTransmitter); var downDataDlgSubmission = new MyObjectiveDialog( MyMissionID.RUSSIAN_WAREHOUSE_DOWNDATADIALOGUE, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_FINDTRANSMITTER }, MyDialogueEnum.RUSSIAN_WAREHOUSE_0800 ); downDataDlgSubmission.OnMissionUpdate += UpdateRussianMothershipMovement; m_objectives.Add(downDataDlgSubmission); var DownData = new MyUseObjective( (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_DOWNLOAD_DATA_Name), MyMissionID.RUSSIAN_WAREHOUSE_DOWNLOAD_DATA, (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_DOWNLOAD_DATA_Description), null, this, new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_DOWNDATADIALOGUE }, new MyMissionLocation(baseSector, (uint)EntityID.DownloadDataDummy), Localization.MyTextsWrapperEnum.PressToDownloadData, Localization.MyTextsWrapperEnum.Console, Localization.MyTextsWrapperEnum.DownloadingData, 3000) { SaveOnSuccess = true }; DownData.OnMissionUpdate += UpdateRussianMothershipMovement; DownData.OnMissionLoaded += DownDataOnLoaded; m_objectives.Add(DownData); var TurnOffMainDefense1 = new MyObjectiveDisablePrefabs( (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_TURNOFFMAINDEF_PART1_Name), MyMissionID.RUSSIAN_WAREHOUSE_TURNOFFMAINDEF_PART1, (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_TURNOFFMAINDEF_PART1_Description), null, this, new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_DOWNLOAD_DATA }, new List<uint>() { (uint)EntityID.CargoTurret0, (uint)EntityID.CargoTurret1, (uint)EntityID.CargoTurret2, (uint)EntityID.CargoTurret3, (uint)EntityID.CargoTurret4 }, new List<uint>() { (uint)EntityID.CargoTurretHUB0 }, markObjectsToDisable: false, startDialogId: MyDialogueEnum.RUSSIAN_WAREHOUSE_0900 ) { HudName = MyTextsWrapperEnum.HudHubA }; TurnOffMainDefense1.OnMissionUpdate += UpdateRussianMothershipMovement; m_objectives.Add(TurnOffMainDefense1); var TurnOffMainDefense2 = new MyObjectiveDisablePrefabs( (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_TURNOFFMAINDEF_PART2_Name), MyMissionID.RUSSIAN_WAREHOUSE_TURNOFFMAINDEF_PART2, (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_TURNOFFMAINDEF_PART2_Description), null, this, new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_TURNOFFMAINDEF_PART1 }, new List<uint>() { (uint)EntityID.CargoTurret5, (uint)EntityID.CargoTurret6, (uint)EntityID.CargoTurret7, (uint)EntityID.CargoTurret8, (uint)EntityID.CargoTurret9 }, new List<uint>() { (uint)EntityID.CargoTurretHUB1 }, markObjectsToDisable: false ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudHubB }; TurnOffMainDefense2.OnMissionUpdate += UpdateRussianMothershipMovement; m_objectives.Add(TurnOffMainDefense2); var GetOutsideWarehouse = new MyObjective( (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_GETOUTWAREHOUSE_Name), MyMissionID.RUSSIAN_WAREHOUSE_GETOUTWAREHOUSE, (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_GETOUTWAREHOUSE_Description), null, this, new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_TURNOFFMAINDEF_PART1, MyMissionID.RUSSIAN_WAREHOUSE_TURNOFFMAINDEF_PART2 }, new MyMissionLocation(baseSector, (uint)EntityID.GetOutsideThruCargoSubmissionLocation) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.Nothing }; GetOutsideWarehouse.OnMissionUpdate += UpdateRussianMothershipMovement; GetOutsideWarehouse.OnMissionLoaded += GetOutsideWarehouseOnLoad; GetOutsideWarehouse.OnMissionCleanUp += GetOutsideWarehouseOnCleanUp; m_objectives.Add(GetOutsideWarehouse); var CrushRemainingShips = new MyObjectiveDestroy( (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_CRUSHREMAINGSHIPS_Name), MyMissionID.RUSSIAN_WAREHOUSE_CRUSHREMAINGSHIPS, (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_CRUSHREMAINGSHIPS_Description), null, this, new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_GETOUTWAREHOUSE }, new List<uint> { }, new List<uint> { (uint)EntityID.CrushRussiansSpawnpoint }, false ) { SaveOnSuccess = true }; CrushRemainingShips.OnMissionUpdate += UpdateRussianMothershipMovement; CrushRemainingShips.OnMissionLoaded += CrushRemainingShipsOnLoad; m_objectives.Add(CrushRemainingShips); m_returnToMeetingPointSubmission = new MyObjective( (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_MEETINGPOINT_Name), MyMissionID.RUSSIAN_WAREHOUSE_MEETINGPOINT, (MyTextsWrapperEnum.RUSSIAN_WAREHOUSE_MEETINGPOINT_Description), null, this, new MyMissionID[] { MyMissionID.RUSSIAN_WAREHOUSE_CRUSHREMAINGSHIPS }, new MyMissionLocation(baseSector, MyMissionLocation.MADELYN_HANGAR), successDialogId: MyDialogueEnum.RUSSIAN_WAREHOUSE_1000, radiusOverride: MyMissionLocation.MADELYN_HANGAR_RADIUS ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudMadelynsSapho }; m_returnToMeetingPointSubmission.OnMissionUpdate += UpdateRussianMothershipMovement; m_returnToMeetingPointSubmission.OnMissionUpdate += new MissionHandler(ReturnToMeetingPointSubmissionOnUpdate); m_objectives.Add(m_returnToMeetingPointSubmission); Components.Add(new MySpawnpointWaves((uint)EntityID.RaidDetector, 0, (uint)EntityID.RaidSpawnpoint)); }
public MyRussianTransmitterMission() { ID = MyMissionID.RUSSIAN_TRANSMITTER; /* ID must be added to MyMissions.cs */ DebugName = new StringBuilder("17-RUF transmitter"); Name = MyTextsWrapperEnum.RUSSIAN_TRANSMITTER; Description = MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_Description; Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(-4988032, 0, -865747); // Story sector of the script - i.e. (-2465,0,6541) Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point - must by typecasted to uint and referenced from EntityID enum RequiredMissions = new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER }; // IDs of missions required to make this mission available RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_BACK_TO_MADELYN }; RequiredActors = new MyActorEnum[] { MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; #region Objectives m_objectives = new List<MyObjective>(); // Creating of list of submissions var introDialogue = new MyObjectiveDialog( MyMissionID.RUSSIAN_TRANSMITTER_INTRO_DIALOGUE, null, this, new MyMissionID[] { }, MyDialogueEnum.RUSSIAN_TRANSMITTER_0100_INTRO); m_objectives.Add(introDialogue); // START OF REACH OBJECTIVE SUBMISSION DEFINITION var reachSideEntrance = new MyObjective( // One member of that list - its type defines the type of submission - MySubmission means fly to the dummypoint to success. Here it is var so you cannot call methods on it MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_REACH_SIDE_ENTRANCE, // Name of the submission MyMissionID.RUSSIAN_TRANSMITTER_REACH_SIDE_ENTRANCE, // ID of the submission - must be added to MyMissions.cs MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_REACH_SIDE_ENTRANCE_Description, // Description of the submission null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_INTRO_DIALOGUE }, // ID of submissions required to make this submission available - it is clear so this submission is the starting submission new MyMissionLocation(baseSector, (uint)EntityID.OutpostSideEntrance) // ID of dummy point of checkpoint ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudEntrance }; // False means do not save game in that checkpoint m_objectives.Add(reachSideEntrance); // Adding this submission to the list of submissions of current mission // END OF REACH OBJECTIVE SUBMISSION DEFINITION var enterTheBase = new MyObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_ENTER_THE_BASE, MyMissionID.RUSSIAN_TRANSMITTER_ENTER_THE_BASE, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_ENTER_THE_BASE_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_REACH_SIDE_ENTRANCE }, new MyMissionLocation(baseSector, (uint)EntityID.EnterTheBase) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudEntrance }; enterTheBase.OnMissionLoaded += new MissionHandler(enterTheBase_OnMissionLoaded); enterTheBase.OnMissionSuccess += new MissionHandler(enterTheBase_OnMissionSuccess); m_objectives.Add(enterTheBase); var findFrequency = new MyUseObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_FIND_FREQUENCY, MyMissionID.RUSSIAN_TRANSMITTER_FIND_FREQUENCY, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_FIND_FREQUENCY_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_ENTER_THE_BASE }, new MyMissionLocation(baseSector, (uint)EntityID.SabotageTurrets_1), MyTextsWrapperEnum.PressToDownloadData, MyTextsWrapperEnum.SecurityControlHUB, MyTextsWrapperEnum.DownloadingData, 10000, MyUseObjectiveType.Hacking ) { SaveOnSuccess = false }; findFrequency.OnMissionLoaded += new MissionHandler(findFrequency_OnMissionLoaded); findFrequency.OnMissionSuccess += FindFrequency_Success; m_objectives.Add(findFrequency); m_strangerContact = new MyObjectiveDialog( MyTextsWrapperEnum.Null, MyMissionID.RUSSIAN_TRANSMITTER_STRANGER_CONTACT, MyTextsWrapperEnum.Null, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_FIND_FREQUENCY }, MyDialogueEnum.RUSSIAN_TRANSMITTER_0500_0600_HACKPROBLEM_STRANGERCALLS ); m_objectives.Add(m_strangerContact); var meetStranger = new MyObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_MEET_STRANGER, MyMissionID.RUSSIAN_TRANSMITTER_MEET_STRANGER, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_MEET_STRANGER_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_STRANGER_CONTACT }, new MyMissionLocation(baseSector, (uint)EntityID.ShipVolodia), radiusOverride: 90f ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudStranger }; meetStranger.OnMissionLoaded += MeetStranger_Loaded; meetStranger.OnMissionSuccess += MeetStranger_Success; m_objectives.Add(meetStranger); var reachWarehouse = new MyObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_REACH_WAREHOUSE, MyMissionID.RUSSIAN_TRANSMITTER_REACH_WAREHOUSE, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_REACH_WAREHOUSE_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_MEET_STRANGER }, new MyMissionLocation(baseSector, (uint)EntityID.ReachWarehouse) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudWarehouse }; reachWarehouse.OnMissionLoaded += new MissionHandler(ReachWarehouse_Loaded); m_objectives.Add(reachWarehouse); var stealMilitarySupply = new MyUseObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_STEAL_MILITARY_SUPPLY, MyMissionID.RUSSIAN_TRANSMITTER_STEAL_MILITARY_SUPPLY, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_STEAL_MILITARY_SUPPLY_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_REACH_WAREHOUSE }, new MyMissionLocation(baseSector, (uint)EntityID.StealMilitarySupply), MyTextsWrapperEnum.PressToTakeCargo, MyTextsWrapperEnum.CargoBox, MyTextsWrapperEnum.TakingInProgress, 1000, MyUseObjectiveType.Activating ) { SaveOnSuccess = false }; stealMilitarySupply.OnMissionSuccess += new MissionHandler(StealMilitarySupply_Success); m_objectives.Add(stealMilitarySupply); m_tradeWithVolodia = new MyObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_TRADE_WITH_VOLODIA, MyMissionID.RUSSIAN_TRANSMITTER_TRADE_WITH_VOLODIA, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_TRADE_WITH_VOLODIA_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_STEAL_MILITARY_SUPPLY }, new MyMissionLocation(baseSector, (uint)EntityID.ShipVolodia), radiusOverride: 90 ) { SaveOnSuccess = true, SuccessDialogId = MyDialogueEnum.RUSSIAN_TRANSMITTER_1000_VOLODIA_FOUND, HudName = MyTextsWrapperEnum.Volodia }; m_tradeWithVolodia.OnMissionSuccess += TradeWithVolodia_Success; m_objectives.Add(m_tradeWithVolodia); m_fightRussianCommando = new MyObjectiveDestroy( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_FIGHT_RUSSIAN_COMMANDO, MyMissionID.RUSSIAN_TRANSMITTER_FIGHT_RUSSIAN_COMMANDO, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_FIGHT_RUSSIAN_COMMANDO_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_TRADE_WITH_VOLODIA }, //new List<uint> { (uint)EntityID.MothershipEntity }, new List<uint> { }, new List<uint> { (uint)EntityID.CommandoSpawnPoint }, false ) { SaveOnSuccess = false, SuccessDialogId = MyDialogueEnum.RUSSIAN_TRANSMITTER_1400_RETREAT, HudName = MyTextsWrapperEnum.Nothing }; m_fightRussianCommando.OnMissionLoaded += RussianCommandoLoaded; m_fightRussianCommando.OnMissionSuccess += new MissionHandler(FightRussianCommando_Success); m_objectives.Add(m_fightRussianCommando); var backToTransmitter = new MyObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_BACK_TO_TRANSMITTER, MyMissionID.RUSSIAN_TRANSMITTER_BACK_TO_TRANSMITTER, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_BACK_TO_TRANSMITTER_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_FIGHT_RUSSIAN_COMMANDO }, // prerekvizita - OPRAVIT na survive!!! new MyMissionLocation(baseSector, (uint)EntityID.BackToTransmitter) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudTransmitter }; backToTransmitter.OnMissionLoaded += new MissionHandler(BackToTransmitter_Loaded); m_objectives.Add(backToTransmitter); var decryptFrequency = new MyUseObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_DECRYPT_FREQUENCY, MyMissionID.RUSSIAN_TRANSMITTER_DECRYPT_FREQUENCY, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_DECRYPT_FREQUENCY_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_BACK_TO_TRANSMITTER }, new MyMissionLocation(baseSector, (uint)EntityID.SabotageTurrets_1), MyTextsWrapperEnum.PressToHack, MyTextsWrapperEnum.SecurityControlHUB, MyTextsWrapperEnum.HackingProgress, 5000, MyUseObjectiveType.Hacking ) { SaveOnSuccess = false, SuccessDialogId = MyDialogueEnum.RUSSIAN_TRANSMITTER_1600_ITSWORKING }; m_objectives.Add(decryptFrequency); var uploadData = new MyUseObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_UPLOAD_DATA, MyMissionID.RUSSIAN_TRANSMITTER_UPLOAD_DATA, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_UPLOAD_DATA_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_DECRYPT_FREQUENCY }, new MyMissionLocation(baseSector, (uint)EntityID.SabotageTurrets_3), MyTextsWrapperEnum.PressToHack, MyTextsWrapperEnum.SecurityControlHUB, MyTextsWrapperEnum.HackingProgress, 5000 ) { SaveOnSuccess = false, SuccessDialogId = MyDialogueEnum.RUSSIAN_TRANSMITTER_1700_UPLOADINGSIGNAL }; m_objectives.Add(uploadData); var findMainRoomEntrance = new MyObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_FIND_MAIN_ROOM_ENTRANCE, MyMissionID.RUSSIAN_TRANSMITTER_FIND_MAIN_ROOM_ENTRANCE, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_FIND_MAIN_ROOM_ENTRANCE_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_UPLOAD_DATA }, new MyMissionLocation(baseSector, (uint)EntityID.FindMainRoomEntrance) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudEntrance }; findMainRoomEntrance.OnMissionLoaded += new MissionHandler(findMainRoomEntrance_Loaded); m_objectives.Add(findMainRoomEntrance); var placeDeviceOnTransmitter = new MyUseObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_PLACE_DEVICE_ON_TRANSMITTER, MyMissionID.RUSSIAN_TRANSMITTER_PLACE_DEVICE_ON_TRANSMITTER, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_PLACE_DEVICE_ON_TRANSMITTER_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_FIND_MAIN_ROOM_ENTRANCE }, new MyMissionLocation(baseSector, (uint)EntityID.PlaceDeviceOnTransmitter), MyTextsWrapperEnum.PressToPlaceDevice, MyTextsWrapperEnum.Transmitter, MyTextsWrapperEnum.PlacementInProgress, 10000, MyUseObjectiveType.Building ) { SaveOnSuccess = false }; placeDeviceOnTransmitter.OnMissionSuccess += new MissionHandler(PlaceDeviceOnTransmitter_Success); m_objectives.Add(placeDeviceOnTransmitter); var openDoors = new MyObjectiveEnablePrefabs( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_OPEN_DOORS, MyMissionID.RUSSIAN_TRANSMITTER_OPEN_DOORS, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_OPEN_DOORS_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_PLACE_DEVICE_ON_TRANSMITTER }, null, new List<uint> { (uint)EntityID.Hub3 }, new List<uint> { (uint)EntityID.Door1, (uint)EntityID.Door2, (uint)EntityID.Door3, (uint)EntityID.Door4, } ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHub }; openDoors.OnMissionSuccess += new MissionHandler(OpenDoors_Success); m_objectives.Add(openDoors); var backToMadelyn = new MyObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_BACK_TO_MADELYN, MyMissionID.RUSSIAN_TRANSMITTER_BACK_TO_MADELYN, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_BACK_TO_MADELYN_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_OPEN_DOORS }, new MyMissionLocation(baseSector, MyMissionLocation.MADELYN_HANGAR), radiusOverride: MyMissionLocation.MADELYN_HANGAR_RADIUS ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudMadelynsSapho }; backToMadelyn.OnMissionSuccess += new MissionHandler(BackToMadelyn_Success); m_objectives.Add(backToMadelyn); #endregion }
public MyLastHopeMission() { ID = MyMissionID.LAST_HOPE; Name = MyTextsWrapperEnum.LAST_HOPE; Description = MyTextsWrapperEnum.LAST_HOPE_Description; DebugName = new StringBuilder("07-Last Hope"); Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(-190694, 0, -18204363); Location = new MyMissionLocation(baseSector, (uint)EntityId.ReachColonyDummy); RequiredMissions = new MyMissionID[] { MyMissionID.BARTHS_MOON_TRANSMITTER }; RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.LAST_HOPE_LEAVE_UNDERGROUND }; RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN }; #region Objectives m_objectives = new List<MyObjective>(); var reachColony = new MyObjective( MyTextsWrapperEnum.LAST_HOPE_REACH_COLONY, MyMissionID.LAST_HOPE_REACH_COLONY, MyTextsWrapperEnum.LAST_HOPE_REACH_COLONY_DESCRIPTION, null, this, new MyMissionID[] { }, new MyMissionLocation(baseSector, (uint)EntityId.ReachColonyDummy), startDialogId: MyDialogueEnum.LAST_HOPE_0100 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudLastHope }; reachColony.Components.Add(new MySpawnpointWaves((uint)EntityId.ReachColonyDialogDetector, 1, new List<uint[]>() { new uint[]{(uint)EntityId.ReachColonySpawn1} })); var dialogComponent = new MyDetectorDialogue((uint)EntityId.ReachColonyDialogDetector, MyDialogueEnum.LAST_HOPE_0200); dialogComponent.OnDialogStarted += ReachColonyDialogComonentOnOnDialogStarted; dialogComponent.OnDialogFinished += ReachColonyDialogComonentOnOnDialogFinished; reachColony.Components.Add(dialogComponent); m_objectives.Add(reachColony); var destroySlaverRiders = new MyObjectiveDestroy( MyTextsWrapperEnum.LAST_HOPE_REACH_DESTROY_RIDERS, MyMissionID.LAST_HOPE_DESTROY_SLAVER_RIDERS, MyTextsWrapperEnum.LAST_HOPE_REACH_DESTROY_RIDERS_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_REACH_COLONY }, new List<uint> { (uint)EntityId.DestroySlaverRidersGenerator1, (uint)EntityId.DestroySlaverRidersGenerator2 } ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.LAST_HOPE_0300, HudName = MyTextsWrapperEnum.Nothing }; destroySlaverRiders.Components.Add(new MySpawnpointWaves((uint)EntityId.DestroySlaverRidersDetector1, 1, new List<uint[]>() { new uint[]{(uint)EntityId.DestroySlaverRidersSpawn11}, new uint[]{(uint)EntityId.DestroySlaverRidersSpawn12} })); destroySlaverRiders.Components.Add(new MySpawnpointWaves((uint)EntityId.DestroySlaverRidersDetector1, 1, new List<uint[]>() { new uint[]{(uint)EntityId.DestroySlaverRidersSpawn21}, new uint[]{(uint)EntityId.DestroySlaverRidersSpawn22} })); destroySlaverRiders.Components.Add(new MySpawnpointWaves((uint)EntityId.DestroySlaverRidersDetector3, 1, new List<uint[]>() { new uint[]{(uint)EntityId.DestroySlaverRidersSpawn31}, new uint[]{(uint)EntityId.DestroySlaverRidersSpawn32} })); destroySlaverRiders.Components.Add(new MySpawnpointWaves((uint)EntityId.DestroySlaverRidersDetector3, 1, new List<uint[]>() { new uint[]{(uint)EntityId.DestroySlaverRidersSpawn41}, new uint[]{(uint)EntityId.DestroySlaverRidersSpawn42} })); destroySlaverRiders.OnMissionLoaded += DestroySlaverRiders_Loaded; m_objectives.Add(destroySlaverRiders); m_catchSlaverRiders = new MyObjective( MyTextsWrapperEnum.LAST_HOPE_REACH_CATCH_SHIPS, MyMissionID.LAST_HOPE_CATCH_SLAVER_RIDERS, MyTextsWrapperEnum.LAST_HOPE_REACH_CATCH_SHIPS_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_DESTROY_SLAVER_RIDERS, }, new MyMissionLocation(baseSector, (uint)EntityId.CatchSlaverRidersDummy) ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.LAST_HOPE_0400 }; m_catchSlaverRiders.Components.Add(new MySpawnpointWaves((uint)EntityId.CatchSlaverRidersDetector1, 1, new List<uint[]>() { new uint[]{(uint)EntityId.CatchSlaverRidersSpawn1}, })); m_catchSlaverRiders.Components.Add(new MySpawnpointWaves((uint)EntityId.CatchSlaverRidersDetector2, 1, new List<uint[]>() { new uint[]{(uint)EntityId.CatchSlaverRidersSpawn21}, new uint[]{(uint)EntityId.CatchSlaverRidersSpawn22} })); m_catchSlaverRiders.OnMissionLoaded += CatchSlaverRiders_Loaded; m_objectives.Add(m_catchSlaverRiders); m_stopSlaverTransport = new MyObjectiveDestroy( MyTextsWrapperEnum.LAST_HOPE_REACH_STOP_SHIPS, MyMissionID.LAST_HOPE_STOP_SLAVER_RIDERS, MyTextsWrapperEnum.LAST_HOPE_REACH_STOP_SHIPS_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_CATCH_SLAVER_RIDERS }, new List<uint>() { (uint)EntityId.StopSlaverTransportGenerator1, (uint)EntityId.StopSlaverTransportGenerator2 } ) { SaveOnSuccess = false, StartDialogId = MyDialogueEnum.LAST_HOPE_0500 }; m_movingShip1 = new MyMovingEntity((uint)EntityId.StopSlaverTransportShip1, (uint)EntityId.StopSlaverTransportShip1Target, StopSlaversObjectiveTime, false); m_movingShip2 = new MyMovingEntity((uint)EntityId.StopSlaverTransportShip2, (uint)EntityId.StopSlaverTransportShip2Target, StopSlaversObjectiveTime, false); m_movingShip1Particle = new MyMovingEntity((uint)EntityId.StopSlaverTransportShip1Particle, (uint)EntityId.StopSlaverTransportShip1TargetParticle, StopSlaversObjectiveTime, false); m_movingShip2Particle = new MyMovingEntity((uint)EntityId.StopSlaverTransportShip2Particle, (uint)EntityId.StopSlaverTransportShip2TargetParticle, StopSlaversObjectiveTime, false); m_stopSlaverTransport.Components.Add(m_movingShip1); m_stopSlaverTransport.Components.Add(m_movingShip2); m_stopSlaverTransport.Components.Add(m_movingShip1Particle); m_stopSlaverTransport.Components.Add(m_movingShip2Particle); m_stopSlaverTransport.OnMissionLoaded += StopSlaverTransport_Loaded; m_stopSlaverTransport.Components.Add(new MySpawnpointWaves((uint)EntityId.CatchSlaverRidersDummy, 1, new List<uint[]>() { new uint[]{(uint)EntityId.StopSlaverTransportSpawn11,(uint)EntityId.StopSlaverTransportSpawn21,}, new uint[]{(uint)EntityId.StopSlaverTransportSpawn12,(uint)EntityId.StopSlaverTransportSpawn22,}, })); m_objectives.Add(m_stopSlaverTransport); var speakWithFathetTobias = new MyObjectiveDialog ( MyTextsWrapperEnum.LAST_HOPE_SPEAK_WITH_FATHER, MyMissionID.LAST_HOPE_SPEAK_WITH_FATHER, MyTextsWrapperEnum.LAST_HOPE_SPEAK_WITH_FATHER_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_STOP_SLAVER_RIDERS }, MyDialogueEnum.LAST_HOPE_0600 ) { SaveOnSuccess = true }; m_objectives.Add(speakWithFathetTobias); var reachCaves = new MyObjective( MyTextsWrapperEnum.LAST_HOPE_REACH_REACH_CAVE, MyMissionID.LAST_HOPE_REACH_UNDEGROUND_CAVES, MyTextsWrapperEnum.LAST_HOPE_REACH_REACH_CAVE_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_SPEAK_WITH_FATHER }, new MyMissionLocation(baseSector, (uint)EntityId.ReachCavesLocation) ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.LAST_HOPE_0700, HudName = MyTextsWrapperEnum.HudCave }; m_objectives.Add(reachCaves); m_findTunnel = new MyObjective( MyTextsWrapperEnum.LAST_HOPE_REACH_TUNNEL, MyMissionID.LAST_HOPE_FIND_MAINTANCE_TUNELL, MyTextsWrapperEnum.LAST_HOPE_REACH_TUNNEL_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_REACH_UNDEGROUND_CAVES }, new MyMissionLocation(baseSector, (uint)EntityId.FindTunnelDummy) ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.LAST_HOPE_0800, HudName = MyTextsWrapperEnum.HudTunnel }; m_findTunnel.Components.Add(new MySpawnpointWaves((uint)EntityId.ReachCavesLocation, 1, new List<uint[]>() { new uint[]{(uint)EntityId.FindTunnelSpawn1}, new uint[]{(uint)EntityId.FindTunnelSpawn2}, new uint[]{(uint)EntityId.FindTunnelSpawn3}, })); m_objectives.Add(m_findTunnel); var killSaboteurSquad = new MyDestroyWavesObjective ( MyTextsWrapperEnum.LAST_HOPE_KILL_SABOTERS, MyMissionID.LAST_HOPE_KILL_SQUAD, MyTextsWrapperEnum.LAST_HOPE_KILL_SABOTERS, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_FIND_MAINTANCE_TUNELL } ) { SaveOnSuccess = true }; killSaboteurSquad.AddWave(new List<uint>() { (uint)EntityId.KillSaboteursSpawn }); killSaboteurSquad.Components.Add(new MyDetectorDialogue((uint)EntityId.KillSabotersDetector, MyDialogueEnum.LAST_HOPE_1100)); m_objectives.Add(killSaboteurSquad); var deactivateBombs = new MyMultipleUseObjective (MyTextsWrapperEnum.LAST_HOPE_DEACTIVATE_BOMBS, MyMissionID.LAST_HOPE_DEACTIVATE_BOMB, MyTextsWrapperEnum.LAST_HOPE_DEACTIVATE_BOMBS_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_KILL_SQUAD }, MyTextsWrapperEnum.PressToDeactivateNuclearHead, MyTextsWrapperEnum.NuclearHead, MyTextsWrapperEnum.DeactivatingInProgress, 5000, new List<uint>() { (uint)EntityId.DeactivateBombPrefab1, (uint)EntityId.DeactivateBombPrefab2 }, MyUseObjectiveType.Taking ) { RadiusOverride = 30, SaveOnSuccess = true, StartDialogId = MyDialogueEnum.LAST_HOPE_1200 }; deactivateBombs.OnMissionLoaded += DeactivateBombs_Loaded; deactivateBombs.OnObjectUsedSucces += DeactivateBombs_ObjectUsedSuccess; deactivateBombs.Components.Add(new MyDetectorDialogue((uint)EntityId.GasCloudsDetector, MyDialogueEnum.LAST_HOPE_1300)); m_objectives.Add(deactivateBombs); m_repairPipes = new MyMultipleUseObjective (MyTextsWrapperEnum.LAST_HOPE_STABILIZE_GAS, MyMissionID.LAST_HOPE_REPAIR_PIPES, MyTextsWrapperEnum.LAST_HOPE_STABILIZE_GAS_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_DEACTIVATE_BOMB }, MyTextsWrapperEnum.PressToRepairGasPipe, MyTextsWrapperEnum.GasPipe, MyTextsWrapperEnum.ProgressRepairing, 5000, new List<uint>() { }, MyUseObjectiveType.Repairing ) { SaveOnSuccess = true, RadiusOverride = 30, StartDialogId = MyDialogueEnum.LAST_HOPE_1400, SuccessDialogId = MyDialogueEnum.LAST_HOPE_1600 }; foreach (var gasPipe in m_gasPipes) { m_repairPipes.MissionEntityIDs.Add(gasPipe.Key); } m_repairPipes.OnObjectUsedSucces += RepairPipes_ObjectUsedSuccess; m_objectives.Add(m_repairPipes); var stabilizeNuclearCore = new MyMultipleUseObjective ( MyTextsWrapperEnum.LAST_HOPE_STABILIZE_NUCLEAR_CORE, MyMissionID.LAST_HOPE_STABILIZE_NUCLEAR_CORE, MyTextsWrapperEnum.LAST_HOPE_STABILIZE_GAS_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_REPAIR_PIPES }, MyTextsWrapperEnum.PressToRepairRadiation, MyTextsWrapperEnum.RadiationLeak, MyTextsWrapperEnum.Fixing, 5000, new List<uint>() { }, MyUseObjectiveType.Repairing ) { RadiusOverride = 40, SaveOnSuccess = true }; stabilizeNuclearCore.Components.Add(new MyDetectorDialogue((uint)EntityId.StabilizeCoreDialog1Dummy, MyDialogueEnum.LAST_HOPE_1700)); stabilizeNuclearCore.Components.Add(new MyDetectorDialogue((uint)EntityId.StabilizeCoreDialog2Dummy, MyDialogueEnum.LAST_HOPE_1800)); foreach (var core in m_nuclearCores) { stabilizeNuclearCore.MissionEntityIDs.Add(core.Key); } stabilizeNuclearCore.OnObjectUsedSucces += StabilizeNuclearCore_ObjectUsedSuccess; m_objectives.Add(stabilizeNuclearCore); var leaveUnderground = new MyObjective ( MyTextsWrapperEnum.LAST_HOPE_LEAVE_SHAFTS, MyMissionID.LAST_HOPE_LEAVE_UNDERGROUND, MyTextsWrapperEnum.LAST_HOPE_LEAVE_SHAFTS_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_STABILIZE_NUCLEAR_CORE }, new MyMissionLocation(baseSector, (uint)EntityId.LaveUndergroundDummy)) { StartDialogId = MyDialogueEnum.LAST_HOPE_1900, HudName = MyTextsWrapperEnum.Nothing }; leaveUnderground.OnMissionSuccess += LeaveUnderground_Success; m_objectives.Add(leaveUnderground); #endregion }
public MyEACPrisonMission() { ID = MyMissionID.EAC_PRISON; /* ID must be added to MyMissions.cs */ DebugName = new StringBuilder("20-EAC prison"); Name = MyTextsWrapperEnum.EAC_PRISON; Description = MyTextsWrapperEnum.EAC_PRISON_Description; Flags = MyMissionFlags.Story; AchievementName = MySteamAchievementNames.Mission29_EacPrison; MyMwcVector3Int baseSector = new MyMwcVector3Int(5480055, 0, -5077310); /* sector where the mission is located */ Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); //posledne cislo - ID dummy pointu kde prijimam misiu RequiredMissions = new MyMissionID[] { MyMissionID.TWIN_TOWERS }; RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.EAC_PRISON_MEETINGPOINT }; RequiredActors = new MyActorEnum[] { MyActorEnum.TARJA, MyActorEnum.VALENTIN, MyActorEnum.MADELYN, MyActorEnum.MARCUS }; m_objectives = new List<MyObjective>(); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeStorage, 0, (uint)EntityID.SpawnpointAtStorage)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeIndustry, 0, (uint)EntityID.SpawnpointAtIndustry1)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeIndustry, 0, (uint)EntityID.SpawnpointAtIndustry2)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeParking, 0, (uint)EntityID.SpawnpointAtParking)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeMines, 0, (uint)EntityID.SpawnpointAtMines)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeMinesEntrance, 0, (uint)EntityID.SpawnpointAtMinesEntrance)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeMarcusCell, 0, (uint)EntityID.SpawnpointAtMarcusCell)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeSecurityCheck7, 0, (uint)EntityID.SpawnpointAtSecurityCheck7)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeSecurityCheck6, 0, (uint)EntityID.SpawnpointAtSecurityCheck6)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeSecurityCheck8, 0, (uint)EntityID.SpawnpointAtSecurityCheck8)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeSecurityCheck4, 0, (uint)EntityID.SpawnpointAtSecurityCheck4)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeCellAfterSecurityCheck4, 0, (uint)EntityID.SpawnpointAtCellAfterSecurityCheck4)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeSecurityCheck5, 0, (uint)EntityID.SpawnpointAtSecurityCheck5)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeCell1AfterSecurityCheck5, 0, (uint)EntityID.SpawnpointAtCell1AfterSecurityCheck5)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeCell2AfterSecurityCheck5, 0, (uint)EntityID.SpawnpointAtCell2AfterSecurityCheck5)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeCell3AfterSecurityCheck5, 0, (uint)EntityID.SpawnpointAtCell3AfterSecurityCheck5)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeSecurityCheck3, 0, (uint)EntityID.SpawnpointAtSecurityCheck3)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeCell1AfterSecurityCheck3, 0, (uint)EntityID.SpawnpointAtCell1AfterSecurityCheck3)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeCell2AfterSecurityCheck3, 0, (uint)EntityID.SpawnpointAtCell2AfterSecurityCheck3)); //Components.Add(new MySpawnpointWaves(detectorId, 3, new List<uint[]> { // new uint[] { spawnpointId1, spawnpointId2, spawnpointId3 }, // new uint[] { spawnpointId4, spawnpointId5 }})); //01 var mothershipBattle = new MyObjective( (MyTextsWrapperEnum.EAC_PRISON_THRUSWARM_Name), MyMissionID.EAC_PRISON_THRUSWARM, (MyTextsWrapperEnum.EAC_PRISON_THRUSWARM_Description), null, this, new MyMissionID[] {}, new MyMissionLocation(baseSector, (uint)EntityID.MotherShiBattleLocationDummy) ) {SaveOnSuccess = true,StartDialogId = MyDialogueEnum.EAC_PRISON_0100, SuccessDialogId = MyDialogueEnum.EAC_PRISON_0200}; m_objectives.Add(mothershipBattle); //mothershipBattle.Components.Add(new MySpawnpointWaves(77073, 0, 76625)); mothershipBattle.OnMissionLoaded += mothershipBattle_OnMissionLoaded; //02 var destroySolarDefence = new MyObjectiveDestroy( (MyTextsWrapperEnum.EAC_PRISON_SOLARDEF_Name), MyMissionID.EAC_PRISON_SOLARDEF, (MyTextsWrapperEnum.EAC_PRISON_SOLARDEF_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_THRUSWARM }, m_02toKill ) { SaveOnSuccess = true,StartDialogId = MyDialogueEnum.EAC_PRISON_0300}; destroySolarDefence.OnMissionSuccess += DestroySolarDefenceOnOnMissionSuccess; m_objectives.Add(destroySolarDefence); destroySolarDefence.OnMissionLoaded += destroySolarDefence_OnMissionLoaded; //03 m_destroySolarPanelsFirst = new MyObjective( (MyTextsWrapperEnum.EAC_PRISON_SOLAROFF1_Name), MyMissionID.EAC_PRISON_SOLAROFF1, (MyTextsWrapperEnum.EAC_PRISON_SOLAROFF1_Description), null, this, new MyMissionID[] {MyMissionID.EAC_PRISON_SOLARDEF}, null ) {SaveOnSuccess = false}; m_destroySolarPanelsFirst.OnMissionLoaded += DestroySolarPanelsFirstSubmissionLoaded; m_destroySolarPanelsFirst.OnMissionSuccess += DestroySolarPanelsFirstSubmissionSuccess; m_objectives.Add(m_destroySolarPanelsFirst); m_destroySolarPanelsFirst.SaveOnSuccess = true; //04 var motherShipHelp = new MyObjectiveDestroy( (MyTextsWrapperEnum.EAC_PRISON_MOTHERSHIPHELP_Name), MyMissionID.EAC_PRISON_MOTHERSHIPHELP, (MyTextsWrapperEnum.EAC_PRISON_MOTHERSHIPHELP_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_SOLAROFF1 }, m_04toKill ) { SaveOnSuccess = false, StartDialogId = MyDialogueEnum.EAC_PRISON_0400, SuccessDialogId = MyDialogueEnum.EAC_PRISON_0500}; m_objectives.Add(motherShipHelp); motherShipHelp.OnMissionLoaded += new MissionHandler(motherShipHelp_OnMissionLoaded); //05 m_destroySolarPanelsSecond = new MyObjective( (MyTextsWrapperEnum.EAC_PRISON_SOLAROFF2_Name), MyMissionID.EAC_PRISON_SOLAROFF2, (MyTextsWrapperEnum.EAC_PRISON_SOLAROFF2_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_MOTHERSHIPHELP }, null ) { SaveOnSuccess = true,}; m_destroySolarPanelsSecond.OnMissionLoaded += DestroySolarPanelsSecondSubmissionLoaded; m_destroySolarPanelsSecond.OnMissionSuccess += DestroySolarPanelsSecondSubmissionSuccess; m_objectives.Add(m_destroySolarPanelsSecond); //06 var breakInsideStation = new MyTimedReachLocationObjective( (MyTextsWrapperEnum.EAC_PRISON_BREAKIN_Name), MyMissionID.EAC_PRISON_BREAKIN, (MyTextsWrapperEnum.EAC_PRISON_BREAKIN_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_SOLAROFF2 }, new System.TimeSpan(0, 1, 0), new MyMissionLocation(baseSector,(uint) EntityID.BreakInsideStationLocationDummy) ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_PRISON_0600, HudName = MyTextsWrapperEnum.HudCargoBay }; breakInsideStation.OnMissionSuccess += BreakInsideStationSubmissionSuccess; breakInsideStation.OnMissionLoaded += BreakInsideStationOnOnMissionLoaded; m_objectives.Add(breakInsideStation); //07 var marcusLocationIntel = new MyUseObjective( (MyTextsWrapperEnum.EAC_PRISON_LOCINTEL_Name), MyMissionID.EAC_PRISON_LOCINTEL, (MyTextsWrapperEnum.EAC_PRISON_LOCINTEL_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_BREAKIN }, new MyMissionLocation(baseSector, (uint)EntityID._MarcusIntelLocation), MyTextsWrapperEnum.PressToDownloadData, MyTextsWrapperEnum.Console, MyTextsWrapperEnum.DownloadingData, 5000, MyUseObjectiveType.Hacking ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudSecurityHub }; m_objectives.Add(marcusLocationIntel); marcusLocationIntel.OnMissionLoaded += new MissionHandler(marcusLocationIntel_OnMissionLoaded); marcusLocationIntel.OnMissionSuccess += MarcusLocationIntelOnOnMissionSuccess; marcusLocationIntel.Components.Add(new MySpawnpointLimiter(m_spawns, 6)); //08 m_findCircoutPart = new MyUseObjective( (MyTextsWrapperEnum.EAC_PRISON_ACQUIREIDCARD_Name), MyMissionID.EAC_PRISON_ACQUIREIDCARD, (MyTextsWrapperEnum.EAC_PRISON_ACQUIREIDCARD_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_LOCINTEL}, new MyMissionLocation(baseSector, (uint)EntityID.CargoIDCard), MyTextsWrapperEnum.PressToTakeCargo, MyTextsWrapperEnum.TakeAll, MyTextsWrapperEnum.TakeAll, 2000, MyUseObjectiveType.Taking, radiusOverride: 50 ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_PRISON_0700, HudName = MyTextsWrapperEnum.HudIdCard }; m_findCircoutPart.OnMissionLoaded += OnFindCircuitLoaded; m_findCircoutPart.OnMissionSuccess += new MissionHandler(m_findCircoutPart_OnMissionSuccess); m_objectives.Add(m_findCircoutPart); var marcusLocationIntel2 = new MyUseObjective( (MyTextsWrapperEnum.EAC_PRISON_LOCINTEL2_Name), MyMissionID.EAC_PRISON_LOCINTEL2, (MyTextsWrapperEnum.EAC_PRISON_LOCINTEL2_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_ACQUIREIDCARD }, new MyMissionLocation(baseSector, (uint)EntityID._MarcusIntelLocation), MyTextsWrapperEnum.PressToDownloadData, MyTextsWrapperEnum.Console, MyTextsWrapperEnum.DownloadingData, 5000, MyUseObjectiveType.Hacking ) { SaveOnSuccess = true, SuccessDialogId = MyDialogueEnum.EAC_PRISON_0900, StartDialogId = MyDialogueEnum.EAC_PRISON_0800, HudName = MyTextsWrapperEnum.HudSecurityHub }; m_objectives.Add(marcusLocationIntel2); //09 var openDoors = new MyObjectiveEnablePrefabs( (MyTextsWrapperEnum.EAC_PRISON_OPENACCESS_Name), MyMissionID.EAC_PRISON_OPENACCESS, (MyTextsWrapperEnum.EAC_PRISON_OPENACCESS_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_LOCINTEL2 }, null, new List<uint> {(int)EntityID.SecurityHub}, m_09toEnablePrefabs ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudSecurityHub }; m_objectives.Add(openDoors); openDoors.OnMissionLoaded += OnOpenDoorsLoaded; //10 var takeOffSecurityCircuit = new MyObjectiveDisablePrefabs( (MyTextsWrapperEnum.EAC_PRISON_SECURITYOFF_Name), MyMissionID.EAC_PRISON_SECURITYOFF, (MyTextsWrapperEnum.EAC_PRISON_SECURITYOFF_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_OPENACCESS }, new List<uint> { (uint)EntityID.HubHack }, new List<uint> { (uint)EntityID.HubHackGenerator }, false, false ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_PRISON_1000, HudName = MyTextsWrapperEnum.HudHub }; takeOffSecurityCircuit.OnMissionLoaded += OntakeOffSecuritypartLoaded;//zapne svetlo m_objectives.Add(takeOffSecurityCircuit); //11 var approachMarcusCell = new MyUseObjective( (MyTextsWrapperEnum.EAC_PRISON_MARCUSCELL_Name), MyMissionID.EAC_PRISON_MARCUSCELL, (MyTextsWrapperEnum.EAC_PRISON_MARCUSCELL_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_SECURITYOFF }, new MyMissionLocation(baseSector, (uint)EntityID.MarcusCellLocation), MyTextsWrapperEnum.HoldToMoveMarcus, MyTextsWrapperEnum.Actor_Marcus, MyTextsWrapperEnum.Moving, 4000, MyUseObjectiveType.Taking ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudMarcus }; approachMarcusCell.OnMissionLoaded += OnapproachMarcusLoaded; m_objectives.Add(approachMarcusCell); var marcusLoaded = new MyObjectiveDialog( MyMissionID.EAC_PRISON_MARCUSDIALOG, null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_MARCUSCELL }, MyDialogueEnum.EAC_PRISON_1200 ) { SaveOnSuccess = true }; marcusLoaded.OnMissionLoaded += OnMarcusLoadedLoaded; m_objectives.Add(marcusLoaded); var weHaveCompany = new MyObjectiveDialog( MyMissionID.EAC_PRISON_WE_HAVE_COMPANY, null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_MARCUSDIALOG }, MyDialogueEnum.EAC_PRISON_1250 ) { SaveOnSuccess = false }; weHaveCompany.OnMissionLoaded += OnWeHaveCompanyLoaded; m_objectives.Add(weHaveCompany); //12 var findMarcusSmallShip = new MyUseObjective( (MyTextsWrapperEnum.EAC_PRISON_COVERMARCUS_Name), MyMissionID.EAC_PRISON_COVERMARCUS, (MyTextsWrapperEnum.EAC_PRISON_COVERMARCUS_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_WE_HAVE_COMPANY }, new MyMissionLocation(baseSector, (uint)EntityID.MarcusShipDetector), MyTextsWrapperEnum.HoldToMoveMarcus, MyTextsWrapperEnum.Actor_Marcus, MyTextsWrapperEnum.Moving, 4000, MyUseObjectiveType.Putting ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudShip }; // destroySolarDefence.OnMissionSuccess += ToHangarSubmissionSuccess; m_objectives.Add(findMarcusSmallShip); findMarcusSmallShip.OnMissionSuccess += OnSuccesfindMarcusSmallShip; //13 var equipMarcus = new MyUseObjective( (MyTextsWrapperEnum.EAC_PRISON_GETARMS_Name), MyMissionID.EAC_PRISON_GETARMS, (MyTextsWrapperEnum.EAC_PRISON_GETARMS_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_COVERMARCUS }, new MyMissionLocation(baseSector, (uint)EntityID.CargoForMarcus), MyTextsWrapperEnum.HoldToMoveWeapons, MyTextsWrapperEnum.Actor_Marcus, MyTextsWrapperEnum.Moving, 4000 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudEquipment }; // destroySolarDefence.OnMissionSuccess += ToHangarSubmissionSuccess; m_objectives.Add(equipMarcus); equipMarcus.OnMissionSuccess += OnEquipMarcussSucces; equipMarcus.OnMissionLoaded += EquipMarcusOnOnMissionLoaded; //14 var fightOutStation = new MyObjective( (MyTextsWrapperEnum.EAC_PRISON_FIGHTOUT_Name), MyMissionID.EAC_PRISON_FIGHTOUT, (MyTextsWrapperEnum.EAC_PRISON_FIGHTOUT_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_GETARMS }, new MyMissionLocation(baseSector, (uint)EntityID.StationDummy) ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_PRISON_1300, SuccessDialogId = MyDialogueEnum.EAC_PRISON_1400, HudName = MyTextsWrapperEnum.Nothing }; fightOutStation.OnMissionLoaded += fightOutStation_OnMissionLoaded; fightOutStation.OnMissionSuccess += fightOutStation_OnMissionSuccess; m_objectives.Add(fightOutStation); //15 var CrushRemainingShips = new MyObjectiveDestroy( (MyTextsWrapperEnum.EAC_PRISON_CRUSHREINFORCEMENTS_Name), MyMissionID.EAC_PRISON_CRUSHREINFORCEMENTS, (MyTextsWrapperEnum.EAC_PRISON_CRUSHREINFORCEMENTS_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_FIGHTOUT }, new List<uint> { }, // entities needed to kill m_15toKillSpawnpoints, // spawnpoint from which bots must be killed false // don't show marks on entities (not from spawnpoint) ) { SaveOnSuccess = true, }; m_objectives.Add(CrushRemainingShips); //16 var GetToMeetingPoint = new MyObjective( (MyTextsWrapperEnum.EAC_PRISON_MEETINGPOINT_Name), MyMissionID.EAC_PRISON_MEETINGPOINT, (MyTextsWrapperEnum.EAC_PRISON_MEETINGPOINT_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_CRUSHREINFORCEMENTS }, new MyMissionLocation(baseSector, MyMissionLocation.MADELYN_HANGAR), radiusOverride: MyMissionLocation.MADELYN_HANGAR_RADIUS ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_PRISON_1500, SuccessDialogId = MyDialogueEnum.EAC_PRISON_1600, HudName = MyTextsWrapperEnum.HudMeetingPoint }; m_objectives.Add(GetToMeetingPoint); }
public MyReichstagCMission() { ID = MyMissionID.REICHSTAG_C; /* ID must be added to MyMissions.cs */ DebugName = new StringBuilder("18c-Reichstag C"); Name = MyTextsWrapperEnum.REICHSTAG_C; Description = MyTextsWrapperEnum.REICHSTAG_C_Description; Flags = MyMissionFlags.Story; AchievementName = MySteamAchievementNames.Mission27_Reichstag2; MyMwcVector3Int baseSector = new MyMwcVector3Int(-2325831, 0, -7186381); Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); RequiredMissions = new MyMissionID[] { MyMissionID.NAZI_BIO_LAB }; RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.REICHSTAG_C_MOTHERSHIP }; RequiredActors = new MyActorEnum[] { MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; m_objectives = new List <MyObjective>(); var MeetSubmission = new MyMeetObjective( (MyTextsWrapperEnum.REICHSTAG_C_FOR_Name), MyMissionID.REICHSTAG_C_FOR, (MyTextsWrapperEnum.REICHSTAG_C_FOR_Description), this, new MyMissionID[] { }, null, (uint)EntityID.Bot_WaltherStauffenberg, 100, 0.25f, null ) { SaveOnSuccess = true, FollowMe = false }; /* MeetSubmission.OnMissionSuccess += MeetSubmissionSuccess; * MeetSubmission.OnMissionLoaded += MeetSubmissionLoaded;*/ m_objectives.Add(MeetSubmission); var colonelDialogue = new MyObjectiveDialog( MyMissionID.REICHSTAG_C_COLONEL_DIALOGUE, null, this, new MyMissionID[] { MyMissionID.REICHSTAG_C_FOR }, dialogId: MyDialogueEnum.REICHSTAG_C_0100_OFFICER_TALK ) { SaveOnSuccess = true }; m_objectives.Add(colonelDialogue); var goToShipyard = new MyMeetObjective( (MyTextsWrapperEnum.REICHSTAG_C_GO_TO_SHIPYARD_Name), MyMissionID.REICHSTAG_C_GO_TO_SHIPYARD, (MyTextsWrapperEnum.REICHSTAG_C_GO_TO_SHIPYARD_Description), this, new MyMissionID[] { MyMissionID.REICHSTAG_C_COLONEL_DIALOGUE }, null, (uint)EntityID.Bot_ShipyardOfficer, 100, 0.25f, null, startDialogueId: MyDialogueEnum.REICHSTAG_C_0200_ON_THE_WAY ) { SaveOnSuccess = true, FollowMe = false }; m_objectives.Add(goToShipyard); goToShipyard.OnMissionLoaded += GoToShipyardLoaded; var talkToSupplyOfficer = new MyObjectiveDialog( MyMissionID.REICHSTAG_C_TALK_TO_SUPPLY_OFFICER, null, this, new MyMissionID[] { MyMissionID.REICHSTAG_C_GO_TO_SHIPYARD }, dialogId: MyDialogueEnum.REICHSTAG_C_0400_SUPPLY_OFFICER ) { SaveOnSuccess = true }; m_objectives.Add(talkToSupplyOfficer); var ChangeShip = new MyUseObjective( (MyTextsWrapperEnum.REICHSTAG_C_CHANGESHIP_Name), MyMissionID.REICHSTAG_C_CHANGESHIP, (MyTextsWrapperEnum.REICHSTAG_C_CHANGESHIP_Description), null, this, new MyMissionID[] { MyMissionID.REICHSTAG_C_TALK_TO_SUPPLY_OFFICER }, new MyMissionLocation(baseSector, (uint)EntityID.Bot_Disabled_03), MyTextsWrapperEnum.PressToBoardShip, MyTextsWrapperEnum.Ship, MyTextsWrapperEnum.BoardingInProgress, 3000, radiusOverride: 30, startDialogId: MyDialogueEnum.REICHSTAG_C_0500_REACHING_SHIPS ); m_objectives.Add(ChangeShip); ChangeShip.OnMissionSuccess += ChangeShipOnOnMissionSuccess; var ShipChangedDialogue = new MyObjectiveDialog( MyMissionID.REICHSTAG_C_SHIP_CHANGED_DIALOGUE, null, this, new MyMissionID[] { MyMissionID.REICHSTAG_C_CHANGESHIP }, dialogId: MyDialogueEnum.REICHSTAG_C_0600_SHIPS_PICKUPED ) { SaveOnSuccess = true }; m_objectives.Add(ShipChangedDialogue); var GetArmed = new MyObjectiveEnterInventory( (MyTextsWrapperEnum.REICHSTAG_C_WEAPONS_Name), MyMissionID.REICHSTAG_C_WEAPONS, (MyTextsWrapperEnum.REICHSTAG_C_WEAPONS_Description), null, this, new MyMissionID[] { MyMissionID.REICHSTAG_C_SHIP_CHANGED_DIALOGUE }, (uint)EntityID.Objective_Shipchange, successDialogId: MyDialogueEnum.REICHSTAG_C_0800_SHOPPING_FINISHED ); m_objectives.Add(GetArmed); GetArmed.OnMissionLoaded += GetArmedLoaded; var MeetTransporterCaptain = new MyMeetObjective( (MyTextsWrapperEnum.REICHSTAG_C_GO_TO_HANGAR_Name), MyMissionID.REICHSTAG_C_GO_TO_HANGAR, (MyTextsWrapperEnum.REICHSTAG_C_GO_TO_HANGAR_Description), this, new MyMissionID[] { MyMissionID.REICHSTAG_C_WEAPONS }, null, (uint)EntityID.Bot_TransporterCaptain, 100, 0.25f, null ) { SaveOnSuccess = true, FollowMe = false }; m_objectives.Add(MeetTransporterCaptain); var TalkToTransporterCaptain = new MyObjectiveDialog( MyMissionID.REICHSTAG_C_TRANSPORTER_CAPTAIN_DIALOGUE, null, this, new MyMissionID[] { MyMissionID.REICHSTAG_C_GO_TO_HANGAR }, dialogId: MyDialogueEnum.REICHSTAG_C_0900_TRANSPORTER_REACHED ) { SaveOnSuccess = true }; m_objectives.Add(TalkToTransporterCaptain); var GetWWMothership = new MyObjective( (MyTextsWrapperEnum.REICHSTAG_C_MOTHERSHIP_Name), MyMissionID.REICHSTAG_C_MOTHERSHIP, (MyTextsWrapperEnum.REICHSTAG_C_MOTHERSHIP_Description), null, this, new MyMissionID[] { MyMissionID.REICHSTAG_C_TRANSPORTER_CAPTAIN_DIALOGUE }, new MyMissionLocation(baseSector, (uint)EntityID.Objective_Mothership), radiusOverride: 30 ) { HudName = MyTextsWrapperEnum.HudMothership }; m_objectives.Add(GetWWMothership); }
public MyChineseTransmitterMission() { ID = MyMissionID.CHINESE_TRANSMITTER; /* ID must be added to MyMissions.cs */ Name = MyTextsWrapperEnum.CHINESE_TRANSMITTER; Description = MyTextsWrapperEnum.CHINESE_TRANSMITTER_Description; DebugName = new StringBuilder("16-PRC transmitter"); // Nazev mise Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(2329559, 0, 4612446); // Story sector of the script Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point RequiredMissions = new MyMissionID[] { MyMissionID.BARTHS_MOON_PLANT }; // mise ktere musi byt splneny pred prijetim teto mise RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_ESCAPE3 }; RequiredActors = new MyActorEnum[] { MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; m_objectives = new List <MyObjective>(); // Creating of list of submissions // START DEFINICE SUBMISE var lootCargo = new MyObjective( // One member of that list - je to MySubmission takze cilem je doletet do checkpointu (MyTextsWrapperEnum.CHINESE_TRANSMITTER_LOOT_CARGO_Name), // nazev submise MyMissionID.CHINESE_TRANSMITTER_LOOT_CARGO, // id submise (MyTextsWrapperEnum.CHINESE_TRANSMITTER_LOOT_CARGO_Description), // popis submise null, this, new MyMissionID[] { }, // ID submisi ktere musi byt splneny - je to prazdne takze je to prvni submise new MyMissionLocation(baseSector, (uint)EntityID.CargoDummy), startDialogId: MyDialogueEnum.CHINESE_TRANSMITTER_0100_INTRODUCE ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudCargo }; // nastaveni save na checkpointu nebo ne m_objectives.Add(lootCargo); lootCargo.OnMissionSuccess += LootSucces; //var spawnPointSmartWaves = // new MySpawnpointSmartWaves( // new[] { (uint) EntityID.Security_Spawn1, (uint) EntityID.Loot_Spawn }, null, 2); //Components.Add(spawnPointSmartWaves); var talkWith = new MyObjectiveDialog( MyTextsWrapperEnum.CHINESE_TRANSMITTER_DIALOGUE_1_Name, MyMissionID.CHINESE_TRANSMITTER_DIALOGUE_1, MyTextsWrapperEnum.CHINESE_TRANSMITTER_DIALOGUE_1_Description, null, this, new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_LOOT_CARGO }, dialogId: MyDialogueEnum.CHINESE_TRANSMITTER_0200_CARGO_BAY ) { SaveOnSuccess = false }; m_objectives.Add(talkWith); var checkpoint = new MyObjective( // One member of that list - je to MySubmission takze cilem je doletet do checkpointu (MyTextsWrapperEnum.CHINESE_TRANSMITTER_CHECKPOINT_Name), // nazev submise MyMissionID.CHINESE_TRANSMITTER_CHECKPOINT, // id submise (MyTextsWrapperEnum.CHINESE_TRANSMITTER_CHECKPOINT_Description), // popis submise null, this, new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_DIALOGUE_1 }, // ID submisi ktere musi byt splneny - je to prazdne takze je to prvni submise new MyMissionLocation(baseSector, (uint)EntityID.checkpoint) //successDialogId: MyDialogueEnum.CHINESE_TRANSMITTER_0300_CARGO_BAY_2// ID of dummy point of checkpoint ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudStation }; // nastaveni save na checkpointu nebo ne m_objectives.Add(checkpoint); // pridani do seznamu submisi var findSecurityControl = new MyObjective( // One member of that list - je to MySubmission takze cilem je doletet do checkpointu (MyTextsWrapperEnum.CHINESE_TRANSMITTER_FIND_SECURITY_CONTROL_Name), // nazev submise MyMissionID.CHINESE_TRANSMITTER_FIND_SECURITY_CONTROL, // id submise (MyTextsWrapperEnum.CHINESE_TRANSMITTER_FIND_SECURITY_CONTROL_Description), // popis submise null, this, new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_CHECKPOINT, }, // ID submisi ktere musi byt splneny - je to prazdne takze je to prvni submise new MyMissionLocation(baseSector, (uint)EntityID.SecurityDummy), // ID of dummy point of checkpoint startDialogId: MyDialogueEnum.CHINESE_TRANSMITTER_0300_CARGO_BAY_2 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudControlCenter }; // nastaveni save na checkpointu nebo ne m_objectives.Add(findSecurityControl); findSecurityControl.OnMissionSuccess += FindSecurityControl_OnMissionSuccess; var talkWith3 = new MyObjectiveDialog( MyTextsWrapperEnum.CHINESE_TRANSMITTER_DIALOGUE_3_Name, MyMissionID.CHINESE_TRANSMITTER_DIALOGUE_3, MyTextsWrapperEnum.CHINESE_TRANSMITTER_DIALOGUE_3_Description, null, this, new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_FIND_SECURITY_CONTROL }, dialogId: MyDialogueEnum.CHINESE_TRANSMITTER_0400_SECURITY_ROOM ) { SaveOnSuccess = false }; m_objectives.Add(talkWith3); var destroyGenerator = new MyObjectiveDestroy( // Var is used to call functions on that member (MyTextsWrapperEnum.CHINESE_TRANSMITTER_DESTROY_SECURITY_CONTROL_Name), MyMissionID.CHINESE_TRANSMITTER_DESTROY_SECURITY_CONTROL, (MyTextsWrapperEnum.CHINESE_TRANSMITTER_DESTROY_SECURITY_CONTROL_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_DIALOGUE_3, }, new List <uint> { (uint)EntityID.Generator }, new List <uint>(), true ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudGenerator }; destroyGenerator.MissionEntityIDs.Add((uint)EntityID.Generator); m_objectives.Add(destroyGenerator); // pridani do seznamu submisi destroyGenerator.OnMissionSuccess += DestroyMSSucces; /* var talkWith4 = new MyObjectiveDialog( * new StringBuilder("Find the comand center"), * MyMissionID.CHINESE_TRANSMITTER_DIALOGUE_4, * new StringBuilder(""), * null, * this, * new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_DESTROY_SECURITY_CONTROL, }, * dialogId: MyDialogueEnum.CHINESE_TRANSMITTER_0500_GENERATOR_DESTROYED * ) { SaveOnSuccess = false }; * m_objectives.Add(talkWith4);*/ var findCIC = new MyObjective( // One member of that list - je to MySubmission takze cilem je doletet do checkpointu (MyTextsWrapperEnum.CHINESE_TRANSMITTER_FIND_CIC_Name), // nazev submise MyMissionID.CHINESE_TRANSMITTER_FIND_CIC, // id submise (MyTextsWrapperEnum.CHINESE_TRANSMITTER_FIND_CIC_Description), // popis submise null, this, new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_DESTROY_SECURITY_CONTROL, }, // ID submisi ktere musi byt splneny - je to prazdne takze je to prvni submise new MyMissionLocation(baseSector, (uint)EntityID.FindCICDummy), // ID of dummy point of checkpoint startDialogId: MyDialogueEnum.CHINESE_TRANSMITTER_0500_GENERATOR_DESTROYED ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudCommandCenter }; // nastaveni save na checkpointu nebo ne m_objectives.Add(findCIC); // pridani do seznamu submisi findCIC.OnMissionSuccess += findCICSucces; m_talkWith5 = new MyObjectiveDialog( (MyTextsWrapperEnum.CHINESE_TRANSMITTER_DIALOGUE_5_Name), MyMissionID.CHINESE_TRANSMITTER_DIALOGUE_5, (MyTextsWrapperEnum.CHINESE_TRANSMITTER_DIALOGUE_5_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_FIND_CIC, }, dialogId: MyDialogueEnum.CHINESE_TRANSMITTER_0600_CIC_FOUND ) { SaveOnSuccess = false }; m_objectives.Add(m_talkWith5); m_hackCIC = new MyObjectiveEnablePrefabs( (MyTextsWrapperEnum.CHINESE_TRANSMITTER_OPEN_CIC_Name), MyMissionID.CHINESE_TRANSMITTER_OPEN_CIC, (MyTextsWrapperEnum.CHINESE_TRANSMITTER_OPEN_CIC_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_DIALOGUE_5 }, null, new List <uint> { (uint)EntityID.HUB }, new List <uint> { (uint)EntityID.CICDoors_1, (uint)EntityID.CICDoors_2 } ) { HudName = MyTextsWrapperEnum.HudSecurityHub }; m_objectives.Add(m_hackCIC); var talkWith6 = new MyObjectiveDialog( (MyTextsWrapperEnum.CHINESE_TRANSMITTER_DIALOGUE_6_Name), MyMissionID.CHINESE_TRANSMITTER_DIALOGUE_6, (MyTextsWrapperEnum.CHINESE_TRANSMITTER_DIALOGUE_6_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_OPEN_CIC }, dialogId: MyDialogueEnum.CHINESE_TRANSMITTER_0700_HUB_HACKED ) { SaveOnSuccess = false }; talkWith6.MissionEntityIDs.Add((uint)EntityID.InsideCICDummy); m_objectives.Add(talkWith6); m_placeRadarMission = new MyUseObjective( (MyTextsWrapperEnum.CHINESE_TRANSMITTER_PLACE_DEVICE_Name), MyMissionID.CHINESE_TRANSMITTER_PLACE_DEVICE, (MyTextsWrapperEnum.CHINESE_TRANSMITTER_PLACE_DEVICE_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_DIALOGUE_6, }, new MyMissionLocation(baseSector, (uint)EntityID.InsideCICDummy), MyTextsWrapperEnum.PressToPlaceDetector, MyTextsWrapperEnum.DetectorPlacement, MyTextsWrapperEnum.DeployingInProgress, 5000 //StartDialogId: MyDialogueEnum.CHINESETRANSMITTER_0700_HUB_HACKED ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.Nothing }; m_placeRadarMission.OnMissionSuccess += PlaceRadarSucces; m_objectives.Add(m_placeRadarMission); /* talkWith7 = new MyObjectiveDialog( * new StringBuilder("Help Tarja and Valentin"), * MyMissionID.CHINESE_TRANSMITTER_DIALOGUE_7, * new StringBuilder(""), * null, * this, * new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_PLACE_DEVICE}, * dialogId: MyDialogueEnum.CHINESE_TRANSMITTER_1000_DETECTOR_PLACED * ) { SaveOnSuccess = false }; * m_objectives.Add(talkWith7);*/ m_escape = new MyObjective( // One member of that list - je to MySubmission takze cilem je doletet do checkpointu (MyTextsWrapperEnum.CHINESE_TRANSMITTER_ESCAPE_Name), // nazev submise MyMissionID.CHINESE_TRANSMITTER_ESCAPE, // id submise (MyTextsWrapperEnum.CHINESE_TRANSMITTER_ESCAPE_Description), // popis submise null, this, new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_PLACE_DEVICE }, // ID submisi ktere musi byt splneny - je to prazdne takze je to prvni submise new MyMissionLocation(baseSector, (uint)EntityID.EscapeDummy), startDialogId: MyDialogueEnum.CHINESE_TRANSMITTER_0800_TRANSMITTER_PLACED // ID of dummy point of checkpoint ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.Nothing }; // nastaveni save na checkpointu nebo ne m_objectives.Add(m_escape); // pridani do seznamu submisi m_escape.OnMissionSuccess += Escape2MSSuccess; /*var talkWith8 = new MyObjectiveDialog( * new StringBuilder("Help Tarja and Valentin"), * MyMissionID.CHINESE_TRANSMITTER_DIALOGUE_8, * new StringBuilder("Help Tarja and Valentin"), * null, * this, * new MyMissionID[] {MyMissionID.CHINESE_TRANSMITTER_ESCAPE}, * dialogId: MyDialogueEnum.CHINESE_TRANSMITTER_0800_ESCAPE_1 * ) { SaveOnSuccess = false }; * m_objectives.Add(talkWith8); * */ var escape3 = new MyObjective( // One member of that list - je to MySubmission takze cilem je doletet do checkpointu (MyTextsWrapperEnum.CHINESE_TRANSMITTER_ESCAPE3_Name), // nazev submise MyMissionID.CHINESE_TRANSMITTER_ESCAPE3, // id submise (MyTextsWrapperEnum.CHINESE_TRANSMITTER_ESCAPE3_Description), // popis submise null, this, new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER_ESCAPE }, // ID submisi ktere musi byt splneny - je to prazdne takze je to prvni submise new MyMissionLocation(baseSector, MyMissionLocation.MADELYN_HANGAR), // ID of dummy point of checkpoint startDialogId: MyDialogueEnum.CHINESE_TRANSMITTER_0900_ESCAPE_2, successDialogId: MyDialogueEnum.CHINESE_TRANSMITTER_1000_MISSION_COMPLETE, radiusOverride: MyMissionLocation.MADELYN_HANGAR_RADIUS ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudMadelynsSapho }; // nastaveni save na checkpointu nebo ne m_objectives.Add(escape3); // pridani do seznamu submisi m_talkWith5.OnMissionSuccess += TimeRush; }
public MyJunkyardReturnMission() { ID = MyMissionID.JUNKYARD_RETURN; /* ID must be added to MyMissions.cs */ Name = MyTextsWrapperEnum.JUNKYARD_RETURN; Description = MyTextsWrapperEnum.JUNKYARD_RETURN_Description; //"Return to Ranjit with stolen Cargoship\n" DebugName = new StringBuilder("08e-Junkyard racing"); // Name of mission Flags = MyMissionFlags.Story; AchievementName = MySteamAchievementNames.Mission12_JunkyardRacing; MyMwcVector3Int baseSector = new MyMwcVector3Int(2567538, 0, -172727); // Story sector of the script - i.e. (-2465,0,6541) Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point - must by typecasted to uint and referenced from EntityID enum RequiredMissions = new MyMissionID[] { MyMissionID.CHINESE_ESCAPE }; // IDs of missions required to make this mission available RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_DIALOGUE_RETURN }; RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; #region Objectives m_objectives = new List <MyObjective>(); // Creating of list of submissions var meetManjeet = new MyObjective( (MyTextsWrapperEnum.JUNKYARD_RETURN_MEET_SMUGGLER_Name), MyMissionID.JUNKYARD_RETURN_MEET_SMUGGLER, (MyTextsWrapperEnum.JUNKYARD_RETURN_MEET_SMUGGLER_Description), null, this, new MyMissionID[] {}, new MyMissionLocation(baseSector, (uint)EntityID.Manjeet), new List <uint> { (uint)EntityID.Manjeet }, radiusOverride: 50 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudManjeet }; m_objectives.Add(meetManjeet); meetManjeet.OnMissionLoaded += O01MeetSmugglerLoaded; var manjeetDialogue = new MyObjectiveDialog( MyMissionID.JUNKYARD_RETURN_SMUGGLER_DIALOGUE, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_MEET_SMUGGLER }, MyDialogueEnum.JUNKYARD_RETURN_0200 ) { SaveOnSuccess = true }; manjeetDialogue.OnMissionSuccess += new MissionHandler(manjeetDialogue_OnMissionSuccess); m_objectives.Add(manjeetDialogue); var speedsterDialogue = new MyObjective( MyTextsWrapperEnum.Null, MyMissionID.JUNKYARD_RETURN_SPEEDSTER_DIALOGUE, MyTextsWrapperEnum.Null, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_SMUGGLER_DIALOGUE }, null ) { SaveOnSuccess = true }; speedsterDialogue.OnMissionLoaded += O02SmugglerDialogueLoaded; m_objectives.Add(speedsterDialogue); m_objective03_FlyToStart = new MyObjective( (MyTextsWrapperEnum.JUNKYARD_RETURN_FLY_TO_START_Name), MyMissionID.JUNKYARD_RETURN_FLY_TO_START, (MyTextsWrapperEnum.JUNKYARD_RETURN_FLY_TO_START_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_SPEEDSTER_DIALOGUE }, null, startDialogId: MyDialogueEnum.JUNKYARD_RETURN_0300 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudStart }; m_objective03_FlyToStart.MissionEntityIDs.Add((uint)EntityID.DetectorStartRacePosition); m_objective03_FlyToStart.OnMissionLoaded += O03FlyToStartLoaded; m_objective03_FlyToStart.OnMissionCleanUp += O03FlyToStartCleanUp; m_objectives.Add(m_objective03_FlyToStart); m_objective04_Race = new MyObjectiveRace( (MyTextsWrapperEnum.JUNKYARD_RETURN_RACE_Name), (MyTextsWrapperEnum.JUNKYARD_RETURN_RACE_PrepareName), (MyTextsWrapperEnum.JUNKYARD_RETURN_RACE_GoBackName), MyMissionID.JUNKYARD_RETURN_RACE, (MyTextsWrapperEnum.JUNKYARD_RETURN_RACE_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_FLY_TO_START }, baseSector, m_raceCheckpoints, (uint)EntityID.DetectorStartRacePosition2 ) { SaveOnSuccess = true }; m_objective04_Race.RacerNames = new List <string> { "Racer2", "Racer3", "Challenger" }; m_objective04_Race.BotLoaded += Race_BotLoaded; m_objective04_Race.OnMissionLoaded += O04RaceLoaded; m_objective04_Race.OnMissionFailed += RaceMissionFailed; m_objective04_Race.OnMissionSuccess += Objective04_RaceOnOnMissionSuccess; m_objective04_Race.CheckpointReached += RaceMissonOnCheckpointReached; m_objective04_Race.OnStartNumberChanged += RaceStartNumberChanged; m_objective04_Race.RaceStarted = RaceStarted; m_objectives.Add(m_objective04_Race); m_objective05_Win = new MyObjectiveDialog( (MyTextsWrapperEnum.JUNKYARD_RETURN_WIN_Name), MyMissionID.JUNKYARD_RETURN_WIN, (MyTextsWrapperEnum.JUNKYARD_RETURN_WIN_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_RACE }, MyDialogueEnum.JUNKYARD_RETURN_1300 ) { SaveOnSuccess = false }; m_objectives.Add(m_objective05_Win); m_objective05_Win.OnMissionLoaded += O05WinLoaded; m_objective06_GoToSmuggler = new MyMeetObjective( (MyTextsWrapperEnum.JUNKYARD_RETURN_GO_TO_SMUGGLER_name), MyMissionID.JUNKYARD_RETURN_GO_TO_SMUGGLER, (MyTextsWrapperEnum.JUNKYARD_RETURN_GO_TO_SMUGGLER_Description), this, new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_WIN }, null, (uint)EntityID.Manjeet, 100, 0.25f, null ) { SaveOnSuccess = true, FollowMe = false }; m_objectives.Add(m_objective06_GoToSmuggler); m_objective07_SmugglerDialogueReturn = new MyObjectiveDialog( (MyTextsWrapperEnum.JUNKYARD_RETURN_DIALOGUE_RETURN_Name), MyMissionID.JUNKYARD_RETURN_DIALOGUE_RETURN, (MyTextsWrapperEnum.JUNKYARD_RETURN_DIALOGUE_RETURN_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_GO_TO_SMUGGLER }, dialogId: MyDialogueEnum.JUNKYARD_RETURN_1400 ) { SaveOnSuccess = false }; m_objectives.Add(m_objective07_SmugglerDialogueReturn); m_objective07_SmugglerDialogueReturn.OnMissionLoaded += O07SmugglerDialogueReturnLoaded; #endregion }
public MyLastHopeMission() { ID = MyMissionID.LAST_HOPE; Name = MyTextsWrapperEnum.LAST_HOPE; Description = MyTextsWrapperEnum.LAST_HOPE_Description; DebugName = new StringBuilder("07-Last Hope"); Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(-190694, 0, -18204363); Location = new MyMissionLocation(baseSector, (uint)EntityId.ReachColonyDummy); RequiredMissions = new MyMissionID[] { MyMissionID.BARTHS_MOON_TRANSMITTER }; RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.LAST_HOPE_LEAVE_UNDERGROUND }; RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN }; #region Objectives m_objectives = new List <MyObjective>(); var reachColony = new MyObjective( MyTextsWrapperEnum.LAST_HOPE_REACH_COLONY, MyMissionID.LAST_HOPE_REACH_COLONY, MyTextsWrapperEnum.LAST_HOPE_REACH_COLONY_DESCRIPTION, null, this, new MyMissionID[] { }, new MyMissionLocation(baseSector, (uint)EntityId.ReachColonyDummy), startDialogId: MyDialogueEnum.LAST_HOPE_0100 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudLastHope }; reachColony.Components.Add(new MySpawnpointWaves((uint)EntityId.ReachColonyDialogDetector, 1, new List <uint[]>() { new uint[] { (uint)EntityId.ReachColonySpawn1 } })); var dialogComponent = new MyDetectorDialogue((uint)EntityId.ReachColonyDialogDetector, MyDialogueEnum.LAST_HOPE_0200); dialogComponent.OnDialogStarted += ReachColonyDialogComonentOnOnDialogStarted; dialogComponent.OnDialogFinished += ReachColonyDialogComonentOnOnDialogFinished; reachColony.Components.Add(dialogComponent); m_objectives.Add(reachColony); var destroySlaverRiders = new MyObjectiveDestroy( MyTextsWrapperEnum.LAST_HOPE_REACH_DESTROY_RIDERS, MyMissionID.LAST_HOPE_DESTROY_SLAVER_RIDERS, MyTextsWrapperEnum.LAST_HOPE_REACH_DESTROY_RIDERS_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_REACH_COLONY }, new List <uint> { (uint)EntityId.DestroySlaverRidersGenerator1, (uint)EntityId.DestroySlaverRidersGenerator2 } ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.LAST_HOPE_0300, HudName = MyTextsWrapperEnum.Nothing }; destroySlaverRiders.Components.Add(new MySpawnpointWaves((uint)EntityId.DestroySlaverRidersDetector1, 1, new List <uint[]>() { new uint[] { (uint)EntityId.DestroySlaverRidersSpawn11 }, new uint[] { (uint)EntityId.DestroySlaverRidersSpawn12 } })); destroySlaverRiders.Components.Add(new MySpawnpointWaves((uint)EntityId.DestroySlaverRidersDetector1, 1, new List <uint[]>() { new uint[] { (uint)EntityId.DestroySlaverRidersSpawn21 }, new uint[] { (uint)EntityId.DestroySlaverRidersSpawn22 } })); destroySlaverRiders.Components.Add(new MySpawnpointWaves((uint)EntityId.DestroySlaverRidersDetector3, 1, new List <uint[]>() { new uint[] { (uint)EntityId.DestroySlaverRidersSpawn31 }, new uint[] { (uint)EntityId.DestroySlaverRidersSpawn32 } })); destroySlaverRiders.Components.Add(new MySpawnpointWaves((uint)EntityId.DestroySlaverRidersDetector3, 1, new List <uint[]>() { new uint[] { (uint)EntityId.DestroySlaverRidersSpawn41 }, new uint[] { (uint)EntityId.DestroySlaverRidersSpawn42 } })); destroySlaverRiders.OnMissionLoaded += DestroySlaverRiders_Loaded; m_objectives.Add(destroySlaverRiders); m_catchSlaverRiders = new MyObjective( MyTextsWrapperEnum.LAST_HOPE_REACH_CATCH_SHIPS, MyMissionID.LAST_HOPE_CATCH_SLAVER_RIDERS, MyTextsWrapperEnum.LAST_HOPE_REACH_CATCH_SHIPS_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_DESTROY_SLAVER_RIDERS, }, new MyMissionLocation(baseSector, (uint)EntityId.CatchSlaverRidersDummy) ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.LAST_HOPE_0400 }; m_catchSlaverRiders.Components.Add(new MySpawnpointWaves((uint)EntityId.CatchSlaverRidersDetector1, 1, new List <uint[]>() { new uint[] { (uint)EntityId.CatchSlaverRidersSpawn1 }, })); m_catchSlaverRiders.Components.Add(new MySpawnpointWaves((uint)EntityId.CatchSlaverRidersDetector2, 1, new List <uint[]>() { new uint[] { (uint)EntityId.CatchSlaverRidersSpawn21 }, new uint[] { (uint)EntityId.CatchSlaverRidersSpawn22 } })); m_catchSlaverRiders.OnMissionLoaded += CatchSlaverRiders_Loaded; m_objectives.Add(m_catchSlaverRiders); m_stopSlaverTransport = new MyObjectiveDestroy( MyTextsWrapperEnum.LAST_HOPE_REACH_STOP_SHIPS, MyMissionID.LAST_HOPE_STOP_SLAVER_RIDERS, MyTextsWrapperEnum.LAST_HOPE_REACH_STOP_SHIPS_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_CATCH_SLAVER_RIDERS }, new List <uint>() { (uint)EntityId.StopSlaverTransportGenerator1, (uint)EntityId.StopSlaverTransportGenerator2 } ) { SaveOnSuccess = false, StartDialogId = MyDialogueEnum.LAST_HOPE_0500 }; m_movingShip1 = new MyMovingEntity((uint)EntityId.StopSlaverTransportShip1, (uint)EntityId.StopSlaverTransportShip1Target, StopSlaversObjectiveTime, false); m_movingShip2 = new MyMovingEntity((uint)EntityId.StopSlaverTransportShip2, (uint)EntityId.StopSlaverTransportShip2Target, StopSlaversObjectiveTime, false); m_movingShip1Particle = new MyMovingEntity((uint)EntityId.StopSlaverTransportShip1Particle, (uint)EntityId.StopSlaverTransportShip1TargetParticle, StopSlaversObjectiveTime, false); m_movingShip2Particle = new MyMovingEntity((uint)EntityId.StopSlaverTransportShip2Particle, (uint)EntityId.StopSlaverTransportShip2TargetParticle, StopSlaversObjectiveTime, false); m_stopSlaverTransport.Components.Add(m_movingShip1); m_stopSlaverTransport.Components.Add(m_movingShip2); m_stopSlaverTransport.Components.Add(m_movingShip1Particle); m_stopSlaverTransport.Components.Add(m_movingShip2Particle); m_stopSlaverTransport.OnMissionLoaded += StopSlaverTransport_Loaded; m_stopSlaverTransport.Components.Add(new MySpawnpointWaves((uint)EntityId.CatchSlaverRidersDummy, 1, new List <uint[]>() { new uint[] { (uint)EntityId.StopSlaverTransportSpawn11, (uint)EntityId.StopSlaverTransportSpawn21, }, new uint[] { (uint)EntityId.StopSlaverTransportSpawn12, (uint)EntityId.StopSlaverTransportSpawn22, }, })); m_objectives.Add(m_stopSlaverTransport); var speakWithFathetTobias = new MyObjectiveDialog ( MyTextsWrapperEnum.LAST_HOPE_SPEAK_WITH_FATHER, MyMissionID.LAST_HOPE_SPEAK_WITH_FATHER, MyTextsWrapperEnum.LAST_HOPE_SPEAK_WITH_FATHER_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_STOP_SLAVER_RIDERS }, MyDialogueEnum.LAST_HOPE_0600 ) { SaveOnSuccess = true }; m_objectives.Add(speakWithFathetTobias); var reachCaves = new MyObjective( MyTextsWrapperEnum.LAST_HOPE_REACH_REACH_CAVE, MyMissionID.LAST_HOPE_REACH_UNDEGROUND_CAVES, MyTextsWrapperEnum.LAST_HOPE_REACH_REACH_CAVE_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_SPEAK_WITH_FATHER }, new MyMissionLocation(baseSector, (uint)EntityId.ReachCavesLocation) ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.LAST_HOPE_0700, HudName = MyTextsWrapperEnum.HudCave }; m_objectives.Add(reachCaves); m_findTunnel = new MyObjective( MyTextsWrapperEnum.LAST_HOPE_REACH_TUNNEL, MyMissionID.LAST_HOPE_FIND_MAINTANCE_TUNELL, MyTextsWrapperEnum.LAST_HOPE_REACH_TUNNEL_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_REACH_UNDEGROUND_CAVES }, new MyMissionLocation(baseSector, (uint)EntityId.FindTunnelDummy) ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.LAST_HOPE_0800, HudName = MyTextsWrapperEnum.HudTunnel }; m_findTunnel.Components.Add(new MySpawnpointWaves((uint)EntityId.ReachCavesLocation, 1, new List <uint[]>() { new uint[] { (uint)EntityId.FindTunnelSpawn1 }, new uint[] { (uint)EntityId.FindTunnelSpawn2 }, new uint[] { (uint)EntityId.FindTunnelSpawn3 }, })); m_objectives.Add(m_findTunnel); var killSaboteurSquad = new MyDestroyWavesObjective ( MyTextsWrapperEnum.LAST_HOPE_KILL_SABOTERS, MyMissionID.LAST_HOPE_KILL_SQUAD, MyTextsWrapperEnum.LAST_HOPE_KILL_SABOTERS, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_FIND_MAINTANCE_TUNELL } ) { SaveOnSuccess = true }; killSaboteurSquad.AddWave(new List <uint>() { (uint)EntityId.KillSaboteursSpawn }); killSaboteurSquad.Components.Add(new MyDetectorDialogue((uint)EntityId.KillSabotersDetector, MyDialogueEnum.LAST_HOPE_1100)); m_objectives.Add(killSaboteurSquad); var deactivateBombs = new MyMultipleUseObjective (MyTextsWrapperEnum.LAST_HOPE_DEACTIVATE_BOMBS, MyMissionID.LAST_HOPE_DEACTIVATE_BOMB, MyTextsWrapperEnum.LAST_HOPE_DEACTIVATE_BOMBS_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_KILL_SQUAD }, MyTextsWrapperEnum.PressToDeactivateNuclearHead, MyTextsWrapperEnum.NuclearHead, MyTextsWrapperEnum.DeactivatingInProgress, 5000, new List <uint>() { (uint)EntityId.DeactivateBombPrefab1, (uint)EntityId.DeactivateBombPrefab2 }, MyUseObjectiveType.Taking ) { RadiusOverride = 30, SaveOnSuccess = true, StartDialogId = MyDialogueEnum.LAST_HOPE_1200 }; deactivateBombs.OnMissionLoaded += DeactivateBombs_Loaded; deactivateBombs.OnObjectUsedSucces += DeactivateBombs_ObjectUsedSuccess; deactivateBombs.Components.Add(new MyDetectorDialogue((uint)EntityId.GasCloudsDetector, MyDialogueEnum.LAST_HOPE_1300)); m_objectives.Add(deactivateBombs); m_repairPipes = new MyMultipleUseObjective (MyTextsWrapperEnum.LAST_HOPE_STABILIZE_GAS, MyMissionID.LAST_HOPE_REPAIR_PIPES, MyTextsWrapperEnum.LAST_HOPE_STABILIZE_GAS_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_DEACTIVATE_BOMB }, MyTextsWrapperEnum.PressToRepairGasPipe, MyTextsWrapperEnum.GasPipe, MyTextsWrapperEnum.ProgressRepairing, 5000, new List <uint>() { }, MyUseObjectiveType.Repairing ) { SaveOnSuccess = true, RadiusOverride = 30, StartDialogId = MyDialogueEnum.LAST_HOPE_1400, SuccessDialogId = MyDialogueEnum.LAST_HOPE_1600 }; foreach (var gasPipe in m_gasPipes) { m_repairPipes.MissionEntityIDs.Add(gasPipe.Key); } m_repairPipes.OnObjectUsedSucces += RepairPipes_ObjectUsedSuccess; m_objectives.Add(m_repairPipes); var stabilizeNuclearCore = new MyMultipleUseObjective ( MyTextsWrapperEnum.LAST_HOPE_STABILIZE_NUCLEAR_CORE, MyMissionID.LAST_HOPE_STABILIZE_NUCLEAR_CORE, MyTextsWrapperEnum.LAST_HOPE_STABILIZE_GAS_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_REPAIR_PIPES }, MyTextsWrapperEnum.PressToRepairRadiation, MyTextsWrapperEnum.RadiationLeak, MyTextsWrapperEnum.Fixing, 5000, new List <uint>() { }, MyUseObjectiveType.Repairing ) { RadiusOverride = 40, SaveOnSuccess = true }; stabilizeNuclearCore.Components.Add(new MyDetectorDialogue((uint)EntityId.StabilizeCoreDialog1Dummy, MyDialogueEnum.LAST_HOPE_1700)); stabilizeNuclearCore.Components.Add(new MyDetectorDialogue((uint)EntityId.StabilizeCoreDialog2Dummy, MyDialogueEnum.LAST_HOPE_1800)); foreach (var core in m_nuclearCores) { stabilizeNuclearCore.MissionEntityIDs.Add(core.Key); } stabilizeNuclearCore.OnObjectUsedSucces += StabilizeNuclearCore_ObjectUsedSuccess; m_objectives.Add(stabilizeNuclearCore); var leaveUnderground = new MyObjective ( MyTextsWrapperEnum.LAST_HOPE_LEAVE_SHAFTS, MyMissionID.LAST_HOPE_LEAVE_UNDERGROUND, MyTextsWrapperEnum.LAST_HOPE_LEAVE_SHAFTS_DESC, null, this, new MyMissionID[] { MyMissionID.LAST_HOPE_STABILIZE_NUCLEAR_CORE }, new MyMissionLocation(baseSector, (uint)EntityId.LaveUndergroundDummy)) { StartDialogId = MyDialogueEnum.LAST_HOPE_1900, HudName = MyTextsWrapperEnum.Nothing }; leaveUnderground.OnMissionSuccess += LeaveUnderground_Success; m_objectives.Add(leaveUnderground); #endregion }
public MySlaverBase2Mission() { RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; ID = MyMissionID.SLAVER_BASE_2; /* ID must be added to MyMissions.cs */ DebugName = new StringBuilder("09d-Slaver base Delta Earnings"); // Name of mission Name = MyTextsWrapperEnum.SLAVER_BASE_DELTA_EARNINGS; Description = MyTextsWrapperEnum.SLAVER_BASE_DELTA_EARNINGS_Description; Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(4169480, 0, -8216683); // Story sector of the script - i.e. (-2465,0,6541) Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point - must by typecasted to uint and referenced from EntityID enum RequiredMissions = new MyMissionID[] { MyMissionID.FORT_VALIANT_B }; // IDs of missions required to make this mission available RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.SLAVER_BASE_2_FREE_SLAVES, }; m_objectives = new List <MyObjective>(); // Creating of list of submissions // ----------- START OF SUBMISSIONS DEFINITION -------------- var introTalk = new MyObjectiveDialog( MyMissionID.SLAVER_BASE_2_INTRO, null, this, new MyMissionID[] { }, MyDialogueEnum.SLAVERBASE2_0100_INTRO ) { SaveOnSuccess = false }; m_objectives.Add(introTalk); var paralyzeDefense = new MyObjectiveDestroy( // MySubmissionDestroy means mission with objective to destroy something - here it is class member so you can call methods on it MyTextsWrapperEnum.SLAVER_BASE_2_PARALYZE_DEFENSE, //Name of the submission MyMissionID.SLAVER_BASE_2_PARALYZE_DEFENSE, // ID of the submission MyTextsWrapperEnum.SLAVER_BASE_2_PARALYZE_DEFENSE_Description, // Description of the submission null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_2_INTRO }, // ID of submissions required to make this submission available - these declares the sequence of submissions new List <uint> { (uint)EntityID.turret_1, (uint)EntityID.turret_2, (uint)EntityID.turret_3, (uint)EntityID.turret_4, (uint)EntityID.turret_5, (uint)EntityID.turret_6 }, // ID of objects to be destroyed as a mission objective null, true, startDialogID: MyDialogueEnum.SLAVERBASE2_0200_DESTROY_TURRETS ) { SaveOnSuccess = true }; m_objectives.Add(paralyzeDefense); paralyzeDefense.OnMissionLoaded += ParalyzeDefenseOnMissionLoaded; paralyzeDefense.OnMissionCleanUp += ParalyzeDefenseOnMissionUnloaded; var unlockprison1 = new MyUseObjective( MyTextsWrapperEnum.UNLOCK_PRISON_1, MyMissionID.UNLOCK_PRISON_1, MyTextsWrapperEnum.Blank, null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_2_PARALYZE_DEFENSE }, new MyMissionLocation(baseSector, (uint)EntityID.hub1), MyTextsWrapperEnum.PressToHack, MyTextsWrapperEnum.SecurityControlHUB, MyTextsWrapperEnum.HackingProgress, 2000, startDialogId: MyDialogueEnum.SLAVERBASE2_0300_TURRETS_DESTROYED ) { SaveOnSuccess = false }; unlockprison1.OnMissionSuccess += m_Unlockprison1_OnMissionSuccess; m_objectives.Add(unlockprison1); var unlockprison2 = new MyUseObjective( MyTextsWrapperEnum.UNLOCK_PRISON_2, MyMissionID.UNLOCK_PRISON_2, MyTextsWrapperEnum.Blank, null, this, new MyMissionID[] { MyMissionID.UNLOCK_PRISON_1 }, new MyMissionLocation(baseSector, (uint)EntityID.hub2), MyTextsWrapperEnum.PressToHack, MyTextsWrapperEnum.SecurityControlHUB, MyTextsWrapperEnum.HackingProgress, 2000, startDialogId: MyDialogueEnum.SLAVERBASE2_0400_FIRST_HUB_DESTROYED ) { SaveOnSuccess = false }; m_objectives.Add(unlockprison2); var talkAboutGenerator = new MyObjectiveDialog( MyMissionID.SLAVER_BASE_2_TALK_ABOUT_GENERATOR, null, this, new MyMissionID[] { MyMissionID.UNLOCK_PRISON_2 }, MyDialogueEnum.SLAVERBASE2_0500_BOTH_HUBS_DESTROYED ) { SaveOnSuccess = false }; m_objectives.Add(talkAboutGenerator); var breakTheChains = new MyObjectiveDestroy( MyTextsWrapperEnum.SLAVER_BASE_2_BREAK_THE_CHAINS, MyMissionID.SLAVER_BASE_2_BREAK_THE_CHAINS, MyTextsWrapperEnum.Blank, null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_2_TALK_ABOUT_GENERATOR }, new List <uint> { (uint)EntityID.generator_1 }, null, true ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudGenerator }; breakTheChains.OnMissionSuccess += BreakTheChains_OnMissionSuccess; breakTheChains.Components.Add(new MyDetectorDialogue((uint)EntityID.GeneratorDetectorDummy, MyDialogueEnum.SLAVERBASE2_0600_GENERATOR_REACHED)); m_objectives.Add(breakTheChains); var talkAboutPrisoners = new MyObjectiveDialog( MyMissionID.SLAVER_BASE_2_TALK_ABOUT_PRISONERS, null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_2_BREAK_THE_CHAINS }, MyDialogueEnum.SLAVERBASE2_0700_GENERATOR_DESTROYED ) { SaveOnSuccess = false }; m_objectives.Add(talkAboutPrisoners); var freeSlaves = new MyMultipleUseObjective( MyTextsWrapperEnum.SLAVER_BASE_2_FREE_SLAVES, MyMissionID.SLAVER_BASE_2_FREE_SLAVES, MyTextsWrapperEnum.Blank, null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_2_TALK_ABOUT_PRISONERS }, MyTextsWrapperEnum.UnlockCell, MyTextsWrapperEnum.PrisonCell, MyTextsWrapperEnum.UnlockingInProgress, 2000, new List <uint> { (uint)EntityID.slave_1, (uint)EntityID.slave_2, (uint)EntityID.slave_3, (uint)EntityID.slave_4, (uint)EntityID.slave_5 }, MyUseObjectiveType.Activating ) { SaveOnSuccess = true, SuccessDialogId = MyDialogueEnum.SLAVERBASE2_1200_MISSION_COMPLETE }; freeSlaves.OnObjectUsedSucces += OnFreeSlavesObjectiveSuccess; m_objectives.Add(freeSlaves); //var finalFreedom = new MyObjective( // One member of that list - its type defines the type of submission - MySubmission means fly to the dummypoint to success. Here it is var so you cannot call methods on it // new StringBuilder("Return to Valiant."), // Name of the submission // MyMissionID.SLAVER_BASE_2_FINAL_FREEDOM, // ID of the submission - must be added to MyMissions.cs // new StringBuilder("Return to Valiant.\n"), // Description of the submission // null, // this, // new MyMissionID[] { MyMissionID.SLAVER_BASE_2_FREE_SLAVES, MyMissionID.SLAVER_BASE_1_FREE_SLAVES_2, MyMissionID.SLAVER_BASE_1_FREE_SLAVES_3, MyMissionID.SLAVER_BASE_1_FREE_SLAVES_4, MyMissionID.SLAVER_BASE_1_FREE_SLAVES_5 }, // ID of submissions required to make this submission available - it is clear so this submission is the starting submission // new MyMissionLocation(baseSector, (uint)EntityID.FinalFreedom), // ID of dummy point of checkpoint // startDialogId: MyDialogueEnum.SLAVERBASE2_1200_MISSION_COMPLETE // ) { SaveOnSuccess = false }; // False means do not save game in that checkpointa //m_objectives.Add(finalFreedom); // Adding this submission to the list of submissions of current mission }
public MyChineseEscapeMission() { ID = MyMissionID.CHINESE_ESCAPE; /* ID must be added to MyMissions.cs */ Name = MyTextsWrapperEnum.CHINESE_ESCAPE; Description = MyTextsWrapperEnum.CHINESE_ESCAPE_Description; // "Defend Madelyn's mothership and escape with stolen cargo\n" DebugName = new StringBuilder("08d-Chinese escape"); Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(-1919599, 0, 5268734); // Story sector of the script Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point RequiredMissions = new MyMissionID[] { MyMissionID.CHINESE_REFINERY }; RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.CHINESE_ESCAPE_SPEAK_WITH_MADELYN }; RequiredActors = new MyActorEnum[] { MyActorEnum.MADELYN }; m_objectives = new List <MyObjective>(); // Creating of list of submissions m_objective01_flyTowardsMadelyn = new MyObjective( // One member of that list (MyTextsWrapperEnum.CHINESE_ESCAPE_GET_CLOSER_Name), MyMissionID.CHINESE_ESCAPE_GET_CLOSER, (MyTextsWrapperEnum.CHINESE_ESCAPE_GET_CLOSER_Description), null, this, new MyMissionID[] { }, new MyMissionLocation(baseSector, (uint)EntityID.O01DefendMadelyn), startDialogId: MyDialogueEnum.CHINESE_ESCAPE_0100_INTRODUCTION ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudMadelynsSapho }; m_objective01_flyTowardsMadelyn.OnMissionLoaded += O01FlyTowardsMadelynLoaded; m_objective01_flyTowardsMadelyn.OnMissionSuccess += O01FlyTowardsMadelynSuccess; m_objectives.Add(m_objective01_flyTowardsMadelyn); m_objective02_defendMadelyn = new MyObjectiveDestroy( (MyTextsWrapperEnum.CHINESE_ESCAPE_DEFEND_SHIP_Name), MyMissionID.CHINESE_ESCAPE_DEFEND_SHIP, (MyTextsWrapperEnum.CHINESE_ESCAPE_DEFEND_SHIP_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_ESCAPE_GET_CLOSER }, null, new List <uint> { (uint)EntityID.SpawnLastL, (uint)EntityID.SpawnLastR, (uint)EntityID.SpawnLastAsteroid }, true, true ) { SaveOnSuccess = true }; m_objectives.Add(m_objective02_defendMadelyn); m_objective02_defendMadelyn.OnMissionLoaded += new MissionHandler(m_objective02_defendMadelyn_OnMissionLoaded); m_objective02_defendMadelyn.OnMissionCleanUp += new MissionHandler(m_objective02_defendMadelyn_OnMissionCleanUp); var objective03_lastDialogue = new MyObjectiveDialog( MyTextsWrapperEnum.CHINESE_ESCAPE_SPEAK_WITH_MADELYN_Name, MyMissionID.CHINESE_ESCAPE_SPEAK_WITH_MADELYN, MyTextsWrapperEnum.CHINESE_ESCAPE_SPEAK_WITH_MADELYN_Description, null, this, new MyMissionID[] { MyMissionID.CHINESE_ESCAPE_DEFEND_SHIP }, dialogId: MyDialogueEnum.CHINESE_ESCAPE_1000_LAST_OF_THEM ) { SaveOnSuccess = false }; m_objectives.Add(objective03_lastDialogue); }
public MyJunkyardReturnMission() { ID = MyMissionID.JUNKYARD_RETURN; /* ID must be added to MyMissions.cs */ Name = MyTextsWrapperEnum.JUNKYARD_RETURN; Description = MyTextsWrapperEnum.JUNKYARD_RETURN_Description; //"Return to Ranjit with stolen Cargoship\n" DebugName = new StringBuilder("08e-Junkyard racing"); // Name of mission Flags = MyMissionFlags.Story; AchievementName = MySteamAchievementNames.Mission12_JunkyardRacing; MyMwcVector3Int baseSector = new MyMwcVector3Int(2567538,0,-172727); // Story sector of the script - i.e. (-2465,0,6541) Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point - must by typecasted to uint and referenced from EntityID enum RequiredMissions = new MyMissionID[] { MyMissionID.CHINESE_ESCAPE }; // IDs of missions required to make this mission available RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_DIALOGUE_RETURN }; RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; #region Objectives m_objectives = new List<MyObjective>(); // Creating of list of submissions var meetManjeet = new MyObjective( (MyTextsWrapperEnum.JUNKYARD_RETURN_MEET_SMUGGLER_Name), MyMissionID.JUNKYARD_RETURN_MEET_SMUGGLER, (MyTextsWrapperEnum.JUNKYARD_RETURN_MEET_SMUGGLER_Description), null, this, new MyMissionID[] {}, new MyMissionLocation(baseSector, (uint) EntityID.Manjeet), new List<uint> {(uint) EntityID.Manjeet}, radiusOverride: 50 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudManjeet }; m_objectives.Add(meetManjeet); meetManjeet.OnMissionLoaded += O01MeetSmugglerLoaded; var manjeetDialogue = new MyObjectiveDialog( MyMissionID.JUNKYARD_RETURN_SMUGGLER_DIALOGUE, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_MEET_SMUGGLER }, MyDialogueEnum.JUNKYARD_RETURN_0200 ) { SaveOnSuccess = true }; manjeetDialogue.OnMissionSuccess += new MissionHandler(manjeetDialogue_OnMissionSuccess); m_objectives.Add(manjeetDialogue); var speedsterDialogue = new MyObjective( MyTextsWrapperEnum.Null, MyMissionID.JUNKYARD_RETURN_SPEEDSTER_DIALOGUE, MyTextsWrapperEnum.Null, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_SMUGGLER_DIALOGUE }, null ) { SaveOnSuccess = true }; speedsterDialogue.OnMissionLoaded += O02SmugglerDialogueLoaded; m_objectives.Add(speedsterDialogue); m_objective03_FlyToStart = new MyObjective( (MyTextsWrapperEnum.JUNKYARD_RETURN_FLY_TO_START_Name), MyMissionID.JUNKYARD_RETURN_FLY_TO_START, (MyTextsWrapperEnum.JUNKYARD_RETURN_FLY_TO_START_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_SPEEDSTER_DIALOGUE }, null, startDialogId: MyDialogueEnum.JUNKYARD_RETURN_0300 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudStart }; m_objective03_FlyToStart.MissionEntityIDs.Add((uint)EntityID.DetectorStartRacePosition); m_objective03_FlyToStart.OnMissionLoaded += O03FlyToStartLoaded; m_objective03_FlyToStart.OnMissionCleanUp += O03FlyToStartCleanUp; m_objectives.Add(m_objective03_FlyToStart); m_objective04_Race = new MyObjectiveRace( (MyTextsWrapperEnum.JUNKYARD_RETURN_RACE_Name), (MyTextsWrapperEnum.JUNKYARD_RETURN_RACE_PrepareName), (MyTextsWrapperEnum.JUNKYARD_RETURN_RACE_GoBackName), MyMissionID.JUNKYARD_RETURN_RACE, (MyTextsWrapperEnum.JUNKYARD_RETURN_RACE_Description), null, this, new MyMissionID[]{ MyMissionID.JUNKYARD_RETURN_FLY_TO_START }, baseSector, m_raceCheckpoints, (uint)EntityID.DetectorStartRacePosition2 ) { SaveOnSuccess = true} ; m_objective04_Race.RacerNames = new List<string> { "Racer2", "Racer3", "Challenger" }; m_objective04_Race.BotLoaded += Race_BotLoaded; m_objective04_Race.OnMissionLoaded += O04RaceLoaded; m_objective04_Race.OnMissionFailed += RaceMissionFailed; m_objective04_Race.OnMissionSuccess += Objective04_RaceOnOnMissionSuccess; m_objective04_Race.CheckpointReached += RaceMissonOnCheckpointReached; m_objective04_Race.OnStartNumberChanged += RaceStartNumberChanged; m_objective04_Race.RaceStarted = RaceStarted; m_objectives.Add(m_objective04_Race); m_objective05_Win = new MyObjectiveDialog( (MyTextsWrapperEnum.JUNKYARD_RETURN_WIN_Name), MyMissionID.JUNKYARD_RETURN_WIN, (MyTextsWrapperEnum.JUNKYARD_RETURN_WIN_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_RACE }, MyDialogueEnum.JUNKYARD_RETURN_1300 ) { SaveOnSuccess = false }; m_objectives.Add(m_objective05_Win); m_objective05_Win.OnMissionLoaded += O05WinLoaded; m_objective06_GoToSmuggler = new MyMeetObjective( (MyTextsWrapperEnum.JUNKYARD_RETURN_GO_TO_SMUGGLER_name), MyMissionID.JUNKYARD_RETURN_GO_TO_SMUGGLER, (MyTextsWrapperEnum.JUNKYARD_RETURN_GO_TO_SMUGGLER_Description), this, new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_WIN }, null, (uint)EntityID.Manjeet, 100, 0.25f, null ) { SaveOnSuccess = true, FollowMe = false }; m_objectives.Add(m_objective06_GoToSmuggler); m_objective07_SmugglerDialogueReturn = new MyObjectiveDialog( (MyTextsWrapperEnum.JUNKYARD_RETURN_DIALOGUE_RETURN_Name), MyMissionID.JUNKYARD_RETURN_DIALOGUE_RETURN, (MyTextsWrapperEnum.JUNKYARD_RETURN_DIALOGUE_RETURN_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_RETURN_GO_TO_SMUGGLER}, dialogId: MyDialogueEnum.JUNKYARD_RETURN_1400 ) { SaveOnSuccess = false }; m_objectives.Add(m_objective07_SmugglerDialogueReturn); m_objective07_SmugglerDialogueReturn.OnMissionLoaded += O07SmugglerDialogueReturnLoaded; #endregion }
public MyResearchVesselMission() { ID = MyMissionID.RESEARCH_VESSEL; DebugName = new StringBuilder("12-Eurydice/Osaka"); Name = MyTextsWrapperEnum.RESEARCH_VESSEL; Description = MyTextsWrapperEnum.RESEARCH_VESSEL_Description; Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(4189723, 0, -2201402); Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); RequiredMissions = new MyMissionID[] { MyMissionID.RIME_CONVINCE }; RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_TAKE_FOURTH }; RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; #region Objectives m_objectives = new List <MyObjective>(); var introDialogue = new MyObjectiveDialog( MyMissionID.RESEARCH_VESSEL_INTRO, null, this, new MyMissionID[] { }, MyDialogueEnum.RESEARCH_VESSEL_0100_INTRO ) { SaveOnSuccess = true }; m_objectives.Add(introDialogue); var reachShip = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_REACH_SHIP, MyMissionID.RESEARCH_VESSEL_REACH_SHIP, MyTextsWrapperEnum.RESEARCH_VESSEL_REACH_SHIP_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_INTRO }, new MyMissionLocation(baseSector, (uint)EntityID.DummyReachShip) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudEurydice }; reachShip.OnMissionSuccess += new MissionHandler(ReachShip_Success); m_objectives.Add(reachShip); var checkCargo = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_CARGO, MyMissionID.RESEARCH_VESSEL_CHECK_CARGO, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_CARGO_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_REACH_SHIP }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_1) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudContainer }; m_objectives.Add(checkCargo); var checkCommandRoom = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_COMMAND_ROOM, MyMissionID.RESEARCH_VESSEL_CHECK_COMMAND_ROOM, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_COMMAND_ROOM_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_CARGO }, new MyMissionLocation(baseSector, (uint)EntityID.DummyNearHub1) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudCommandRoom }; checkCommandRoom.OnMissionLoaded += new MissionHandler(checkCommandRoom_OnMissionLoaded); m_objectives.Add(checkCommandRoom); var unlockFirstCargo = new MyObjectiveEnablePrefabs( MyTextsWrapperEnum.RESEARCH_VESSEL_USE_HUB_1, MyMissionID.RESEARCH_VESSEL_USE_HUB_1, MyTextsWrapperEnum.RESEARCH_VESSEL_USE_HUB_1_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_COMMAND_ROOM }, null, new List <uint> { (uint)EntityID.Hub1 }, new List <uint> { (uint)EntityID.Door1 } ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHub }; m_objectives.Add(unlockFirstCargo); var checkLaboratory = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_LABORATORY, MyMissionID.RESEARCH_VESSEL_CHECK_LABORATORY, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_LABORATORY_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_USE_HUB_1 }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_14) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudLab }; m_objectives.Add(checkLaboratory); var takeFirstParts = new MyUseObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_FIRST, MyMissionID.RESEARCH_VESSEL_TAKE_FIRST, MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_FIRST_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_LABORATORY }, new MyMissionLocation(baseSector, (uint)EntityID.Cargo3), MyTextsWrapperEnum.PressToTakeComponent, MyTextsWrapperEnum.Component, MyTextsWrapperEnum.TakingInProgress, 1000, MyUseObjectiveType.Activating, radiusOverride: 50 ) { SaveOnSuccess = true }; takeFirstParts.OnMissionSuccess += TakeFirstParts_Success; m_objectives.Add(takeFirstParts); var checkWarehouse = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_WAREHOUSE, MyMissionID.RESEARCH_VESSEL_CHECK_WAREHOUSE, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_WAREHOUSE_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_TAKE_FIRST }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_4) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudWarehouse }; m_objectives.Add(checkWarehouse); var checkDrillMachineRoom = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_DRILL_ROOM, MyMissionID.RESEARCH_VESSEL_CHECK_DRILL_ROOM, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_DRILL_ROOM_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_WAREHOUSE }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_5) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudDrillRoom }; checkDrillMachineRoom.OnMissionSuccess += new MissionHandler(checkDrillMachineRoom_OnMissionSuccess); m_objectives.Add(checkDrillMachineRoom); var checkFirstHangar = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_FIRST_HANGAR, MyMissionID.RESEARCH_VESSEL_CHECK_FIRST_HANGAR, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_FIRST_HANGAR_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_DRILL_ROOM }, new MyMissionLocation(baseSector, (uint)EntityID.DummyNearHub2) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHangar }; m_objectives.Add(checkFirstHangar); var takeSecondParts = new MyUseObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_SECOND, MyMissionID.RESEARCH_VESSEL_TAKE_SECOND, MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_SECOND_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_FIRST_HANGAR }, new MyMissionLocation(baseSector, (uint)EntityID.Cargo4), MyTextsWrapperEnum.PressToTakeComponent, MyTextsWrapperEnum.Component, MyTextsWrapperEnum.TakingInProgress, 1000, MyUseObjectiveType.Activating, radiusOverride: 50 ) { SaveOnSuccess = true }; takeSecondParts.OnMissionSuccess += TakeSecondParts_Success; m_objectives.Add(takeSecondParts); var useHub2 = new MyObjectiveEnablePrefabs( MyTextsWrapperEnum.RESEARCH_VESSEL_USE_HUB_2, MyMissionID.RESEARCH_VESSEL_USE_HUB_2, MyTextsWrapperEnum.RESEARCH_VESSEL_USE_HUB_2_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_TAKE_SECOND }, null, new List <uint> { (uint)EntityID.Hub2 }, new List <uint> { (uint)EntityID.Door2 } ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHub }; m_objectives.Add(useHub2); var checkSecondHangar = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_SECOND_HANGAR, MyMissionID.RESEARCH_VESSEL_CHECK_SECOND_HANGAR, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_SECOND_HANGAR_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_USE_HUB_2 }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_7) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHangar }; m_objectives.Add(checkSecondHangar); var checkThirdHangar = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_THIRD_HANGAR, MyMissionID.RESEARCH_VESSEL_CHECK_THIRD_HANGAR, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_THIRD_HANGAR_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_SECOND_HANGAR }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_8) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHangar }; m_objectives.Add(checkThirdHangar); var checkSecondWarehouse = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_SECOND_WAREHOUSE, MyMissionID.RESEARCH_VESSEL_CHECK_SECOND_WAREHOUSE, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_SECOND_WAREHOUSE_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_THIRD_HANGAR }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_9) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudWarehouse }; m_objectives.Add(checkSecondWarehouse); var checkGenerator = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_GENERATOR, MyMissionID.RESEARCH_VESSEL_CHECK_GENERATOR, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_GENERATOR_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_SECOND_WAREHOUSE }, new MyMissionLocation(baseSector, (uint)EntityID.DummyNearHub3) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudGeneratorRoom }; m_objectives.Add(checkGenerator); var useHub3 = new MyObjectiveEnablePrefabs( MyTextsWrapperEnum.RESEARCH_VESSEL_USE_HUB_3, MyMissionID.RESEARCH_VESSEL_USE_HUB_3, MyTextsWrapperEnum.RESEARCH_VESSEL_USE_HUB_3_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_GENERATOR }, null, new List <uint> { (uint)EntityID.Hub3 }, new List <uint> { (uint)EntityID.Door3 } ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHub }; useHub3.OnMissionSuccess += new MissionHandler(UseHub3_Success); m_objectives.Add(useHub3); var takeThridProbe = new MyUseObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_THIRD, MyMissionID.RESEARCH_VESSEL_TAKE_THIRD, MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_THIRD_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_USE_HUB_3 }, new MyMissionLocation(baseSector, (uint)EntityID.Cargo2), MyTextsWrapperEnum.PressToTakeComponent, MyTextsWrapperEnum.Component, MyTextsWrapperEnum.TakingInProgress, 1000, MyUseObjectiveType.Activating, radiusOverride: 50 ) { SaveOnSuccess = true }; takeThridProbe.OnMissionSuccess += TakeThirdParts_Success; m_objectives.Add(takeThridProbe); var takeThridProbeDialogue = new MyObjectiveDialog( MyTextsWrapperEnum.Null, MyMissionID.RESEARCH_VESSEL_TAKE_THIRD_DIALOGUE, MyTextsWrapperEnum.Null, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_TAKE_THIRD }, MyDialogueEnum.RESEARCH_VESSEL_0700_THIRDPARTS); m_objectives.Add(takeThridProbeDialogue); var checkCargoAgain = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_CARGO_AGAIN, MyMissionID.RESEARCH_VESSEL_CHECK_CARGO_AGAIN, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_CARGO_AGAIN_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_TAKE_THIRD_DIALOGUE }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_1) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudContainer }; checkCargoAgain.OnMissionSuccess += new MissionHandler(CheckCargoAgain_Success); m_objectives.Add(checkCargoAgain); var takeFourthParts = new MyUseObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_FOURTH, MyMissionID.RESEARCH_VESSEL_TAKE_FOURTH, MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_FOURTH_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_CARGO_AGAIN }, new MyMissionLocation(baseSector, (uint)EntityID.Cargo1), MyTextsWrapperEnum.PressToTakeComponent, MyTextsWrapperEnum.Component, MyTextsWrapperEnum.TakingInProgress, 1000, MyUseObjectiveType.Activating, radiusOverride: 50 ) { SaveOnSuccess = false }; takeFourthParts.OnMissionSuccess += TakeFourthParts_Success; m_objectives.Add(takeFourthParts); #endregion }
//private MySubmisisonDefend m_defendGenerator; #endregion public MySlaverBaseMission() { m_ValidateIDlists = new List<List<uint>>(); m_ValidateIDlists.Add(m_closeddoors); m_ValidateIDlists.Add(m_finalparticle); m_ValidateIDlists.Add(m_openedddoors); m_ValidateIDlists.Add(m_standbyparticle); m_ValidateIDlists.Add(m_pilotsSpawn); m_ValidateIDlists.Add(m_closeentiites); ID = MyMissionID.SLAVER_BASE_1; /* ID must be added to MyMissions.cs */ Name = MyTextsWrapperEnum.SLAVER_BASE_GRAND_BURROW; Description = MyTextsWrapperEnum.SLAVER_BASE_GRAND_BURROW_Description; DebugName = new StringBuilder("09b-Slaver base Grand Burrow"); // Nazev mise Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(2052452, 0, -10533886); // Story sector of the script Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point RequiredMissions = new MyMissionID[] { MyMissionID.FORT_VALIANT }; // mise ktere musi byt splneny pred prijetim teto mise RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DIALOG_10 }; RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; m_objectives = new List<MyObjective>(); // Creating of list of submissions // -------------- START DEFINICE SUBMISE --------------------- var talkWith = new MyObjectiveDialog( (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_1_Name), MyMissionID.SLAVER_BASE_1_DIALOG_1, (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_1_Description), null, this, new MyMissionID[] { }, dialogId: MyDialogueEnum.SLAVERBASE_0100_INTRODUCE ) { SaveOnSuccess = false }; m_objectives.Add(talkWith); var DestroyGenerators = new MyObjectiveDestroy( // Var is used to call functions on that member (MyTextsWrapperEnum.SLAVER_BASE_1_DESTROY_GENERATOR_Name), MyMissionID.SLAVER_BASE_1_DESTROY_GENERATOR, (MyTextsWrapperEnum.SLAVER_BASE_1_DESTROY_GENERATOR_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DIALOG_1 }, Generators, false ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudGenerator }; m_objectives.Add(DestroyGenerators); // pridani do seznamu submisi DestroyGenerators.OnMissionSuccess += DestroyGeneratorMSSuccess; var talkWith2 = new MyObjectiveDialog( (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_2_Name), MyMissionID.SLAVER_BASE_1_DIALOG_2, (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_2_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DESTROY_GENERATOR }, dialogId: MyDialogueEnum.SLAVERBASE_0200_GENERATORS_DESTROYED ) { SaveOnSuccess = false }; m_objectives.Add(talkWith2); var DestroyBatteries = new MyObjectiveDestroy( // Var is used to call functions on that member (MyTextsWrapperEnum.SLAVER_BASE_1_DESTROY_BATTERIES_Name), MyMissionID.SLAVER_BASE_1_DESTROY_BATTERIES, (MyTextsWrapperEnum.SLAVER_BASE_1_DESTROY_BATTERIES_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DIALOG_2 }, Batteries, false ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudBatteries }; m_objectives.Add(DestroyBatteries); // pridani do seznamu submisi DestroyBatteries.OnMissionSuccess += DestroyBatteriesMSSuccess; var FindPrison = new MyObjective( // One member of that list - je to MyObjective takze cilem je doletet do checkpointu (MyTextsWrapperEnum.SLAVER_BASE_1_FIND_PRISON_Name), // nazev submise MyMissionID.SLAVER_BASE_1_FIND_PRISON, // id submise (MyTextsWrapperEnum.SLAVER_BASE_1_FIND_PRISON_Description), // popis submise null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DESTROY_BATTERIES }, // ID submisi ktere musi byt splneny - je to prazdne takze je to prvni submise new MyMissionLocation(baseSector, (uint)EntityID.Prison_Dummy), startDialogId: MyDialogueEnum.SLAVERBASE_0300_BATTERIES_DESTROYED// ID of dummy point of checkpoint ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudPrison }; // nastaveni save na checkpointu nebo ne m_objectives.Add(FindPrison); // pridani do seznamu submisi FindPrison.OnMissionSuccess += FindPrisonMSSuccess; m_freeSlaves = new MyObjectiveDestroy( // Var is used to call functions on that member (MyTextsWrapperEnum.SLAVER_BASE_1_FREE_SLAVES_Name), MyMissionID.SLAVER_BASE_1_FREE_SLAVES, (MyTextsWrapperEnum.SLAVER_BASE_1_FREE_SLAVES_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_FIND_PRISON }, m_Bars, false ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudCage }; m_objectives.Add(m_freeSlaves); // pridani do seznamu submisi var talkWith4 = new MyObjectiveDialog( MyMissionID.SLAVER_BASE_1_DIALOG_4, null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_FREE_SLAVES }, dialogId: MyDialogueEnum.SLAVERBASE_0400_SLAVES_SAVED ) { SaveOnSuccess = true }; m_objectives.Add(talkWith4); m_hackHangar = new MyObjectiveEnablePrefabs( (MyTextsWrapperEnum.SLAVER_BASE_1_HACK_HANGAR_Name), MyMissionID.SLAVER_BASE_1_HACK_HANGAR, (MyTextsWrapperEnum.SLAVER_BASE_1_HACK_HANGAR_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DIALOG_4 }, null, new List<uint> { (uint)EntityID.Hack_PC }, new List<uint> { (uint)EntityID.Hangar_Doors } ) { HudName = MyTextsWrapperEnum.HudHub }; m_objectives.Add(m_hackHangar); m_hackHangar.OnMissionSuccess += HangarOpen; m_freeSlavesMS = new MyObjectiveDestroy( // Var is used to call functions on that member (MyTextsWrapperEnum.SLAVER_BASE_1_FREE_SLAVES_2_Name), MyMissionID.SLAVER_BASE_1_FREE_SLAVES_2, (MyTextsWrapperEnum.SLAVER_BASE_1_FREE_SLAVES_2_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_HACK_HANGAR }, Mothership_Bars, false ) { SaveOnSuccess = false, ToDestroyCount = 1, HudName = MyTextsWrapperEnum.HudCage }; m_objectives.Add(m_freeSlavesMS); // pridani do seznamu submisi var talkWith6 = new MyObjectiveDialog( (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_6_Name), MyMissionID.SLAVER_BASE_1_DIALOG_6, (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_6_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_FREE_SLAVES_2, }, dialogId: MyDialogueEnum.SLAVERBASE_0600_MOTHERSHIP_EMPTY ) { SaveOnSuccess = false }; m_objectives.Add(talkWith6); var findSlaves = new MyObjectiveDestroy( // Var is used to call functions on that member (MyTextsWrapperEnum.SLAVER_BASE_1_FIND_SLAVES_Name), MyMissionID.SLAVER_BASE_1_FIND_SLAVES, (MyTextsWrapperEnum.SLAVER_BASE_1_FIND_SLAVES_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DIALOG_6 }, bar_pit, // ID of dummy point of checkpoint false ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudCage }; findSlaves.MissionEntityIDs.Add((uint)EntityID.Bar_pit); m_objectives.Add(findSlaves); // pridani do seznamu submisi var talkWith7 = new MyObjectiveDialog( (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_7_Name), MyMissionID.SLAVER_BASE_1_DIALOG_7, (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_7_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_FIND_SLAVES, }, dialogId: MyDialogueEnum.SLAVERBASE_0700_PIT_EMPTY ) { SaveOnSuccess = false }; m_objectives.Add(talkWith7); talkWith7.OnMissionLoaded += FreePilotsMSSuccess; var destroyEnemies = new MyDestroyWavesObjective( // Var is used to call functions on that member (MyTextsWrapperEnum.SLAVER_BASE_1_DESTROY_ENEMIES_Name), MyMissionID.SLAVER_BASE_1_DESTROY_ENEMIES, (MyTextsWrapperEnum.SLAVER_BASE_1_DESTROY_ENEMIES_Description), null, this, new[] { MyMissionID.SLAVER_BASE_1_DIALOG_7 } //new List<uint> // { // (uint) EntityID.Mothership_Spawn_1, // (uint) EntityID.Mothership_Spawn_2, // (uint) EntityID.Mothership_Spawn_3 // }, ) { SaveOnSuccess = false }; destroyEnemies.AddWave(new List<uint> { (uint)EntityID.Mothership_Spawn_1 }); destroyEnemies.AddWave(new List<uint> { (uint)EntityID.Mothership_Spawn_2 }); destroyEnemies.AddWave(new List<uint> { (uint)EntityID.Mothership_Spawn_3 }); destroyEnemies.OnMissionSuccess += EnemiesDestroyed; m_objectives.Add(destroyEnemies); // pridani do seznamu submisi var talkWith9 = new MyObjectiveDialog( (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_9_Name), MyMissionID.SLAVER_BASE_1_DIALOG_9, (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_9_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DESTROY_ENEMIES }, dialogId: MyDialogueEnum.SLAVERBASE_0800_ENEMIES_DESTROYED ) { SaveOnSuccess = false }; m_objectives.Add(talkWith9); m_openHangarDoors = new MyObjectiveEnablePrefabs( (MyTextsWrapperEnum.SLAVER_BASE_1_HACK_NUKE_Name), MyMissionID.SLAVER_BASE_1_HACK_NUKE, (MyTextsWrapperEnum.SLAVER_BASE_1_HACK_NUKE_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DIALOG_9 }, null, new List<uint> { (uint)EntityID.HangarDoorsHub }, new List<uint> { (uint)EntityID.Cargo_Bay_Doors } ) { HudName = MyTextsWrapperEnum.HudHub }; m_objectives.Add(m_openHangarDoors); m_openHangarDoors.OnMissionSuccess += MSEscape; m_openHangarDoors.OnMissionSuccess += MoveFourthReichMSStart; var talkWith10 = new MyTimedObjective( (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_10_Name), MyMissionID.SLAVER_BASE_1_DIALOG_10, (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_10_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_HACK_NUKE }, TimeSpan.FromSeconds(50) ) { SaveOnSuccess = false, SuccessDialogId = MyDialogueEnum.SLAVERBASE_1100_FAKE_ESCAPED, DisplayCounter = false, }; talkWith10.MissionEntityIDs.Add((uint) EntityID.Escape_Dummy); m_objectives.Add(talkWith10); }
public MyEACPrisonMission() { ID = MyMissionID.EAC_PRISON; /* ID must be added to MyMissions.cs */ DebugName = new StringBuilder("20-EAC prison"); Name = MyTextsWrapperEnum.EAC_PRISON; Description = MyTextsWrapperEnum.EAC_PRISON_Description; Flags = MyMissionFlags.Story; AchievementName = MySteamAchievementNames.Mission29_EacPrison; MyMwcVector3Int baseSector = new MyMwcVector3Int(5480055, 0, -5077310); /* sector where the mission is located */ Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); //posledne cislo - ID dummy pointu kde prijimam misiu RequiredMissions = new MyMissionID[] { MyMissionID.TWIN_TOWERS }; RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.EAC_PRISON_MEETINGPOINT }; RequiredActors = new MyActorEnum[] { MyActorEnum.TARJA, MyActorEnum.VALENTIN, MyActorEnum.MADELYN, MyActorEnum.MARCUS }; m_objectives = new List <MyObjective>(); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeStorage, 0, (uint)EntityID.SpawnpointAtStorage)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeIndustry, 0, (uint)EntityID.SpawnpointAtIndustry1)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeIndustry, 0, (uint)EntityID.SpawnpointAtIndustry2)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeParking, 0, (uint)EntityID.SpawnpointAtParking)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeMines, 0, (uint)EntityID.SpawnpointAtMines)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeMinesEntrance, 0, (uint)EntityID.SpawnpointAtMinesEntrance)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeMarcusCell, 0, (uint)EntityID.SpawnpointAtMarcusCell)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeSecurityCheck7, 0, (uint)EntityID.SpawnpointAtSecurityCheck7)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeSecurityCheck6, 0, (uint)EntityID.SpawnpointAtSecurityCheck6)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeSecurityCheck8, 0, (uint)EntityID.SpawnpointAtSecurityCheck8)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeSecurityCheck4, 0, (uint)EntityID.SpawnpointAtSecurityCheck4)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeCellAfterSecurityCheck4, 0, (uint)EntityID.SpawnpointAtCellAfterSecurityCheck4)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeSecurityCheck5, 0, (uint)EntityID.SpawnpointAtSecurityCheck5)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeCell1AfterSecurityCheck5, 0, (uint)EntityID.SpawnpointAtCell1AfterSecurityCheck5)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeCell2AfterSecurityCheck5, 0, (uint)EntityID.SpawnpointAtCell2AfterSecurityCheck5)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeCell3AfterSecurityCheck5, 0, (uint)EntityID.SpawnpointAtCell3AfterSecurityCheck5)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeSecurityCheck3, 0, (uint)EntityID.SpawnpointAtSecurityCheck3)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeCell1AfterSecurityCheck3, 0, (uint)EntityID.SpawnpointAtCell1AfterSecurityCheck3)); Components.Add(new MySpawnpointWaves((uint)EntityID.DetectorBeforeCell2AfterSecurityCheck3, 0, (uint)EntityID.SpawnpointAtCell2AfterSecurityCheck3)); //Components.Add(new MySpawnpointWaves(detectorId, 3, new List<uint[]> { // new uint[] { spawnpointId1, spawnpointId2, spawnpointId3 }, // new uint[] { spawnpointId4, spawnpointId5 }})); //01 var mothershipBattle = new MyObjective( (MyTextsWrapperEnum.EAC_PRISON_THRUSWARM_Name), MyMissionID.EAC_PRISON_THRUSWARM, (MyTextsWrapperEnum.EAC_PRISON_THRUSWARM_Description), null, this, new MyMissionID[] {}, new MyMissionLocation(baseSector, (uint)EntityID.MotherShiBattleLocationDummy) ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_PRISON_0100, SuccessDialogId = MyDialogueEnum.EAC_PRISON_0200 }; m_objectives.Add(mothershipBattle); //mothershipBattle.Components.Add(new MySpawnpointWaves(77073, 0, 76625)); mothershipBattle.OnMissionLoaded += mothershipBattle_OnMissionLoaded; //02 var destroySolarDefence = new MyObjectiveDestroy( (MyTextsWrapperEnum.EAC_PRISON_SOLARDEF_Name), MyMissionID.EAC_PRISON_SOLARDEF, (MyTextsWrapperEnum.EAC_PRISON_SOLARDEF_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_THRUSWARM }, m_02toKill ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_PRISON_0300 }; destroySolarDefence.OnMissionSuccess += DestroySolarDefenceOnOnMissionSuccess; m_objectives.Add(destroySolarDefence); destroySolarDefence.OnMissionLoaded += destroySolarDefence_OnMissionLoaded; //03 m_destroySolarPanelsFirst = new MyObjective( (MyTextsWrapperEnum.EAC_PRISON_SOLAROFF1_Name), MyMissionID.EAC_PRISON_SOLAROFF1, (MyTextsWrapperEnum.EAC_PRISON_SOLAROFF1_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_SOLARDEF }, null ) { SaveOnSuccess = false }; m_destroySolarPanelsFirst.OnMissionLoaded += DestroySolarPanelsFirstSubmissionLoaded; m_destroySolarPanelsFirst.OnMissionSuccess += DestroySolarPanelsFirstSubmissionSuccess; m_objectives.Add(m_destroySolarPanelsFirst); m_destroySolarPanelsFirst.SaveOnSuccess = true; //04 var motherShipHelp = new MyObjectiveDestroy( (MyTextsWrapperEnum.EAC_PRISON_MOTHERSHIPHELP_Name), MyMissionID.EAC_PRISON_MOTHERSHIPHELP, (MyTextsWrapperEnum.EAC_PRISON_MOTHERSHIPHELP_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_SOLAROFF1 }, m_04toKill ) { SaveOnSuccess = false, StartDialogId = MyDialogueEnum.EAC_PRISON_0400, SuccessDialogId = MyDialogueEnum.EAC_PRISON_0500 }; m_objectives.Add(motherShipHelp); motherShipHelp.OnMissionLoaded += new MissionHandler(motherShipHelp_OnMissionLoaded); //05 m_destroySolarPanelsSecond = new MyObjective( (MyTextsWrapperEnum.EAC_PRISON_SOLAROFF2_Name), MyMissionID.EAC_PRISON_SOLAROFF2, (MyTextsWrapperEnum.EAC_PRISON_SOLAROFF2_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_MOTHERSHIPHELP }, null ) { SaveOnSuccess = true, }; m_destroySolarPanelsSecond.OnMissionLoaded += DestroySolarPanelsSecondSubmissionLoaded; m_destroySolarPanelsSecond.OnMissionSuccess += DestroySolarPanelsSecondSubmissionSuccess; m_objectives.Add(m_destroySolarPanelsSecond); //06 var breakInsideStation = new MyTimedReachLocationObjective( (MyTextsWrapperEnum.EAC_PRISON_BREAKIN_Name), MyMissionID.EAC_PRISON_BREAKIN, (MyTextsWrapperEnum.EAC_PRISON_BREAKIN_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_SOLAROFF2 }, new System.TimeSpan(0, 1, 0), new MyMissionLocation(baseSector, (uint)EntityID.BreakInsideStationLocationDummy) ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_PRISON_0600, HudName = MyTextsWrapperEnum.HudCargoBay }; breakInsideStation.OnMissionSuccess += BreakInsideStationSubmissionSuccess; breakInsideStation.OnMissionLoaded += BreakInsideStationOnOnMissionLoaded; m_objectives.Add(breakInsideStation); //07 var marcusLocationIntel = new MyUseObjective( (MyTextsWrapperEnum.EAC_PRISON_LOCINTEL_Name), MyMissionID.EAC_PRISON_LOCINTEL, (MyTextsWrapperEnum.EAC_PRISON_LOCINTEL_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_BREAKIN }, new MyMissionLocation(baseSector, (uint)EntityID._MarcusIntelLocation), MyTextsWrapperEnum.PressToDownloadData, MyTextsWrapperEnum.Console, MyTextsWrapperEnum.DownloadingData, 5000, MyUseObjectiveType.Hacking ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudSecurityHub }; m_objectives.Add(marcusLocationIntel); marcusLocationIntel.OnMissionLoaded += new MissionHandler(marcusLocationIntel_OnMissionLoaded); marcusLocationIntel.OnMissionSuccess += MarcusLocationIntelOnOnMissionSuccess; marcusLocationIntel.Components.Add(new MySpawnpointLimiter(m_spawns, 6)); //08 m_findCircoutPart = new MyUseObjective( (MyTextsWrapperEnum.EAC_PRISON_ACQUIREIDCARD_Name), MyMissionID.EAC_PRISON_ACQUIREIDCARD, (MyTextsWrapperEnum.EAC_PRISON_ACQUIREIDCARD_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_LOCINTEL }, new MyMissionLocation(baseSector, (uint)EntityID.CargoIDCard), MyTextsWrapperEnum.PressToTakeCargo, MyTextsWrapperEnum.TakeAll, MyTextsWrapperEnum.TakeAll, 2000, MyUseObjectiveType.Taking, radiusOverride: 50 ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_PRISON_0700, HudName = MyTextsWrapperEnum.HudIdCard }; m_findCircoutPart.OnMissionLoaded += OnFindCircuitLoaded; m_findCircoutPart.OnMissionSuccess += new MissionHandler(m_findCircoutPart_OnMissionSuccess); m_objectives.Add(m_findCircoutPart); var marcusLocationIntel2 = new MyUseObjective( (MyTextsWrapperEnum.EAC_PRISON_LOCINTEL2_Name), MyMissionID.EAC_PRISON_LOCINTEL2, (MyTextsWrapperEnum.EAC_PRISON_LOCINTEL2_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_ACQUIREIDCARD }, new MyMissionLocation(baseSector, (uint)EntityID._MarcusIntelLocation), MyTextsWrapperEnum.PressToDownloadData, MyTextsWrapperEnum.Console, MyTextsWrapperEnum.DownloadingData, 5000, MyUseObjectiveType.Hacking ) { SaveOnSuccess = true, SuccessDialogId = MyDialogueEnum.EAC_PRISON_0900, StartDialogId = MyDialogueEnum.EAC_PRISON_0800, HudName = MyTextsWrapperEnum.HudSecurityHub }; m_objectives.Add(marcusLocationIntel2); //09 var openDoors = new MyObjectiveEnablePrefabs( (MyTextsWrapperEnum.EAC_PRISON_OPENACCESS_Name), MyMissionID.EAC_PRISON_OPENACCESS, (MyTextsWrapperEnum.EAC_PRISON_OPENACCESS_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_LOCINTEL2 }, null, new List <uint> { (int)EntityID.SecurityHub }, m_09toEnablePrefabs ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudSecurityHub }; m_objectives.Add(openDoors); openDoors.OnMissionLoaded += OnOpenDoorsLoaded; //10 var takeOffSecurityCircuit = new MyObjectiveDisablePrefabs( (MyTextsWrapperEnum.EAC_PRISON_SECURITYOFF_Name), MyMissionID.EAC_PRISON_SECURITYOFF, (MyTextsWrapperEnum.EAC_PRISON_SECURITYOFF_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_OPENACCESS }, new List <uint> { (uint)EntityID.HubHack }, new List <uint> { (uint)EntityID.HubHackGenerator }, false, false ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_PRISON_1000, HudName = MyTextsWrapperEnum.HudHub }; takeOffSecurityCircuit.OnMissionLoaded += OntakeOffSecuritypartLoaded;//zapne svetlo m_objectives.Add(takeOffSecurityCircuit); //11 var approachMarcusCell = new MyUseObjective( (MyTextsWrapperEnum.EAC_PRISON_MARCUSCELL_Name), MyMissionID.EAC_PRISON_MARCUSCELL, (MyTextsWrapperEnum.EAC_PRISON_MARCUSCELL_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_SECURITYOFF }, new MyMissionLocation(baseSector, (uint)EntityID.MarcusCellLocation), MyTextsWrapperEnum.HoldToMoveMarcus, MyTextsWrapperEnum.Actor_Marcus, MyTextsWrapperEnum.Moving, 4000, MyUseObjectiveType.Taking ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudMarcus }; approachMarcusCell.OnMissionLoaded += OnapproachMarcusLoaded; m_objectives.Add(approachMarcusCell); var marcusLoaded = new MyObjectiveDialog( MyMissionID.EAC_PRISON_MARCUSDIALOG, null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_MARCUSCELL }, MyDialogueEnum.EAC_PRISON_1200 ) { SaveOnSuccess = true }; marcusLoaded.OnMissionLoaded += OnMarcusLoadedLoaded; m_objectives.Add(marcusLoaded); var weHaveCompany = new MyObjectiveDialog( MyMissionID.EAC_PRISON_WE_HAVE_COMPANY, null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_MARCUSDIALOG }, MyDialogueEnum.EAC_PRISON_1250 ) { SaveOnSuccess = false }; weHaveCompany.OnMissionLoaded += OnWeHaveCompanyLoaded; m_objectives.Add(weHaveCompany); //12 var findMarcusSmallShip = new MyUseObjective( (MyTextsWrapperEnum.EAC_PRISON_COVERMARCUS_Name), MyMissionID.EAC_PRISON_COVERMARCUS, (MyTextsWrapperEnum.EAC_PRISON_COVERMARCUS_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_WE_HAVE_COMPANY }, new MyMissionLocation(baseSector, (uint)EntityID.MarcusShipDetector), MyTextsWrapperEnum.HoldToMoveMarcus, MyTextsWrapperEnum.Actor_Marcus, MyTextsWrapperEnum.Moving, 4000, MyUseObjectiveType.Putting ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudShip }; // destroySolarDefence.OnMissionSuccess += ToHangarSubmissionSuccess; m_objectives.Add(findMarcusSmallShip); findMarcusSmallShip.OnMissionSuccess += OnSuccesfindMarcusSmallShip; //13 var equipMarcus = new MyUseObjective( (MyTextsWrapperEnum.EAC_PRISON_GETARMS_Name), MyMissionID.EAC_PRISON_GETARMS, (MyTextsWrapperEnum.EAC_PRISON_GETARMS_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_COVERMARCUS }, new MyMissionLocation(baseSector, (uint)EntityID.CargoForMarcus), MyTextsWrapperEnum.HoldToMoveWeapons, MyTextsWrapperEnum.Actor_Marcus, MyTextsWrapperEnum.Moving, 4000 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudEquipment }; // destroySolarDefence.OnMissionSuccess += ToHangarSubmissionSuccess; m_objectives.Add(equipMarcus); equipMarcus.OnMissionSuccess += OnEquipMarcussSucces; equipMarcus.OnMissionLoaded += EquipMarcusOnOnMissionLoaded; //14 var fightOutStation = new MyObjective( (MyTextsWrapperEnum.EAC_PRISON_FIGHTOUT_Name), MyMissionID.EAC_PRISON_FIGHTOUT, (MyTextsWrapperEnum.EAC_PRISON_FIGHTOUT_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_GETARMS }, new MyMissionLocation(baseSector, (uint)EntityID.StationDummy) ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_PRISON_1300, SuccessDialogId = MyDialogueEnum.EAC_PRISON_1400, HudName = MyTextsWrapperEnum.Nothing }; fightOutStation.OnMissionLoaded += fightOutStation_OnMissionLoaded; fightOutStation.OnMissionSuccess += fightOutStation_OnMissionSuccess; m_objectives.Add(fightOutStation); //15 var CrushRemainingShips = new MyObjectiveDestroy( (MyTextsWrapperEnum.EAC_PRISON_CRUSHREINFORCEMENTS_Name), MyMissionID.EAC_PRISON_CRUSHREINFORCEMENTS, (MyTextsWrapperEnum.EAC_PRISON_CRUSHREINFORCEMENTS_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_FIGHTOUT }, new List <uint> { }, // entities needed to kill m_15toKillSpawnpoints, // spawnpoint from which bots must be killed false // don't show marks on entities (not from spawnpoint) ) { SaveOnSuccess = true, }; m_objectives.Add(CrushRemainingShips); //16 var GetToMeetingPoint = new MyObjective( (MyTextsWrapperEnum.EAC_PRISON_MEETINGPOINT_Name), MyMissionID.EAC_PRISON_MEETINGPOINT, (MyTextsWrapperEnum.EAC_PRISON_MEETINGPOINT_Description), null, this, new MyMissionID[] { MyMissionID.EAC_PRISON_CRUSHREINFORCEMENTS }, new MyMissionLocation(baseSector, MyMissionLocation.MADELYN_HANGAR), radiusOverride: MyMissionLocation.MADELYN_HANGAR_RADIUS ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_PRISON_1500, SuccessDialogId = MyDialogueEnum.EAC_PRISON_1600, HudName = MyTextsWrapperEnum.HudMeetingPoint }; m_objectives.Add(GetToMeetingPoint); }
public MyJunkyardConvinceMission() { ID = MyMissionID.JUNKYARD_CONVINCE; /* ID must be added to MyMissions.cs */ Name = MyTextsWrapperEnum.JUNKYARD_CONVINCE; Description = MyTextsWrapperEnum.JUNKYARD_CONVINCE_Description; //"Convince the Smuggler to join you in your mission \n" DebugName = new StringBuilder("08a-Junkyard"); // Name of mission Flags = MyMissionFlags.Story; AchievementName = MySteamAchievementNames.Mission08_JunkyardDuncan; MyMwcVector3Int baseSector = new MyMwcVector3Int(2567538, 0, -172727); // Story sector of the script - i.e. (-2465,0,6541) Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point - must by typecasted to uint and referenced from EntityID enum RequiredMissions = new MyMissionID[] { MyMissionID.LAST_HOPE }; // IDs of missions required to make this mission available RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_RETURN_TO_MS }; RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN, }; #region Objectives m_objectives = new List <MyObjective>(); // Creating of list of submissions // ----- objectives ----- m_objective01FindInformator = new MyMeetObjective( // One member of that list - its type defines the type of submission - MySubmission means fly to the dummypoint to success. Here it is var so you cannot call methods on it (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FIND_INFORMATOR_Name), // Name of the submission MyMissionID.JUNKYARD_CONVINCE_FIND_INFORMATOR, // ID of the submission - must be added to MyMissions.cs (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FIND_INFORMATOR_Description), // Description of the submission this, new MyMissionID[] { }, // ID of submissions required to make this submission available - it is clear so this submission is the starting submission null, "RavenGirl", 250, 1.00f, startDialogueId: MyDialogueEnum.JUNKYARD_CONVINCE_0100_INTRODUCE ) { // False means do not save game in that checkpoint SaveOnSuccess = false, FollowMe = false }; m_objective01FindInformator.OnMissionLoaded += O01FindInformatorLoaded; m_objectives.Add(m_objective01FindInformator); m_objective01BFindInformator = new MyObjectiveDialog( MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_FIND_INFORMATOR_Name, MyMissionID.JUNKYARD_CONVINCE_D_FIND_INFORMATOR, MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_FIND_INFORMATOR_Description, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_FIND_INFORMATOR }, dialogId: MyDialogueEnum.JUNKYARD_CONVINCE_0200_INFORMATOR ) { SaveOnSuccess = false, }; m_objective01BFindInformator.OnMissionLoaded += O01BFindInformatorLoaded; m_objective01BFindInformator.OnMissionSuccess += O01BFindInformatorSuccess; m_objectives.Add(m_objective01BFindInformator); m_objective02FindSmuggler = new MyObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FIND_SMUGGLER_Name), MyMissionID.JUNKYARD_CONVINCE_FIND_SMUGGLER, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FIND_SMUGGLER_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_D_FIND_INFORMATOR }, new MyMissionLocation(baseSector, (uint)EntityID.FindSmuggler) // ID of dummy point of checkpoint ) { SaveOnSuccess = false, SuccessDialogId = MyDialogueEnum.JUNKYARD_CONVINCE_0300_RUN, HudName = MyTextsWrapperEnum.HudManjeet }; m_objective02FindSmuggler.OnMissionLoaded += O02FindSmugglerLoaded; m_objective02FindSmuggler.OnMissionSuccess += O2FindSmugglerSuccess; m_objectives.Add(m_objective02FindSmuggler); m_objective04FollowSmuggler = new MyMeetObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FOLLOW_SMUGGLER_Name), MyMissionID.JUNKYARD_CONVINCE_FOLLOW_SMUGGLER, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FOLLOW_SMUGGLER_Description), this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_FIND_SMUGGLER }, null, (uint)EntityID.Smuggler, 300, 1.00f ) { SaveOnSuccess = false, FollowMe = false }; m_objective04FollowSmuggler.OnMissionLoaded += O04FollowSmugglerLoaded; m_objective04FollowSmuggler.OnMissionSuccess += O04FollowSmugglerSuccess; m_objectives.Add(m_objective04FollowSmuggler); m_objective04DFollowSmuggler = new MyObjectiveDialog( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_FOLLOW_SMUGGLER_Name), MyMissionID.JUNKYARD_CONVINCE_D_FOLLOW_SMUGGLER, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_FOLLOW_SMUGGLER_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_FOLLOW_SMUGGLER }, dialogId: MyDialogueEnum.JUNKYARD_CONVINCE_0500_CATCHED ) { SaveOnSuccess = false, }; m_objectives.Add(m_objective04DFollowSmuggler); m_objective04DFollowSmuggler.OnMissionLoaded += O04DFollowSmugglerLoaded; m_objective04DFollowSmuggler.OnMissionSuccess += O04DFollowSmugglerSuccess; m_objective05GetCloserToEnemy = new MyObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FLY_TO_ENEMY_Name), MyMissionID.JUNKYARD_CONVINCE_FLY_TO_ENEMY, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FLY_TO_ENEMY_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_D_FOLLOW_SMUGGLER }, new MyMissionLocation(baseSector, (uint)EntityID.FlyToEnemy), radiusOverride: 500f ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.Nothing }; m_objective05GetCloserToEnemy.OnMissionLoaded += O05GetCloserToEnemyLoaded; m_objectives.Add(m_objective05GetCloserToEnemy); m_objective05MetZappasFirstGangman = new MyObjectiveDialog( MyMissionID.JUNKYARD_CONVINCE_MEET_GANGMAN, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_FLY_TO_ENEMY }, dialogId: MyDialogueEnum.JUNKYARD_CONVINCE_0650_MET_ZAPPA_GUARD ); m_objectives.Add(m_objective05MetZappasFirstGangman); m_objective05MetZappasFirstGangman.OnMissionLoaded += O05MetZappasFirstGangmanLoaded; m_objective05MetZappasFirstGangman.OnMissionSuccess += O05MetZappasFirstGangmanSuccess; m_objective06KillWaves = new MyDestroyWavesObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_KILL_WAVES_Name), MyMissionID.JUNKYARD_CONVINCE_KILL_WAVES, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_KILL_WAVES_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_MEET_GANGMAN }, null, null, null, null, 4 ) { SaveOnSuccess = false }; m_objective06KillWaves.AddWave(new List <uint> { (uint)EntityID.SP1_1, (uint)EntityID.SP1_2, (uint)EntityID.SP1_3, (uint)EntityID.SP1_4 }); m_objective06KillWaves.AddWave(new List <uint> { (uint)EntityID.SP2_1, (uint)EntityID.SP2_2 }); m_objective06KillWaves.AddWave(new List <uint> { (uint)EntityID.SP3_1, (uint)EntityID.SP3_2, (uint)EntityID.SP3_3 }); m_objective06KillWaves.OnMissionLoaded += O06KillWavesLoaded; m_objective06KillWaves.OnMissionSuccess += O06KillWavesSuccess; m_objectives.Add(m_objective06KillWaves); m_objective07SpeakWithMomo = new MyMeetObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_SPEAK_WITH_MOMO_Name), MyMissionID.JUNKYARD_CONVINCE_SPEAK_WITH_MOMO, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_SPEAK_WITH_MOMO_Description), this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_KILL_WAVES }, null, (uint?)null, 500, 1.00f ) { SaveOnSuccess = false, FollowMe = false }; m_objectives.Add(m_objective07SpeakWithMomo); m_objective07DSpeakWithMomo = new MyObjectiveDialog( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_SPEAK_WITH_MOMO_Name), MyMissionID.JUNKYARD_CONVINCE_D_SPEAK_WITH_MOMO, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_SPEAK_WITH_MOMO_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_SPEAK_WITH_MOMO }, dialogId: MyDialogueEnum.JUNKYARD_CONVINCE_0900_THE_MOMO ) { SaveOnSuccess = false }; m_objectives.Add(m_objective07DSpeakWithMomo); m_objective07DSpeakWithMomo.OnMissionLoaded += O07DSpeakWithMomoLoaded; m_objective07DSpeakWithMomo.OnMissionSuccess += O07DSpeakWithMomoSuccess; m_objective08FightMomo = new MyObjectiveDestroy( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FIGHT_MOMO_Name), MyMissionID.JUNKYARD_CONVINCE_FIGHT_MOMO, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FIGHT_MOMO_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_D_SPEAK_WITH_MOMO }, null, new List <uint> { (uint)EntityID.SP4_1, (uint)EntityID.SP4_2, (uint)EntityID.MomoZappaSP }, true ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.Nothing }; m_objective08FightMomo.OnMissionLoaded += O08FightMomoLoaded; m_objectives.Add(m_objective08FightMomo); m_objective09ReturnToSmuggler = new MyMeetObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_RETURN_TO_SMUGGLER_Name), MyMissionID.JUNKYARD_CONVINCE_RETURN_TO_SMUGGLER, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_RETURN_TO_SMUGGLER_Description), this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_FIGHT_MOMO }, null, (uint)EntityID.Smuggler, 300, 1.00f //startDialogueId: MyDialogueEnum.JUNKYARD_CONVINCE_1000_LAST_OF_THEM ) { SaveOnSuccess = true, FollowMe = false }; m_objective09ReturnToSmuggler.OnMissionLoaded += O09ReturnToSmugglerLoaded; m_objectives.Add(m_objective09ReturnToSmuggler); m_objective09DReturnToSmuggler = new MyObjectiveDialog( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_RETURN_TO_SMUGGLER_Name), MyMissionID.JUNKYARD_CONVINCE_D_RETURN_TO_SMUGGLER, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_RETURN_TO_SMUGGLER_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_RETURN_TO_SMUGGLER }, dialogId: MyDialogueEnum.JUNKYARD_CONVINCE_1100_FIGHT_ENDS ) { SaveOnSuccess = false }; m_objectives.Add(m_objective09DReturnToSmuggler); m_objective09DReturnToSmuggler.OnMissionLoaded += O09DReturnToSmugglerLoaded; m_objective09DReturnToSmuggler.OnMissionSuccess += O09DReturnToSmugglerSuccess; m_objective10FindBombDealer = new MyMeetObjective( // One member of that list - its type defines the type of submission - MySubmission means fly to the dummypoint to success. Here it is var so you cannot call methods on it (MyTextsWrapperEnum.JUNKYARD_CONVINCE_GO_TO_BOMB_DEALER_Name), // Name of the submission MyMissionID.JUNKYARD_CONVINCE_GO_TO_BOMB_DEALER, // ID of the submission - must be added to MyMissions.cs (MyTextsWrapperEnum.JUNKYARD_CONVINCE_GO_TO_BOMB_DEALER_Description), // Description of the submission this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_D_RETURN_TO_SMUGGLER }, // ID of submissions required to make this submission available - it is clear so this submission is the starting submission null, (uint)EntityID.BombDealer, 300, 1.00f ) { SaveOnSuccess = false, RequiredActors = new MyActorEnum[] { MyActorEnum.TARJA, MyActorEnum.VALENTIN }, FollowMe = false }; m_objective10FindBombDealer.OnMissionLoaded += O10FindBombDealerLoaded; m_objectives.Add(m_objective10FindBombDealer); m_objective10DFindBombDealer = new MyObjectiveDialog( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_GO_TO_BOMB_DEALER_Name), MyMissionID.JUNKYARD_CONVINCE_D_GO_TO_BOMB_DEALER, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_GO_TO_BOMB_DEALER_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_GO_TO_BOMB_DEALER }, dialogId: MyDialogueEnum.JUNKYARD_CONVINCE_1300_BOMB_DEALER ) { SaveOnSuccess = false }; m_objectives.Add(m_objective10DFindBombDealer); m_objective10DFindBombDealer.OnMissionLoaded += O10DFindBombDealerLoaded; m_objective10DFindBombDealer.OnMissionSuccess += O10DFindBombDealerSuccess; m_objective11GetToMarcus = new MyMeetObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_GO_TO_MARCUS_Name), MyMissionID.JUNKYARD_CONVINCE_GO_TO_MARCUS, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_GO_TO_MARCUS_Description), this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_D_GO_TO_BOMB_DEALER }, null, "Marcus", 300, 1.00f ) { SaveOnSuccess = true, FollowMe = false, }; m_objective11GetToMarcus.OnMissionLoaded += O11GetToMarcusLoaded; m_objective11GetToMarcus.OnMissionSuccess += O11GetToMarcusSuccess; m_objectives.Add(m_objective11GetToMarcus); var objective11DGetToMarcus = new MyObjectiveDialog( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_GO_TO_MARCUS_Name), MyMissionID.JUNKYARD_CONVINCE_D_GO_TO_MARCUS, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_GO_TO_MARCUS_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_GO_TO_MARCUS }, dialogId: MyDialogueEnum.JUNKYARD_CONVINCE_1400_ARRIVED_AT_MARCUS ) { SaveOnSuccess = false }; m_objectives.Add(objective11DGetToMarcus); m_objective12BrFight = new MyDestroyWavesObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_BR_FIGHT_Name), MyMissionID.JUNKYARD_CONVINCE_BR_FIGHT, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_BR_FIGHT_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_D_GO_TO_MARCUS }, new List <uint> { (uint)EntityID.BR_SP_1, (uint)EntityID.BR_SP_2, (uint)EntityID.BR_SP_3, (uint)EntityID.BR_SP_4, (uint)EntityID.BR_SP_Boss } ) { SaveOnSuccess = false, StartDialogId = MyDialogueEnum.JUNKYARD_CONVINCE_1500_GANGSTER_FIGHT_STARTED, SuccessDialogId = MyDialogueEnum.JUNKYARD_CONVINCE_1600_GO_TO_MS }; m_objective12BrFight.OnMissionLoaded += O12BRFightLoaded; m_objective12BrFight.OnMissionSuccess += O12BRFightSuccess; m_objective12BrFight.AddWave(m_killWavesSecond1); m_objective12BrFight.AddWave(m_killWavesSecond2); m_objective12BrFight.AddWave(m_killWavesSecond3); m_objective12BrFight.AddWave(m_killWavesSecond4); m_objectives.Add(m_objective12BrFight); m_objective13FlyToMS = new MyObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_RETURN_TO_MS_Name), MyMissionID.JUNKYARD_CONVINCE_RETURN_TO_MS, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_RETURN_TO_MS_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_BR_FIGHT }, new MyMissionLocation(baseSector, MyMissionLocation.MADELYN_HANGAR), radiusOverride: 300f ) { SaveOnSuccess = true, SuccessDialogId = MyDialogueEnum.JUNKYARD_CONVINCE_1700_FINALE, HudName = MyTextsWrapperEnum.HudMadelynsSapho }; m_objectives.Add(m_objective13FlyToMS); #endregion m_spawns.AddRange(m_killWavesSecond1); m_spawns.AddRange(m_killWavesSecond2); m_spawns.AddRange(m_killWavesSecond3); m_spawns.AddRange(m_killWavesSecond4); }
public MyTradeStationEACMission() { ID = MyMissionID.TRADE_STATION_EAC; /* ID must be added to MyMissions.cs */ DebugName = new StringBuilder("Trade station - EAC"); // Nazev mise Name = MyTextsWrapperEnum.TRADE_STATION_EAC; Description = MyTextsWrapperEnum.EmptyDescription; MyMwcVector3Int baseSector = new MyMwcVector3Int(5944222, 0, -3414281); // Story sector of the script Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Startmy point129158 RequiredMissions = new MyMissionID[] { }; // mise ktere musi byt splneny pred prijetim teto mise RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.TRADE_STATION_EAC_RETURN }; RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; m_objectives = new List <MyObjective>(); // Creating of list of submissions // START DEFINICE SUBMISE m_casino = new MyObjective( // One member of that list - je to MySubmission takze cilem je doletet do checkpointu new StringBuilder("Get into the station"), // nazev submise MyMissionID.TRADE_STATION_EAC_CASINO, // id submise new StringBuilder(""), // popis submise null, this, new MyMissionID[] { }, // ID submisi ktere musi byt splneny - je to prazdne takze je to prvni submise new MyMissionLocation(baseSector, (uint)EntityID.Casino_Dummy) // ID of dummy point of checkpoint ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudStation }; // nastaveni save na checkpointu nebo ne m_objectives.Add(m_casino); // pridani do seznamu submisi var talkWith = new MyObjectiveDialog( (MyTextsWrapperEnum.TRADE_STATION_EAC_DIALOGUE_Name), MyMissionID.TRADE_STATION_EAC_DIALOGUE, (MyTextsWrapperEnum.TRADE_STATION_EAC_DIALOGUE_Description), null, this, new MyMissionID[] { MyMissionID.TRADE_STATION_EAC_CASINO } ) { SaveOnSuccess = false }; m_objectives.Add(talkWith); m_hospital = new MyObjectiveEnablePrefabs( new StringBuilder("Activate the central defense system"), MyMissionID.TRADE_STATION_EAC_HOSPITAL, new StringBuilder(""), null, this, new MyMissionID[] { MyMissionID.TRADE_STATION_EAC_DIALOGUE }, null, new List <uint> { (uint)EntityID.PC_Red }, new List <uint> { (uint)EntityID.Central_Defense_System } ) { HudName = MyTextsWrapperEnum.HudSecurityHub }; m_objectives.Add(m_hospital); /* m_hospital = new MyObjective( // One member of that list - je to MySubmission takze cilem je doletet do checkpointu * new StringBuilder("Reset station central defense system"), // nazev submise * MyMissionID.TRADE_STATION_EAC_HOSPITAL, // id submise * new StringBuilder("Reset station central defense system"), // popis submise * null, * this, * new MyMissionID[] { MyMissionID.TRADE_STATION_EAC_DIALOGUE }, // ID submisi ktere musi byt splneny - je to prazdne takze je to prvni submise * new MyMissionLocation(baseSector, (uint)EntityID.PC_Red) // ID of dummy point of checkpoint * ) { SaveOnSuccess = false }; // nastaveni save na checkpointu nebo ne * m_objectives.Add(m_hospital); // pridani do seznamu submisi*/ var Return = new MyObjective( // One member of that list - je to MySubmission takze cilem je doletet do checkpointu new StringBuilder("Return to Madelyn"), // nazev submise MyMissionID.TRADE_STATION_EAC_RETURN, // id submise new StringBuilder(""), // popis submise null, this, new MyMissionID[] { MyMissionID.TRADE_STATION_EAC_HOSPITAL }, // ID submisi ktere musi byt splneny - je to prazdne takze je to prvni submise new MyMissionLocation(baseSector, MyMissionLocation.MADELYN_HANGAR), // ID of dummy point of checkpoint radiusOverride: MyMissionLocation.MADELYN_HANGAR_RADIUS ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudMadelynsSapho }; // nastaveni save na checkpointu nebo ne m_objectives.Add(Return); // pridani do seznamu submisi m_hospital.OnMissionSuccess += DefenseON; m_casino.OnMissionSuccess += AttackBegin; }
public MyPirateBaseMission() { ID = MyMissionID.PIRATE_BASE; /* ID must be added to MyMissions.cs */ DebugName = new StringBuilder("04-Pirate base"); Name = MyTextsWrapperEnum.PIRATE_BASE; Description = MyTextsWrapperEnum.PIRATE_BASE_Description; Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(190921, 0, 2152692); /* sector where the mission is located */ Location = new MyMissionLocation(baseSector, 228782); RequiredMissions = new MyMissionID[] { MyMissionID.BARTHS_MOON_CONVINCE }; RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.PIRATE_BASE_ALLY_ARRIVED }; RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN }; m_objectives = new List<MyObjective>(); // == Objective 01 == var travel = new MyObjective( (MyTextsWrapperEnum.PIRATE_BASE_TRAVEL_TO_BASE_Name), MyMissionID.PIRATE_BASE_TRAVEL_TO_BASE, (MyTextsWrapperEnum.PIRATE_BASE_TRAVEL_TO_BASE_Description), null, this, new MyMissionID[] { }, new MyMissionLocation(baseSector, (uint)EntityID.FIND_PIRATE_BASE_LOCATION) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.Nothing }; travel.Components.Add(new MySpawnpointWaves((uint)EntityID.AMBUSH_1_DETECTOR, 0, new List<uint[]> { new uint[] { (uint)EntityID.AMBUSH_1_SPAWNPOINT_A }, new uint[] { (uint)EntityID.AMBUSH_1_SPAWNPOINT_B } })); travel.Components.Add(new MySpawnpointWaves((uint)EntityID.AMBUSH_2_DETECTOR, 0, new List<uint[]> { new uint[] { (uint)EntityID.AMBUSH_2_SPAWNPOINT_A }, new uint[] { (uint)EntityID.AMBUSH_2_SPAWNPOINT_B } })); travel.Components.Add(new MySpawnpointWaves((uint)EntityID.AMBUSH_3_DETECTOR, 0, new List<uint[]> { new uint[] { (uint)EntityID.AMBUSH_3_SPAWNPOINT_A }, new uint[] { (uint)EntityID.AMBUSH_3_SPAWNPOINT_B } })); travel.Components.Add(new MySpawnpointWaves((uint)EntityID.AMBUSH_4_DETECTOR, 0, new List<uint[]> { new uint[] { (uint)EntityID.AMBUSH_4_SPAWNPOINT_A }, new uint[] { (uint)EntityID.AMBUSH_4_SPAWNPOINT_B } })); travel.Components.Add(new MySpawnpointWaves((uint)EntityID.AMBUSH_5_DETECTOR, 0, new List<uint[]> { new uint[] { (uint)EntityID.AMBUSH_5_SPAWNPOINT_A }, new uint[] { (uint)EntityID.AMBUSH_5_SPAWNPOINT_B } })); travel.Components.Add(new MySpawnpointWaves((uint)EntityID.AMBUSH_6_DETECTOR, 0, new List<uint[]> { new uint[] { (uint)EntityID.AMBUSH_6_SPAWNPOINT_A }, new uint[] { (uint)EntityID.AMBUSH_6_SPAWNPOINT_B } })); //travel.OnMissionSuccess += ArrivedToBase; travel.OnMissionLoaded += Travel_OnMissionLoaded; travel.OnMissionCleanUp += Travel_OnMissionUnload; m_objectives.Add(travel); // == Objective 02 == var speakWithPirates = new MyMeetObjective( (MyTextsWrapperEnum.PIRATE_BASE_SPEAK_WITH_PIRATES_Name), MyMissionID.PIRATE_BASE_SPEAK_WITH_PIRATES, (MyTextsWrapperEnum.PIRATE_BASE_SPEAK_WITH_PIRATES_Description), this, new MyMissionID[] { MyMissionID.PIRATE_BASE_TRAVEL_TO_BASE }, null, (uint)EntityID.PIRATE_LEADER, 300) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudPirateCaptain }; speakWithPirates.OnMissionLoaded += SpeakWithPirates_OnMissionLoaded; m_objectives.Add(speakWithPirates); // == Objective 03 == var listenToCaptain = new MyObjectiveDialog( MyMissionID.PIRATE_BASE_LISTEN_TO_CAPTAIN, null, this, new MyMissionID[] { MyMissionID.PIRATE_BASE_SPEAK_WITH_PIRATES }, MyDialogueEnum.PIRATE_BASE_0600); listenToCaptain.OnMissionLoaded += ListenToCaptain_OnMissionLoaded; listenToCaptain.OnMissionCleanUp += ListenToCaptain_OnMissionUnload; m_objectives.Add(listenToCaptain); // == Objective 04 == var prepareForDefense = new MyObjective( (MyTextsWrapperEnum.PIRATE_BASE_PREPARE_FOR_DEFENSE_Name), MyMissionID.PIRATE_BASE_PREPARE_FOR_DEFENSE, (MyTextsWrapperEnum.PIRATE_BASE_PREPARE_FOR_DEFENSE_Description), null, this, new MyMissionID[] { MyMissionID.PIRATE_BASE_LISTEN_TO_CAPTAIN }, new MyMissionLocation(baseSector, (uint)EntityID.PREPARE_FOR_DEFENSE_LOCATION), startDialogId: MyDialogueEnum.PIRATE_BASE_0800) { SaveOnSuccess = true }; prepareForDefense.Components.Add(new MySpawnpointWaves((uint)EntityID.PREPARE_DETECTOR, 0, new List<uint[]> { new uint[] { (uint)EntityID.PREPARE_SPAWNPOINT0, (uint)EntityID.PREPARE_SPAWNPOINT1, (uint)EntityID.PREPARE_SPAWNPOINT2 } })); prepareForDefense.OnMissionLoaded += PrepareForDefense_OnMissionLoaded; m_objectives.Add(prepareForDefense); // == Objective 05 == m_getTurrets = new MyUseObjective( (MyTextsWrapperEnum.PIRATE_BASE_GET_TURRETS_Name), MyMissionID.PIRATE_BASE_GET_TURRETS, (MyTextsWrapperEnum.PIRATE_BASE_GET_TURRETS_Description), null, this, new MyMissionID[] { MyMissionID.PIRATE_BASE_PREPARE_FOR_DEFENSE }, new MyMissionLocation(baseSector, (uint)EntityID.TURRET_PREFABS_DUMMY), MyTextsWrapperEnum.PressToTakeTurrets, MyTextsWrapperEnum.Turrets, MyTextsWrapperEnum.TransferInProgress, 3000, objectiveType: MyUseObjectiveType.Taking) { SaveOnSuccess = true }; m_getTurrets.OnMissionLoaded += GetTurrets_OnMissionLoaded; m_getTurrets.OnMissionSuccess += GetTurrets_OnMissionSuccess; m_objectives.Add(m_getTurrets); // == Objective 06 == m_buildDefensesObjective = new MyTimedObjective( (MyTextsWrapperEnum.PIRATE_BASE_DEFENSE_SETUP_Name), MyMissionID.PIRATE_BASE_DEFENSE_SETUP, (MyTextsWrapperEnum.PIRATE_BASE_DEFENSE_SETUP_Description), null, this, new MyMissionID[] { MyMissionID.PIRATE_BASE_GET_TURRETS }, new TimeSpan(0, 0, minutes: 5, seconds: 0) ) { SaveOnSuccess = true }; m_buildDefensesObjective.OnMissionLoaded += BuildDefenses_OnMissionLoaded; m_buildDefensesObjective.OnMissionUpdate += BuildDefenses_OnMissionUpdate; m_buildDefensesObjective.OnMissionCleanUp += BuildDefenses_OnMissionUnloaded; m_buildDefensesObjective.OnMissionSuccess += BuildDefenses_OnMissionSuccess; m_objectives.Add(m_buildDefensesObjective); // == Objective 07 == m_defendObjective = new MyTimedObjective( (MyTextsWrapperEnum.PIRATE_BASE_DEFEND_Name), MyMissionID.PIRATE_BASE_DEFEND, (MyTextsWrapperEnum.PIRATE_BASE_DEFEND_Description), null, this, new MyMissionID[] { MyMissionID.PIRATE_BASE_DEFENSE_SETUP }, new TimeSpan(0, 0, minutes: 5, seconds: 0), startDialogId: MyDialogueEnum.PIRATE_BASE_0900 ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudGenerator }; m_defendObjective.OnMissionLoaded += Defend_OnMissionLoaded; m_defendObjective.OnMissionCleanUp += Defend_OnMissionUnloaded; m_defendObjective.OnMissionUpdate += Defend_OnMissionUpdate; m_defendObjective.OnMissionSuccess += Defend_OnMissionSuccess; m_defendObjective.Components.Add(new MyHeadshake((3*60)*1000, MyHeadshake.DefaultShaking)); m_defendObjective.Components.Add(new MyHeadshake((6*60)*1000, MyHeadshake.DefaultShaking)); m_defendObjective.Components.Add(new MyHeadshake((9*60)*1000, MyHeadshake.DefaultShaking)); m_objectives.Add(m_defendObjective); // == Objective 08 == m_allyArrivedObjective = new MyObjective( (MyTextsWrapperEnum.PIRATE_BASE_ALLY_ARRIVED_Name), MyMissionID.PIRATE_BASE_ALLY_ARRIVED, (MyTextsWrapperEnum.PIRATE_BASE_ALLY_ARRIVED_Description), null, this, new MyMissionID[] { MyMissionID.PIRATE_BASE_DEFEND }, null, startDialogId: MyDialogueEnum.PIRATE_BASE_1100) { SaveOnSuccess = true }; m_allyArrivedObjective.OnMissionLoaded += AllyArrived_OnMissionLoaded; m_allyArrivedObjective.OnMissionCleanUp += AllyArrived_OnMissionUnload; m_allyArrivedObjective.OnMissionUpdate += AllyArrived_OnMissionUpdate; m_allyArrivedObjective.OnMissionSuccess += AllyArrived_OnMissionSuccess; m_objectives.Add(m_allyArrivedObjective); /* var returnBackToMotherShip = new MyObjective( new StringBuilder("Return to your mothership"), MyMissionID.PIRATE_BASE_RETURN_BACK_TO_MOTHERSHIP, new StringBuilder(""), null, this, new MyMissionID[] { MyMissionID.PIRATE_BASE_ALLY_ARRIVED }, new MyMissionLocation(baseSector, (uint)EntityID.MADELYN_DUMMY) ) { SaveOnSuccess = true }; m_objectives.Add(returnBackToMotherShip); */ }
public MyJunkyardEACAmbushMission() { ID = MyMissionID.JUNKYARD_EAC_AMBUSH; /* ID must be added to MyMissions.cs */ DebugName = new StringBuilder("13-EAC ambush"); // Name of mission Name = MyTextsWrapperEnum.JUNKYARD_EAC_AMBUSH; Description = MyTextsWrapperEnum.JUNKYARD_EAC_AMBUSH_Description; Flags = MyMissionFlags.Story; RequiredActors = new MyActorEnum[] { MyActorEnum.MADELYN, MyActorEnum.MARCUS, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; MyMwcVector3Int baseSector = new MyMwcVector3Int(2567538, 0, -172727); // Story sector of the script - i.e. (-2465,0,6541) Location = new MyMissionLocation(baseSector, (uint)EntityID.PlayerStart); // Starting dummy point - must by typecasted to uint and referenced from EntityID enum RequiredMissions = new MyMissionID[] { MyMissionID.RESEARCH_VESSEL }; // IDs of missions required to make this mission available RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_DEFEND_MADELYN }; Components.Add(new MySpawnpointLimiter(m_spawns, 7)); #region Objectives m_objectives = new List<MyObjective>(); // Creating of list of submissions var flyToManjeet = new MyMeetObjective( MyTextsWrapperEnum.EAC_AMBUSH_FLY_TO_MANJEET, MyMissionID.JUNKYARD_EAC_AMBUSH_FLY_MANJEET, MyTextsWrapperEnum.EAC_AMBUSH_FLY_TO_MANJEET_DESC, this, new MyMissionID[] { }, null, (uint)EntityID.FlyToManjeet, 100, 0.25f, null, MyDialogueEnum.EAC_AMBUSH_0100_INTRO ) { SaveOnSuccess = false, FollowMe = false }; flyToManjeet.OnMissionLoaded += FlyToManjeet_Loaded; m_objectives.Add(flyToManjeet); var speakToManjeet = new MyObjectiveDialog( MyMissionID.JUNKYARD_EAC_AMBUSH_TALK_RANIJT, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_FLY_MANJEET }, MyDialogueEnum.EAC_AMBUSH_0200_MANJEET ) { SaveOnSuccess = false }; speakToManjeet.OnMissionLoaded += SpeakToManjeet_Loaded; m_objectives.Add(speakToManjeet); m_backToMadelyn = new MyObjective( MyTextsWrapperEnum.EAC_AMBUSH_GO_BACK_TO_MADELYN, MyMissionID.JUNKYARD_EAC_AMBUSH_GO_BACK_TO_MADELYN, MyTextsWrapperEnum.EAC_AMBUSH_GO_BACK_TO_MADELYN_DESC, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_TALK_RANIJT }, new MyMissionLocation(baseSector, (uint)EntityID.GoBackToMadelyn), startDialogId: MyDialogueEnum.EAC_AMBUSH_0300_GUYS_HURRY_UP ) { HudName = MyTextsWrapperEnum.Nothing }; m_backToMadelyn.OnMissionLoaded += BackToMadelyn_Loaded; m_objectives.Add(m_backToMadelyn); m_speakWithPolice = new MyObjective( MyTextsWrapperEnum.Null, MyMissionID.JUNKYARD_EAC_AMBUSH_SPEAK_POLICE, MyTextsWrapperEnum.Null, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_GO_BACK_TO_MADELYN }, null ); m_speakWithPolice.OnMissionLoaded += SpeakWithPolice_Loaded; m_objectives.Add(m_speakWithPolice); m_defendMadelyn = new MyObjectiveDialog( MyTextsWrapperEnum.EAC_AMBUSH_DEFEND_MADELYN1, MyMissionID.JUNKYARD_EAC_AMBUSH_DEFEND_MADELYN_1, MyTextsWrapperEnum.EAC_AMBUSH_DEFEND_MADELYN1_DESC, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_SPEAK_POLICE }, MyDialogueEnum.EAC_AMBUSH_0500_ONE_LITTLE_ISSUE ) { SaveOnSuccess = true }; m_defendMadelyn.OnMissionLoaded += DefendMadelyn_Loaded; m_objectives.Add(m_defendMadelyn); var destroyGenerator = new MyObjectiveDestroy( MyTextsWrapperEnum.EAC_AMBUSH_DESTROY_GENERATOR, MyMissionID.JUNKYARD_EAC_AMBUSH_DESTROY_GENERATOR, MyTextsWrapperEnum.EAC_AMBUSH_DESTROY_GENERATOR_DESC, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_DEFEND_MADELYN_1 }, new List<uint> { (uint)EntityID.DestroyGenerator} ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_AMBUSH_0700_SPLIT_TO_DESTROY_GENERATORS, HudName = MyTextsWrapperEnum.HudDisruptor }; destroyGenerator.OnMissionLoaded += DestroyGenerator_Loaded; destroyGenerator.OnMissionSuccess += DestroyGenerator_Success; m_objectives.Add(destroyGenerator); var returnToMadelyn = new MyTimedReachLocationObjective( MyTextsWrapperEnum.EAC_AMBUSH_RETURN_TO_MADELYN, MyMissionID.JUNKYARD_EAC_AMBUSH_RETUR_TO_MADELYN, MyTextsWrapperEnum.EAC_AMBUSH_RETURN_TO_MADELYN_DESC, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_DESTROY_GENERATOR }, new TimeSpan(0, 0, 45), new MyMissionLocation(baseSector, (uint)EntityID.ReturnToMadelyn) ) { SaveOnSuccess = true, StartDialogId = MyDialogueEnum.EAC_AMBUSH_1000, HudName = MyTextsWrapperEnum.HudMadelynsSapho }; returnToMadelyn.OnMissionLoaded += ReturnToMadelyn_Loaded; m_objectives.Add(returnToMadelyn); m_defendMadelyn2 = new MyObjective( MyTextsWrapperEnum.EAC_AMBUSH_DEFEND_MADELYN2, MyMissionID.JUNKYARD_EAC_AMBUSH_DEFEND_MADELYN, MyTextsWrapperEnum.EAC_AMBUSH_DEFEND_MADELYN2_DESC, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_EAC_AMBUSH_RETUR_TO_MADELYN }, null ) { StartDialogId = MyDialogueEnum.EAC_AMBUSH_1200_1300 }; m_defendMadelyn2.OnMissionLoaded += DefendMadelyn2_Loaded; m_defendMadelyn2.OnMissionUpdate += DefendMadelyn2_Update; m_objectives.Add(m_defendMadelyn2); #endregion }
public MyResearchVesselMission() { ID = MyMissionID.RESEARCH_VESSEL; DebugName = new StringBuilder("12-Eurydice/Osaka"); Name = MyTextsWrapperEnum.RESEARCH_VESSEL; Description = MyTextsWrapperEnum.RESEARCH_VESSEL_Description; Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(4189723, 0, -2201402); Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); RequiredMissions = new MyMissionID[] { MyMissionID.RIME_CONVINCE }; RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_TAKE_FOURTH }; RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; #region Objectives m_objectives = new List<MyObjective>(); var introDialogue = new MyObjectiveDialog( MyMissionID.RESEARCH_VESSEL_INTRO, null, this, new MyMissionID[] { }, MyDialogueEnum.RESEARCH_VESSEL_0100_INTRO ) { SaveOnSuccess = true }; m_objectives.Add(introDialogue); var reachShip = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_REACH_SHIP, MyMissionID.RESEARCH_VESSEL_REACH_SHIP, MyTextsWrapperEnum.RESEARCH_VESSEL_REACH_SHIP_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_INTRO }, new MyMissionLocation(baseSector, (uint)EntityID.DummyReachShip) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudEurydice }; reachShip.OnMissionSuccess += new MissionHandler(ReachShip_Success); m_objectives.Add(reachShip); var checkCargo = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_CARGO, MyMissionID.RESEARCH_VESSEL_CHECK_CARGO, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_CARGO_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_REACH_SHIP }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_1) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudContainer }; m_objectives.Add(checkCargo); var checkCommandRoom = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_COMMAND_ROOM, MyMissionID.RESEARCH_VESSEL_CHECK_COMMAND_ROOM, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_COMMAND_ROOM_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_CARGO }, new MyMissionLocation(baseSector, (uint)EntityID.DummyNearHub1) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudCommandRoom }; checkCommandRoom.OnMissionLoaded += new MissionHandler(checkCommandRoom_OnMissionLoaded); m_objectives.Add(checkCommandRoom); var unlockFirstCargo = new MyObjectiveEnablePrefabs( MyTextsWrapperEnum.RESEARCH_VESSEL_USE_HUB_1, MyMissionID.RESEARCH_VESSEL_USE_HUB_1, MyTextsWrapperEnum.RESEARCH_VESSEL_USE_HUB_1_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_COMMAND_ROOM }, null, new List<uint> { (uint)EntityID.Hub1 }, new List<uint> { (uint)EntityID.Door1 } ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHub }; m_objectives.Add(unlockFirstCargo); var checkLaboratory = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_LABORATORY, MyMissionID.RESEARCH_VESSEL_CHECK_LABORATORY, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_LABORATORY_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_USE_HUB_1 }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_14) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudLab }; m_objectives.Add(checkLaboratory); var takeFirstParts = new MyUseObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_FIRST, MyMissionID.RESEARCH_VESSEL_TAKE_FIRST, MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_FIRST_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_LABORATORY }, new MyMissionLocation(baseSector, (uint)EntityID.Cargo3), MyTextsWrapperEnum.PressToTakeComponent, MyTextsWrapperEnum.Component, MyTextsWrapperEnum.TakingInProgress, 1000, MyUseObjectiveType.Activating, radiusOverride: 50 ) { SaveOnSuccess = true }; takeFirstParts.OnMissionSuccess += TakeFirstParts_Success; m_objectives.Add(takeFirstParts); var checkWarehouse = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_WAREHOUSE, MyMissionID.RESEARCH_VESSEL_CHECK_WAREHOUSE, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_WAREHOUSE_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_TAKE_FIRST }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_4) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudWarehouse }; m_objectives.Add(checkWarehouse); var checkDrillMachineRoom = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_DRILL_ROOM, MyMissionID.RESEARCH_VESSEL_CHECK_DRILL_ROOM, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_DRILL_ROOM_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_WAREHOUSE }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_5) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudDrillRoom }; checkDrillMachineRoom.OnMissionSuccess += new MissionHandler(checkDrillMachineRoom_OnMissionSuccess); m_objectives.Add(checkDrillMachineRoom); var checkFirstHangar = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_FIRST_HANGAR, MyMissionID.RESEARCH_VESSEL_CHECK_FIRST_HANGAR, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_FIRST_HANGAR_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_DRILL_ROOM }, new MyMissionLocation(baseSector, (uint)EntityID.DummyNearHub2) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHangar }; m_objectives.Add(checkFirstHangar); var takeSecondParts = new MyUseObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_SECOND, MyMissionID.RESEARCH_VESSEL_TAKE_SECOND, MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_SECOND_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_FIRST_HANGAR }, new MyMissionLocation(baseSector, (uint)EntityID.Cargo4), MyTextsWrapperEnum.PressToTakeComponent, MyTextsWrapperEnum.Component, MyTextsWrapperEnum.TakingInProgress, 1000, MyUseObjectiveType.Activating, radiusOverride: 50 ) { SaveOnSuccess = true }; takeSecondParts.OnMissionSuccess += TakeSecondParts_Success; m_objectives.Add(takeSecondParts); var useHub2 = new MyObjectiveEnablePrefabs( MyTextsWrapperEnum.RESEARCH_VESSEL_USE_HUB_2, MyMissionID.RESEARCH_VESSEL_USE_HUB_2, MyTextsWrapperEnum.RESEARCH_VESSEL_USE_HUB_2_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_TAKE_SECOND }, null, new List<uint> { (uint)EntityID.Hub2 }, new List<uint> { (uint)EntityID.Door2 } ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHub }; m_objectives.Add(useHub2); var checkSecondHangar = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_SECOND_HANGAR, MyMissionID.RESEARCH_VESSEL_CHECK_SECOND_HANGAR, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_SECOND_HANGAR_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_USE_HUB_2 }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_7) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHangar }; m_objectives.Add(checkSecondHangar); var checkThirdHangar = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_THIRD_HANGAR, MyMissionID.RESEARCH_VESSEL_CHECK_THIRD_HANGAR, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_THIRD_HANGAR_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_SECOND_HANGAR }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_8) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHangar }; m_objectives.Add(checkThirdHangar); var checkSecondWarehouse = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_SECOND_WAREHOUSE, MyMissionID.RESEARCH_VESSEL_CHECK_SECOND_WAREHOUSE, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_SECOND_WAREHOUSE_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_THIRD_HANGAR }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_9) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudWarehouse }; m_objectives.Add(checkSecondWarehouse); var checkGenerator = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_GENERATOR, MyMissionID.RESEARCH_VESSEL_CHECK_GENERATOR, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_GENERATOR_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_SECOND_WAREHOUSE }, new MyMissionLocation(baseSector, (uint)EntityID.DummyNearHub3) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudGeneratorRoom }; m_objectives.Add(checkGenerator); var useHub3 = new MyObjectiveEnablePrefabs( MyTextsWrapperEnum.RESEARCH_VESSEL_USE_HUB_3, MyMissionID.RESEARCH_VESSEL_USE_HUB_3, MyTextsWrapperEnum.RESEARCH_VESSEL_USE_HUB_3_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_GENERATOR }, null, new List<uint> { (uint)EntityID.Hub3 }, new List<uint> { (uint)EntityID.Door3 } ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHub }; useHub3.OnMissionSuccess += new MissionHandler(UseHub3_Success); m_objectives.Add(useHub3); var takeThridProbe = new MyUseObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_THIRD, MyMissionID.RESEARCH_VESSEL_TAKE_THIRD, MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_THIRD_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_USE_HUB_3 }, new MyMissionLocation(baseSector, (uint)EntityID.Cargo2), MyTextsWrapperEnum.PressToTakeComponent, MyTextsWrapperEnum.Component, MyTextsWrapperEnum.TakingInProgress, 1000, MyUseObjectiveType.Activating, radiusOverride: 50 ) { SaveOnSuccess = true }; takeThridProbe.OnMissionSuccess += TakeThirdParts_Success; m_objectives.Add(takeThridProbe); var takeThridProbeDialogue = new MyObjectiveDialog( MyTextsWrapperEnum.Null, MyMissionID.RESEARCH_VESSEL_TAKE_THIRD_DIALOGUE, MyTextsWrapperEnum.Null, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_TAKE_THIRD }, MyDialogueEnum.RESEARCH_VESSEL_0700_THIRDPARTS); m_objectives.Add(takeThridProbeDialogue); var checkCargoAgain = new MyObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_CARGO_AGAIN, MyMissionID.RESEARCH_VESSEL_CHECK_CARGO_AGAIN, MyTextsWrapperEnum.RESEARCH_VESSEL_CHECK_CARGO_AGAIN_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_TAKE_THIRD_DIALOGUE }, new MyMissionLocation(baseSector, (uint)EntityID.checkpoint_1) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudContainer }; checkCargoAgain.OnMissionSuccess += new MissionHandler(CheckCargoAgain_Success); m_objectives.Add(checkCargoAgain); var takeFourthParts = new MyUseObjective( MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_FOURTH, MyMissionID.RESEARCH_VESSEL_TAKE_FOURTH, MyTextsWrapperEnum.RESEARCH_VESSEL_TAKE_FOURTH_Description, null, this, new MyMissionID[] { MyMissionID.RESEARCH_VESSEL_CHECK_CARGO_AGAIN }, new MyMissionLocation(baseSector, (uint)EntityID.Cargo1), MyTextsWrapperEnum.PressToTakeComponent, MyTextsWrapperEnum.Component, MyTextsWrapperEnum.TakingInProgress, 1000, MyUseObjectiveType.Activating, radiusOverride: 50 ) { SaveOnSuccess = false }; takeFourthParts.OnMissionSuccess += TakeFourthParts_Success; m_objectives.Add(takeFourthParts); #endregion }
public MyAlienGateMission() { ID = MyMissionID.ALIEN_GATE; DebugName = new StringBuilder("22-Alien artifact"); Name = MyTextsWrapperEnum.ALIEN_GATE; Description = MyTextsWrapperEnum.ALIEN_GATE_Description; Flags = MyMissionFlags.Story; AchievementName = MySteamAchievementNames.Mission31_AlienGate; MyMwcVector3Int baseSector = new MyMwcVector3Int(-1202900, 0, -112652); // Story sector of the script - i.e. (-2465,0,6541) Location = new MyMissionLocation(baseSector, (uint)EntityID.FollowCoordinatesDummy); // Starting dummy point - must by typecasted to uint and referenced from EntityID enum RequiredMissions = new MyMissionID[] { MyMissionID.EAC_TRANSMITTER }; // IDs of missions required to make this mission available RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.ALIEN_GATE_23 }; RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; #region Objectives m_objectives = new List<MyObjective>(); var keepFormation = new MyObjective( (MyTextsWrapperEnum.ALIEN_GATE_RIGHT_WING_Name), MyMissionID.ALIEN_GATE_RIGHT_WING, (MyTextsWrapperEnum.ALIEN_GATE_RIGHT_WING_Description), null, this, new MyMissionID[] { }, new MyMissionLocation(baseSector, (uint)EntityID.MadelynSRightWingPosition)) { HudName = MyTextsWrapperEnum.HudLeftWing }; m_objectives.Add(keepFormation); m_followCords = new MyDestroyWavesObjective( (MyTextsWrapperEnum.ALIEN_GATE_FOLLOW_COORDINATES_Name), MyMissionID.ALIEN_GATE_FOLLOW_COORDINATES, (MyTextsWrapperEnum.ALIEN_GATE_FOLLOW_COORDINATES_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_RIGHT_WING, }, new List<uint>() { }, new MyMissionLocation(baseSector, (uint)EntityID.FollowCoordinatesDummy), radiusOverride: 150) { StartDialogId = MyDialogueEnum.ALIEN_GATE_0100, SuccessDialogId = MyDialogueEnum.ALIEN_GATE_0300 }; m_followCords.AddWave(new List<uint>() { (uint)EntityID.FollowCoordinatesSpawnPoint }); m_followCords.OnMissionLoaded += M01FollowCordsOnOnMissionLoaded; m_followCords.OnMissionSuccess += M01FollowCordsOnOnMissionSuccess; m_followCords.Components.Add(new MyMovingEntity("Madelyn", (uint)EntityID.FollowCoordinatesDummy, FollowCoordinatesMadelynTime)); m_objectives.Add(m_followCords); var continueSearching = new MyObjective( (MyTextsWrapperEnum.ALIEN_GATE_CONTINUE_SEARCHING_Name), MyMissionID.ALIEN_GATE_CONTINUE_SEARCHING, (MyTextsWrapperEnum.ALIEN_GATE_CONTINUE_SEARCHING_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_FOLLOW_COORDINATES }, new MyMissionLocation(baseSector, (uint)EntityID.ContinueSearchingDummy) ) { SaveOnSuccess = false, SuccessDialogId = MyDialogueEnum.ALIEN_GATE_0400, HudName = MyTextsWrapperEnum.HudSearch }; continueSearching.Components.Add(new MyMovingEntity("Madelyn", (uint)EntityID.ContinueSearchingDummy, ContinueSearchingMadelynTime)); m_objectives.Add(continueSearching); var followDirection = new MyObjective( (MyTextsWrapperEnum.ALIEN_GATE_FOLLOW_DIRECTION_Name), MyMissionID.ALIEN_GATE_FOLLOW_DIRECTION, (MyTextsWrapperEnum.ALIEN_GATE_FOLLOW_DIRECTION_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_CONTINUE_SEARCHING }, new MyMissionLocation(baseSector, (uint)EntityID.FollowDirectionDummy)) { HudName = MyTextsWrapperEnum.HudFollow }; followDirection.OnMissionLoaded += M03FollowDirectionOnOnMissionLoaded; followDirection.OnMissionCleanUp += M03FollowDirectionOnOnMissionCleanUp; m_objectives.Add(followDirection); m_coughtInTrap = new MyObjectiveDialog (MyTextsWrapperEnum.ALIEN_GATE_COUGHT_IN_TRAP_Name, MyMissionID.ALIEN_GATE_COUGHT_IN_TRAP, MyTextsWrapperEnum.ALIEN_GATE_COUGHT_IN_TRAP_Description, null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_FOLLOW_DIRECTION }, MyDialogueEnum.ALIEN_GATE_0500 ) { Location = new MyMissionLocation(baseSector, (uint)EntityID.CoughtInTrapDummy), SaveOnSuccess = true }; m_coughtInTrap.OnMissionLoaded += M04CoughtInTrapOnOnMissionLoaded; m_coughtInTrap.Components.Add(new MyMovingEntity((uint)EntityID.CoughtInTrapShip1, (uint)EntityID.CoughtInTrapShip1Target, CoughtInTrapMoveTime)); m_coughtInTrap.Components.Add(new MyMovingEntity((uint)EntityID.CoughtInTrapShip2, (uint)EntityID.CoughtInTrapShip2Target, CoughtInTrapMoveTime)); m_coughtInTrap.Components.Add(new MyMovingEntity((uint)EntityID.CoughtInTrapShip3, (uint)EntityID.CoughtInTrapShip3Target, CoughtInTrapMoveTime)); m_objectives.Add(m_coughtInTrap); m_runForYourLife = new MyTimedObjective ((MyTextsWrapperEnum.ALIEN_GATE_RUN_FOR_LIFE_Name), MyMissionID.ALIEN_GATE_RUN_FOR_LIFE, (MyTextsWrapperEnum.ALIEN_GATE_RUN_FOR_LIFE_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_COUGHT_IN_TRAP }, TimeSpan.FromMilliseconds(RunForYourLifeObjectiveTime), startDialogId: MyDialogueEnum.ALIEN_GATE_0600 ) { DisplayCounter = false, Location = new MyMissionLocation(baseSector, (uint)EntityID.RunForYourLifeDummy), HudName = MyTextsWrapperEnum.HudRun }; m_runForYourLife.OnMissionLoaded += M05RunForYourLifeOnOnMissionLoaded; m_runForYourLife.Components.Add(new MyMovingEntity(MyActorConstants.GetActorName(MyActorEnum.MADELYN), (uint)EntityID.RunForYourLifeShipTarget, RunForYourLifeShipMoveTime)); m_objectives.Add(m_runForYourLife); m_regroupWithMadelyn = new MyTimedObjective( (MyTextsWrapperEnum.ALIEN_GATE_REGROUP_WITH_MADELYN_Name), MyMissionID.ALIEN_GATE_REGROUP_WITH_MADELYN, (MyTextsWrapperEnum.ALIEN_GATE_REGROUP_WITH_MADELYN_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_RUN_FOR_LIFE, }, TimeSpan.FromMilliseconds(RegroupWithMadelynMissionTime) ) { DisplayCounter = false, Location = new MyMissionLocation(baseSector, (uint)EntityID.RegroupWithMadelynShip1Target), HudName = MyTextsWrapperEnum.HudRegroup, SaveOnSuccess = true }; m_regroupWithMadelyn.OnMissionLoaded += M06RegroupWithMadelynOnOnMissionLoaded; m_regroupWithMadelyn.Components.Add(new MySpawnpointWaves((uint)EntityID.RegroupWithMadelynDetector, 1, new List<uint[]>() { new uint[]{(uint)EntityID.RegroupWithMadelynSpawn1}, new uint[]{(uint)EntityID.RegroupWithMadelynSpawn2} })); m_regroupWithMadelyn.Components.Add(new MySpawnpointWaves((uint)EntityID.RegroupWithMadelynDetector2, 1, new List<uint[]>() { new uint[]{(uint)EntityID.RegroupWithMadelynSpawn3, (uint)EntityID.RegroupWithMadelynSpawn4} })); m_regroupWithMadelyn.Components.Add(new MyMovingEntity(MyActorConstants.GetActorName(MyActorEnum.MADELYN), (uint)EntityID.RegroupWithMadelynShip1Target, RegroupWithMadelynMissionTime)); m_regroupWithMadelyn.Components.Add(new MyMovingEntity((uint)EntityID.CoughtInTrapShip1, (uint)EntityID.RegroupWithMadelynShip2Target, RegroupWithMadelynMissionTime)); m_regroupWithMadelyn.Components.Add(new MyMovingEntity((uint)EntityID.CoughtInTrapShip2, (uint)EntityID.RegroupWithMadelynShip3Target, RegroupWithMadelynMissionTime)); m_regroupWithMadelyn.Components.Add(new MyMovingEntity((uint)EntityID.CoughtInTrapShip3, (uint)EntityID.RegroupWithMadelynShip4Target, RegroupWithMadelynMissionTime)); m_regroupWithMadelyn.Components.Add(new MyTimedDialogue(new TimeSpan(0, 0, 50), MyDialogueEnum.ALIEN_GATE_0900)); m_regroupWithMadelyn.Components.Add(new MyDetectorDialogue((uint)EntityID.RegroupWithMadelynShip1Target, MyDialogueEnum.ALIEN_GATE_0800B)); m_objectives.Add(m_regroupWithMadelyn); m_boardMotherShip = new MyObjective ((MyTextsWrapperEnum.ALIEN_GATE_BOARD_MOTHER_SHIP_Name), MyMissionID.ALIEN_GATE_BOARD_MOTHER_SHIP, (MyTextsWrapperEnum.ALIEN_GATE_BOARD_MOTHER_SHIP_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_REGROUP_WITH_MADELYN, }, new MyMissionLocation(baseSector, (uint)EntityID.BoardmotherShipDummy) ) { SuccessDialogId = MyDialogueEnum.ALIEN_GATE_1100, HudName = MyTextsWrapperEnum.HudMothership }; m_boardMotherShip.Components.Add(new MySpawnpointWaves((uint)EntityID.BoardmotherShipDetector1, 1, (uint)EntityID.BoardmotherShipSpawn1)); m_boardMotherShip.Components.Add(new MySpawnpointWaves((uint)EntityID.BoardmotherShipDetector2, 1, (uint)EntityID.BoardmotherShipSpawn2)); m_boardMotherShip.Components.Add(new MySpawnpointWaves((uint)EntityID.BoardmotherShipDetector3, 1, (uint)EntityID.BoardmotherShipSpawn3)); m_boardMotherShip.Components.Add(new MyDetectorDialogue((uint)EntityID.RussianGeneralSpeak, MyDialogueEnum.ALIEN_GATE_1000)); m_boardMotherShip.OnMissionLoaded += BoardMotherShipOnOnMissionLoaded; m_objectives.Add(m_boardMotherShip); m_hackGenerator = new MyUseObjective ((MyTextsWrapperEnum.ALIEN_GATE_HACK_GENERATOR_Name), MyMissionID.ALIEN_GATE_HACK_GENERATOR, (MyTextsWrapperEnum.ALIEN_GATE_HACK_GENERATOR_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_BOARD_MOTHER_SHIP }, new MyMissionLocation(baseSector, (uint)EntityID.HackGeneratorDummy), MyTextsWrapperEnum.PressToHack, MyTextsWrapperEnum.Generator, MyTextsWrapperEnum.StartingProgress, 5000 ); m_hackGenerator.SaveOnSuccess = true; m_hackGenerator.OnMissionLoaded += M08HackGeneratorOnOnMissionLoaded; m_hackGenerator.Components.Add(new MyTimedDialogue(new TimeSpan(0, 0, 2), MyDialogueEnum.ALIEN_GATE_1200)); m_hackGenerator.Components.Add(new MySpawnpointWaves((uint)EntityID.HackGeneratorDetector1, 1, new List<uint[]>() { new uint[]{(uint)EntityID.HackGeneratorSpawn11}, new uint[]{(uint)EntityID.HackGeneratorSpawn12} })); m_hackGenerator.Components.Add(new MySpawnpointWaves((uint)EntityID.HackGeneratorDetector2, 1, new List<uint[]>() { new uint[]{(uint)EntityID.HackGeneratorSpawn21}, new uint[]{(uint)EntityID.HackGeneratorSpawn22} })); m_hackGenerator.Components.Add(new MySpawnpointWaves((uint)EntityID.HackGeneratorDetector3, 1, new List<uint[]>() { new uint[]{(uint)EntityID.HackGeneratorSpawn31,(uint)EntityID.HackGeneratorSpawn32,(uint)EntityID.HackGeneratorSpawn33}, })); m_hackGenerator.Components.Add(new MySpawnpointWaves((uint)EntityID.HackGeneratorDetector4, 1, new List<uint[]>() { new uint[]{(uint)EntityID.HackGeneratorSpawn41,(uint)EntityID.HackGeneratorSpawn42}, })); m_hackGenerator.Components.Add(new MySpawnpointWaves((uint)EntityID.HackGeneratorDetector5, 1, new List<uint[]>() { new uint[]{(uint)EntityID.HackGeneratorSpawn5}, })); m_objectives.Add(m_hackGenerator); m_hackEngine = new MyUseObjective ((MyTextsWrapperEnum.ALIEN_GATE_HACK_ENGINE_Name), MyMissionID.ALIEN_GATE_HACK_ENGINE, (MyTextsWrapperEnum.ALIEN_GATE_HACK_ENGINE_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_HACK_GENERATOR }, new MyMissionLocation(baseSector, (uint)EntityID.HackEngineDummy), MyTextsWrapperEnum.PressToHack, MyTextsWrapperEnum.Generator, MyTextsWrapperEnum.StartingProgress, 5000, MyUseObjectiveType.Hacking, startDialogId: MyDialogueEnum.ALIEN_GATE_1300 ) { SuccessDialogId = MyDialogueEnum.ALIEN_GATE_1500, SaveOnSuccess = true }; m_hackEngine.OnMissionLoaded += M09HackEngineOnOnMissionLoaded; m_hackEngine.Components.Add(new MyDetectorDialogue((uint)EntityID.HackEngineDummy, MyDialogueEnum.ALIEN_GATE_1400)); m_hackEngine.Components.Add(new MySpawnpointWaves((uint)EntityID.HackGeneratorDetector5, 1, new List<uint[]>() { new uint[]{(uint)EntityID.HackGeneratorSpawn5}, })); m_hackEngine.Components.Add(new MySpawnpointWaves((uint)EntityID.HackGeneratorDetector4, 1, new List<uint[]>() { new uint[]{(uint)EntityID.HackEngineSpawn2}, })); m_hackEngine.Components.Add(new MySpawnpointWaves((uint)EntityID.HackEngineDetector3, 1, new List<uint[]>() { new uint[]{(uint)EntityID.HackEngineSpawn3}, })); m_hackEngine.Components.Add(new MySpawnpointWaves((uint)EntityID.HackEngineDetector4, 1, new List<uint[]>() { new uint[]{(uint)EntityID.HackEngineSpawn4}, })); m_hackEngine.Components.Add(new MySpawnpointWaves((uint)EntityID.HackEngineDetector5, 1, new List<uint[]>() { new uint[]{(uint)EntityID.HackEngineSpawn51}, new uint[]{(uint)EntityID.HackEngineSpawn52}, })); m_hackEngine.Components.Add(new MySpawnpointWaves((uint)EntityID.HackEngineDetector6, 1, new List<uint[]>() { new uint[]{(uint)EntityID.HackEngineSpawn6}, })); m_objectives.Add(m_hackEngine); m_leaveShip1 = new MyTimedReachLocationObjective ((MyTextsWrapperEnum.ALIEN_GATE_LEAVE_SHIP_Name), MyMissionID.ALIEN_GATE_LEAVE_SHIP, (MyTextsWrapperEnum.ALIEN_GATE_LEAVE_SHIP_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_HACK_ENGINE, }, TimeSpan.FromMilliseconds((double)m_10ObjectiveTime), new MyMissionLocation(baseSector, (uint)EntityID._10Dummy) ) { HudName = MyTextsWrapperEnum.Nothing }; m_leaveShip1.OnMissionLoaded += M10LeaveShip1OnOnMissionLoaded; m_leaveShip1.OnMissionFailed += M10LeaveShip1OnOnMissionFailed; m_leaveShip1.Components.Add(new MySpawnpointWaves((uint)EntityID.HackEngineDetector4, 1, new List<uint[]>() { new uint[]{(uint)EntityID.HackEngineSpawn4}, })); m_leaveShip1.Components.Add(new MySpawnpointWaves((uint)EntityID.HackGeneratorDetector3, 1, new List<uint[]>() { new uint[]{(uint)EntityID._10Spawn2}, })); m_objectives.Add(m_leaveShip1); m_regroupWithMadelyn2 = new MyObjective( (MyTextsWrapperEnum.ALIEN_GATE_REGROPUP_WITH_MADELYN_Name), MyMissionID.ALIEN_GATE_REGROPUP_WITH_MADELYN, (MyTextsWrapperEnum.ALIEN_GATE_REGROPUP_WITH_MADELYN_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_LEAVE_SHIP, }, new MyMissionLocation(baseSector, (uint)EntityID.RegroupWithMadelynShip1Target), startDialogId: MyDialogueEnum.ALIEN_GATE_1700 ) { HudName = MyTextsWrapperEnum.HudRegroup, SaveOnSuccess = true }; m_regroupWithMadelyn2.OnMissionLoaded += M11RegroupWithMadelyn2OnOnMissionLoaded; m_objectives.Add(m_regroupWithMadelyn2); m_shipbBoard2 = new MyObjective( (MyTextsWrapperEnum.ALIEN_GATE_BOARD_SECOND_Name), MyMissionID.ALIEN_GATE_BOARD_SECOND, (MyTextsWrapperEnum.ALIEN_GATE_BOARD_SECOND_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_REGROPUP_WITH_MADELYN, }, new MyMissionLocation(baseSector, (uint)EntityID.BoardSecondShipbDummy) ) { StartDialogId = MyDialogueEnum.ALIEN_GATE_1900, HudName = MyTextsWrapperEnum.HudMothership }; m_shipbBoard2.Components.Add(new MySpawnpointWaves((uint)EntityID.RegroupWithMadelynDetector, 1, new List<uint[]>() { new uint[]{(uint)EntityID.BoardSecondShipbSpawn1, (uint)EntityID.BoardSecondShipbSpawn2}, })); m_shipbBoard2.OnMissionLoaded += M11BBoard2OnOnMissionLoaded; m_objectives.Add(m_shipbBoard2); m_hackGenerator2 = new MyUseObjective ((MyTextsWrapperEnum.ALIEN_GATE_HACK_GENERATOR2_Name), MyMissionID.ALIEN_GATE_HACK_GENERATOR2, (MyTextsWrapperEnum.ALIEN_GATE_HACK_GENERATOR2_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_BOARD_SECOND }, new MyMissionLocation(baseSector, (uint)EntityID.HackGenerator2Dummy), MyTextsWrapperEnum.PressToHack, MyTextsWrapperEnum.Generator, MyTextsWrapperEnum.StartingProgress, 5000, MyUseObjectiveType.Hacking ) { StartDialogId = MyDialogueEnum.ALIEN_GATE_2000, SaveOnSuccess = true }; m_hackGenerator2.OnMissionLoaded += M12HackGenerator2OnOnMissionLoaded; m_hackGenerator2.Components.Add(new MySpawnpointWaves((uint)EntityID.HackGenerator2Detector1, 1, new List<uint[]>() { new uint[]{(uint)EntityID.HackGenerator2Spawn11, (uint)EntityID.HackGenerator2Spawn12}, })); m_hackGenerator2.Components.Add(new MySpawnpointWaves((uint)EntityID.HackGenerator2Detector2, 1, new List<uint[]>() { new uint[]{(uint)EntityID.HackGenerator2Spawn2}, })); m_objectives.Add(m_hackGenerator2); m_hackEngine2 = new MyObjective( (MyTextsWrapperEnum.ALIEN_GATE_HACK_ENGINE_2_Name), MyMissionID.ALIEN_GATE_HACK_ENGINE_2, (MyTextsWrapperEnum.ALIEN_GATE_HACK_ENGINE_2_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_HACK_GENERATOR2 }, new MyMissionLocation(baseSector, (uint)EntityID._13Dummy)/*, startDialogId: MyDialogueEnum.ALIEN_GATE_2100*/ ); m_hackEngine2.OnMissionLoaded += M13HackEngine2OnOnMissionLoaded; m_hackEngine2.Components.Add(new MySpawnpointWaves((uint)EntityID._13Detector1, 1, new List<uint[]>() { new uint[]{(uint)EntityID._13Spawn11, (uint)EntityID._13Spawn12,(uint)EntityID._13Spawn13}, })); m_hackEngine2.Components.Add(new MySpawnpointWaves((uint)EntityID._13Detector2, 1, new List<uint[]>() { new uint[]{(uint)EntityID._13Spawn2} })); m_hackEngine2.Components.Add(new MySpawnpointWaves((uint)EntityID._13Detector3, 1, new List<uint[]>() { new uint[]{(uint)EntityID._13Spawn3} })); m_hackEngine2.Components.Add(new MySpawnpointWaves((uint)EntityID._13Detector4, 1, new List<uint[]>() { new uint[]{(uint)EntityID._13Spawn41}, new uint[]{(uint)EntityID._13Spawn42} })); m_hackEngine2.Components.Add(new MySpawnpointWaves((uint)EntityID._13Detector5, 1, new List<uint[]>() { new uint[]{(uint)EntityID._13Spawn51}, new uint[]{(uint)EntityID._13Spawn52} })); m_objectives.Add(m_hackEngine2); m_enableDoors = new MyObjectiveEnablePrefabs( (MyTextsWrapperEnum.ALIEN_GATE_ENABLE_DOORS_Name), MyMissionID.ALIEN_GATE_ENABLE_DOORS, (MyTextsWrapperEnum.ALIEN_GATE_ENABLE_DOORS_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_HACK_ENGINE_2 }, null, new List<uint> { (uint)EntityID.EnableDoorsHUB }, new List<uint> { (uint)EntityID.EnableDoorsDoors, } ) { HudName = MyTextsWrapperEnum.HudHub }; m_enableDoors.Components.Add(new MySpawnpointWaves((uint)EntityID.EnableDoorsDetector, 1, new List<uint[]>() { new uint[]{(uint)EntityID.EnableDoorsSpawnPoint} })); m_enableDoors.Components.Add(new MyDetectorDialogue((uint)EntityID.DoorsDialogue, MyDialogueEnum.ALIEN_GATE_2200)); m_objectives.Add(m_enableDoors); m_enterlaboratory = new MyObjective( (MyTextsWrapperEnum.ALIEN_GATE_ENTER_LAB_Name), MyMissionID.ALIEN_GATE_ENTER_LAB, (MyTextsWrapperEnum.ALIEN_GATE_ENTER_LAB_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_ENABLE_DOORS }, new MyMissionLocation(baseSector, (uint)EntityID.EnterLaboratoryDummy) // startDialogId: m_dialog12 ) { StartDialogId = MyDialogueEnum.ALIEN_GATE_2300, HudName = MyTextsWrapperEnum.HudLab }; m_enterlaboratory.Components.Add(new MySpawnpointWaves((uint)EntityID.EnterLaboratoryDetector, 1, new List<uint[]>() { new uint[]{(uint)EntityID.EnterLaboratorySpawn} })); m_objectives.Add(m_enterlaboratory); m_downloadData = new MyUseObjective ((MyTextsWrapperEnum.ALIEN_GATE_16_Name), MyMissionID.ALIEN_GATE_16, (MyTextsWrapperEnum.ALIEN_GATE_16_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_ENTER_LAB }, new MyMissionLocation(baseSector, (uint)EntityID._16Dummy), MyTextsWrapperEnum.PressToDownloadData, MyTextsWrapperEnum.DataTransfer, MyTextsWrapperEnum.DownloadingData, 3000, MyUseObjectiveType.Taking ) { StartDialogId = MyDialogueEnum.ALIEN_GATE_2400, SaveOnSuccess = true }; m_objectives.Add(m_downloadData); m_hackGenerator3 = new MyUseObjective ((MyTextsWrapperEnum.ALIEN_GATE_17_Name), MyMissionID.ALIEN_GATE_17, (MyTextsWrapperEnum.ALIEN_GATE_17_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_16 }, new MyMissionLocation(baseSector, (uint)EntityID._17Dummy), MyTextsWrapperEnum.PressToHack, MyTextsWrapperEnum.Generator, MyTextsWrapperEnum.StartingProgress, 5000, MyUseObjectiveType.Hacking, startDialogId: MyDialogueEnum.ALIEN_GATE_2500 ); m_objectives.Add(m_hackGenerator3); m_hackGenerator3.OnMissionLoaded += M17HackGenerator3OnOnMissionLoaded; m_hackGenerator3.Components.Add(new MySpawnpointWaves((uint)EntityID._17Detector, 1, new List<uint[]>() { new uint[]{(uint)EntityID._17Spawn1,(uint)EntityID.EnterLaboratorySpawn} })); m_leaveShip = new MyTimedReachLocationObjective ((MyTextsWrapperEnum.ALIEN_GATE_18_Name), MyMissionID.ALIEN_GATE_18, (MyTextsWrapperEnum.ALIEN_GATE_18_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_17, }, TimeSpan.FromMilliseconds((double)m_18ObjectiveTime), new MyMissionLocation(baseSector, (uint)EntityID._18Dummy) ) { StartDialogId = MyDialogueEnum.ALIEN_GATE_2600, HudName = MyTextsWrapperEnum.Nothing, SaveOnSuccess = true }; m_leaveShip.OnMissionLoaded += M18LeaveShipOnOnMissionLoaded; m_leaveShip.OnMissionFailed += M18LeaveShipOnOnMissionFailed; m_leaveShip.Components.Add(new MySpawnpointWaves((uint)EntityID._13Detector5, 1, new List<uint[]>() { new uint[]{(uint)EntityID._18Spawn1} })); m_objectives.Add(m_leaveShip); m_killReef = new MyObjective( (MyTextsWrapperEnum.ALIEN_GATE_19_Name), MyMissionID.ALIEN_GATE_19, (MyTextsWrapperEnum.ALIEN_GATE_19_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_18 }, new MyMissionLocation(baseSector, (uint)EntityID._19Dummy) ) { StartDialogId = MyDialogueEnum.ALIEN_GATE_2800 }; m_killReef.OnMissionLoaded += M19KilReefOnOnMissionLoaded; m_objectives.Add(m_killReef); m_20ReefEscape = new MyTimedObjective ((MyTextsWrapperEnum.ALIEN_GATE_20_Name), MyMissionID.ALIEN_GATE_20, (MyTextsWrapperEnum.ALIEN_GATE_20_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_19, }, TimeSpan.FromMilliseconds(m_20ObjectiveTime) ) { HudName = MyTextsWrapperEnum.HudFrancisReef }; m_20ReefEscape.Location = new MyMissionLocation(baseSector, (uint)EntityID._20Prefab); m_20ReefEscape.Components.Add(new MyMovingEntity((uint)EntityID._19Ship, (uint)EntityID._20ShipTarget, m_20ObjectiveTime)); m_20ReefEscape.OnMissionLoaded += M20ReefEscapeOnOnMissionLoaded; m_20ReefEscape.OnMissionSuccess += ReefEscapeOnOnMissionSuccess; m_objectives.Add(m_20ReefEscape); m_21DestroyReef = new MyObjectiveDestroy( (MyTextsWrapperEnum.ALIEN_GATE_21_Name), MyMissionID.ALIEN_GATE_21, (MyTextsWrapperEnum.ALIEN_GATE_21_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_20 }, new List<uint>() { (uint)EntityID._21ToDesroy }) { StartDialogId = MyDialogueEnum.ALIEN_GATE_2900, HudName = MyTextsWrapperEnum.HudFrancisReef, SaveOnSuccess = true }; m_21DestroyReef.OnMissionLoaded += M21DestroyReefOnOnMissionLoaded; m_21DestroyReef.OnMissionSuccess += M21DestroyReefOnOnMissionSuccess; m_21DestroyReef.Components.Add(new MySpawnpointWaves((uint)EntityID._21Detector1, 1, new List<uint[]>() { new uint[]{(uint)EntityID._21SpawnPoint11}, new uint[]{(uint)EntityID._21SpawnPoint12} })); m_21DestroyReef.Components.Add(new MyMovingEntity((uint)EntityID._21Ship2, (uint)EntityID._21Ship2Target, m_21ObjectiveMovingTime)); m_21DestroyReef.Components.Add(new MyMovingEntity((uint)EntityID._21Particle1, (uint)EntityID._21Particle1Target, m_21ObjectiveMovingTime, false)); m_21DestroyReef.Components.Add(new MyMovingEntity((uint)EntityID._21Particle2, (uint)EntityID._21Particle2Target, m_21ObjectiveMovingTime, false)); //m_21DestroyReef.Components.Add(new MyTimedDialogue(TimeSpan.FromMilliseconds(m_21ObjectiveMovingTime), MyDialogueEnum.ALIEN_GATE_3100)); m_21DestroyReef.Components.Add(new MyTimedDialogue(TimeSpan.FromMilliseconds(5000), MyDialogueEnum.ALIEN_GATE_3000)); m_objectives.Add(m_21DestroyReef); m_22FlyBackTomadelyn = new MyObjective( (MyTextsWrapperEnum.ALIEN_GATE_22_Name), MyMissionID.ALIEN_GATE_22, (MyTextsWrapperEnum.ALIEN_GATE_22_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_21 }, new MyMissionLocation(baseSector, (uint)EntityID._22Dummy), startDialogId: MyDialogueEnum.ALIEN_GATE_3200 ) { HudName = MyTextsWrapperEnum.HudMeetingPoint }; m_22FlyBackTomadelyn.OnMissionLoaded += M22FlyBackTomadelynOnOnMissionLoaded; m_objectives.Add(m_22FlyBackTomadelyn); m_23ExploreAliengate = new MyObjective( (MyTextsWrapperEnum.ALIEN_GATE_23_Name), MyMissionID.ALIEN_GATE_23, (MyTextsWrapperEnum.ALIEN_GATE_23_Description), null, this, new MyMissionID[] { MyMissionID.ALIEN_GATE_22 }, new MyMissionLocation(baseSector, (uint)EntityID._23Dummy), startDialogId: MyDialogueEnum.ALIEN_GATE_3300 ) { HudName = MyTextsWrapperEnum.Nothing }; m_23ExploreAliengate.Components.Add(new MyMovingEntity(MyActorConstants.GetActorName(MyActorEnum.MADELYN), (uint)EntityID._23Shiptarget, 50000)); m_23ExploreAliengate.OnMissionLoaded += M23ExploreAliengateOnOnMissionLoaded; m_objectives.Add(m_23ExploreAliengate); #endregion }
public MyRussianTransmitterMission() { ID = MyMissionID.RUSSIAN_TRANSMITTER; /* ID must be added to MyMissions.cs */ DebugName = new StringBuilder("17-RUF transmitter"); Name = MyTextsWrapperEnum.RUSSIAN_TRANSMITTER; Description = MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_Description; Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(-4988032, 0, -865747); // Story sector of the script - i.e. (-2465,0,6541) Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point - must by typecasted to uint and referenced from EntityID enum RequiredMissions = new MyMissionID[] { MyMissionID.CHINESE_TRANSMITTER }; // IDs of missions required to make this mission available RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_BACK_TO_MADELYN }; RequiredActors = new MyActorEnum[] { MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; #region Objectives m_objectives = new List <MyObjective>(); // Creating of list of submissions var introDialogue = new MyObjectiveDialog( MyMissionID.RUSSIAN_TRANSMITTER_INTRO_DIALOGUE, null, this, new MyMissionID[] { }, MyDialogueEnum.RUSSIAN_TRANSMITTER_0100_INTRO); m_objectives.Add(introDialogue); // START OF REACH OBJECTIVE SUBMISSION DEFINITION var reachSideEntrance = new MyObjective( // One member of that list - its type defines the type of submission - MySubmission means fly to the dummypoint to success. Here it is var so you cannot call methods on it MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_REACH_SIDE_ENTRANCE, // Name of the submission MyMissionID.RUSSIAN_TRANSMITTER_REACH_SIDE_ENTRANCE, // ID of the submission - must be added to MyMissions.cs MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_REACH_SIDE_ENTRANCE_Description, // Description of the submission null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_INTRO_DIALOGUE }, // ID of submissions required to make this submission available - it is clear so this submission is the starting submission new MyMissionLocation(baseSector, (uint)EntityID.OutpostSideEntrance) // ID of dummy point of checkpoint ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudEntrance }; // False means do not save game in that checkpoint m_objectives.Add(reachSideEntrance); // Adding this submission to the list of submissions of current mission // END OF REACH OBJECTIVE SUBMISSION DEFINITION var enterTheBase = new MyObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_ENTER_THE_BASE, MyMissionID.RUSSIAN_TRANSMITTER_ENTER_THE_BASE, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_ENTER_THE_BASE_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_REACH_SIDE_ENTRANCE }, new MyMissionLocation(baseSector, (uint)EntityID.EnterTheBase) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudEntrance }; enterTheBase.OnMissionLoaded += new MissionHandler(enterTheBase_OnMissionLoaded); enterTheBase.OnMissionSuccess += new MissionHandler(enterTheBase_OnMissionSuccess); m_objectives.Add(enterTheBase); var findFrequency = new MyUseObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_FIND_FREQUENCY, MyMissionID.RUSSIAN_TRANSMITTER_FIND_FREQUENCY, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_FIND_FREQUENCY_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_ENTER_THE_BASE }, new MyMissionLocation(baseSector, (uint)EntityID.SabotageTurrets_1), MyTextsWrapperEnum.PressToDownloadData, MyTextsWrapperEnum.SecurityControlHUB, MyTextsWrapperEnum.DownloadingData, 10000, MyUseObjectiveType.Hacking ) { SaveOnSuccess = false }; findFrequency.OnMissionLoaded += new MissionHandler(findFrequency_OnMissionLoaded); findFrequency.OnMissionSuccess += FindFrequency_Success; m_objectives.Add(findFrequency); m_strangerContact = new MyObjectiveDialog( MyTextsWrapperEnum.Null, MyMissionID.RUSSIAN_TRANSMITTER_STRANGER_CONTACT, MyTextsWrapperEnum.Null, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_FIND_FREQUENCY }, MyDialogueEnum.RUSSIAN_TRANSMITTER_0500_0600_HACKPROBLEM_STRANGERCALLS ); m_objectives.Add(m_strangerContact); var meetStranger = new MyObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_MEET_STRANGER, MyMissionID.RUSSIAN_TRANSMITTER_MEET_STRANGER, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_MEET_STRANGER_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_STRANGER_CONTACT }, new MyMissionLocation(baseSector, (uint)EntityID.ShipVolodia), radiusOverride: 90f ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudStranger }; meetStranger.OnMissionLoaded += MeetStranger_Loaded; meetStranger.OnMissionSuccess += MeetStranger_Success; m_objectives.Add(meetStranger); var reachWarehouse = new MyObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_REACH_WAREHOUSE, MyMissionID.RUSSIAN_TRANSMITTER_REACH_WAREHOUSE, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_REACH_WAREHOUSE_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_MEET_STRANGER }, new MyMissionLocation(baseSector, (uint)EntityID.ReachWarehouse) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudWarehouse }; reachWarehouse.OnMissionLoaded += new MissionHandler(ReachWarehouse_Loaded); m_objectives.Add(reachWarehouse); var stealMilitarySupply = new MyUseObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_STEAL_MILITARY_SUPPLY, MyMissionID.RUSSIAN_TRANSMITTER_STEAL_MILITARY_SUPPLY, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_STEAL_MILITARY_SUPPLY_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_REACH_WAREHOUSE }, new MyMissionLocation(baseSector, (uint)EntityID.StealMilitarySupply), MyTextsWrapperEnum.PressToTakeCargo, MyTextsWrapperEnum.CargoBox, MyTextsWrapperEnum.TakingInProgress, 1000, MyUseObjectiveType.Activating ) { SaveOnSuccess = false }; stealMilitarySupply.OnMissionSuccess += new MissionHandler(StealMilitarySupply_Success); m_objectives.Add(stealMilitarySupply); m_tradeWithVolodia = new MyObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_TRADE_WITH_VOLODIA, MyMissionID.RUSSIAN_TRANSMITTER_TRADE_WITH_VOLODIA, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_TRADE_WITH_VOLODIA_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_STEAL_MILITARY_SUPPLY }, new MyMissionLocation(baseSector, (uint)EntityID.ShipVolodia), radiusOverride: 90 ) { SaveOnSuccess = true, SuccessDialogId = MyDialogueEnum.RUSSIAN_TRANSMITTER_1000_VOLODIA_FOUND, HudName = MyTextsWrapperEnum.Volodia }; m_tradeWithVolodia.OnMissionSuccess += TradeWithVolodia_Success; m_objectives.Add(m_tradeWithVolodia); m_fightRussianCommando = new MyObjectiveDestroy( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_FIGHT_RUSSIAN_COMMANDO, MyMissionID.RUSSIAN_TRANSMITTER_FIGHT_RUSSIAN_COMMANDO, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_FIGHT_RUSSIAN_COMMANDO_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_TRADE_WITH_VOLODIA }, //new List<uint> { (uint)EntityID.MothershipEntity }, new List <uint> { }, new List <uint> { (uint)EntityID.CommandoSpawnPoint }, false ) { SaveOnSuccess = false, SuccessDialogId = MyDialogueEnum.RUSSIAN_TRANSMITTER_1400_RETREAT, HudName = MyTextsWrapperEnum.Nothing }; m_fightRussianCommando.OnMissionLoaded += RussianCommandoLoaded; m_fightRussianCommando.OnMissionSuccess += new MissionHandler(FightRussianCommando_Success); m_objectives.Add(m_fightRussianCommando); var backToTransmitter = new MyObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_BACK_TO_TRANSMITTER, MyMissionID.RUSSIAN_TRANSMITTER_BACK_TO_TRANSMITTER, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_BACK_TO_TRANSMITTER_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_FIGHT_RUSSIAN_COMMANDO }, // prerekvizita - OPRAVIT na survive!!! new MyMissionLocation(baseSector, (uint)EntityID.BackToTransmitter) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudTransmitter }; backToTransmitter.OnMissionLoaded += new MissionHandler(BackToTransmitter_Loaded); m_objectives.Add(backToTransmitter); var decryptFrequency = new MyUseObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_DECRYPT_FREQUENCY, MyMissionID.RUSSIAN_TRANSMITTER_DECRYPT_FREQUENCY, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_DECRYPT_FREQUENCY_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_BACK_TO_TRANSMITTER }, new MyMissionLocation(baseSector, (uint)EntityID.SabotageTurrets_1), MyTextsWrapperEnum.PressToHack, MyTextsWrapperEnum.SecurityControlHUB, MyTextsWrapperEnum.HackingProgress, 5000, MyUseObjectiveType.Hacking ) { SaveOnSuccess = false, SuccessDialogId = MyDialogueEnum.RUSSIAN_TRANSMITTER_1600_ITSWORKING }; m_objectives.Add(decryptFrequency); var uploadData = new MyUseObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_UPLOAD_DATA, MyMissionID.RUSSIAN_TRANSMITTER_UPLOAD_DATA, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_UPLOAD_DATA_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_DECRYPT_FREQUENCY }, new MyMissionLocation(baseSector, (uint)EntityID.SabotageTurrets_3), MyTextsWrapperEnum.PressToHack, MyTextsWrapperEnum.SecurityControlHUB, MyTextsWrapperEnum.HackingProgress, 5000 ) { SaveOnSuccess = false, SuccessDialogId = MyDialogueEnum.RUSSIAN_TRANSMITTER_1700_UPLOADINGSIGNAL }; m_objectives.Add(uploadData); var findMainRoomEntrance = new MyObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_FIND_MAIN_ROOM_ENTRANCE, MyMissionID.RUSSIAN_TRANSMITTER_FIND_MAIN_ROOM_ENTRANCE, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_FIND_MAIN_ROOM_ENTRANCE_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_UPLOAD_DATA }, new MyMissionLocation(baseSector, (uint)EntityID.FindMainRoomEntrance) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudEntrance }; findMainRoomEntrance.OnMissionLoaded += new MissionHandler(findMainRoomEntrance_Loaded); m_objectives.Add(findMainRoomEntrance); var placeDeviceOnTransmitter = new MyUseObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_PLACE_DEVICE_ON_TRANSMITTER, MyMissionID.RUSSIAN_TRANSMITTER_PLACE_DEVICE_ON_TRANSMITTER, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_PLACE_DEVICE_ON_TRANSMITTER_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_FIND_MAIN_ROOM_ENTRANCE }, new MyMissionLocation(baseSector, (uint)EntityID.PlaceDeviceOnTransmitter), MyTextsWrapperEnum.PressToPlaceDevice, MyTextsWrapperEnum.Transmitter, MyTextsWrapperEnum.PlacementInProgress, 10000, MyUseObjectiveType.Building ) { SaveOnSuccess = false }; placeDeviceOnTransmitter.OnMissionSuccess += new MissionHandler(PlaceDeviceOnTransmitter_Success); m_objectives.Add(placeDeviceOnTransmitter); var openDoors = new MyObjectiveEnablePrefabs( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_OPEN_DOORS, MyMissionID.RUSSIAN_TRANSMITTER_OPEN_DOORS, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_OPEN_DOORS_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_PLACE_DEVICE_ON_TRANSMITTER }, null, new List <uint> { (uint)EntityID.Hub3 }, new List <uint> { (uint)EntityID.Door1, (uint)EntityID.Door2, (uint)EntityID.Door3, (uint)EntityID.Door4, } ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHub }; openDoors.OnMissionSuccess += new MissionHandler(OpenDoors_Success); m_objectives.Add(openDoors); var backToMadelyn = new MyObjective( MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_BACK_TO_MADELYN, MyMissionID.RUSSIAN_TRANSMITTER_BACK_TO_MADELYN, MyTextsWrapperEnum.RUSSIAN_TRANSMITTER_BACK_TO_MADELYN_Description, null, this, new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER_OPEN_DOORS }, new MyMissionLocation(baseSector, MyMissionLocation.MADELYN_HANGAR), radiusOverride: MyMissionLocation.MADELYN_HANGAR_RADIUS ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudMadelynsSapho }; backToMadelyn.OnMissionSuccess += new MissionHandler(BackToMadelyn_Success); m_objectives.Add(backToMadelyn); #endregion }
//private MySubmisisonDefend m_defendGenerator; #endregion public MySlaverBaseMission() { m_ValidateIDlists = new List <List <uint> >(); m_ValidateIDlists.Add(m_closeddoors); m_ValidateIDlists.Add(m_finalparticle); m_ValidateIDlists.Add(m_openedddoors); m_ValidateIDlists.Add(m_standbyparticle); m_ValidateIDlists.Add(m_pilotsSpawn); m_ValidateIDlists.Add(m_closeentiites); ID = MyMissionID.SLAVER_BASE_1; /* ID must be added to MyMissions.cs */ Name = MyTextsWrapperEnum.SLAVER_BASE_GRAND_BURROW; Description = MyTextsWrapperEnum.SLAVER_BASE_GRAND_BURROW_Description; DebugName = new StringBuilder("09b-Slaver base Grand Burrow"); // Nazev mise Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(2052452, 0, -10533886); // Story sector of the script Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point RequiredMissions = new MyMissionID[] { MyMissionID.FORT_VALIANT }; // mise ktere musi byt splneny pred prijetim teto mise RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DIALOG_10 }; RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; m_objectives = new List <MyObjective>(); // Creating of list of submissions // -------------- START DEFINICE SUBMISE --------------------- var talkWith = new MyObjectiveDialog( (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_1_Name), MyMissionID.SLAVER_BASE_1_DIALOG_1, (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_1_Description), null, this, new MyMissionID[] { }, dialogId: MyDialogueEnum.SLAVERBASE_0100_INTRODUCE ) { SaveOnSuccess = false }; m_objectives.Add(talkWith); var DestroyGenerators = new MyObjectiveDestroy( // Var is used to call functions on that member (MyTextsWrapperEnum.SLAVER_BASE_1_DESTROY_GENERATOR_Name), MyMissionID.SLAVER_BASE_1_DESTROY_GENERATOR, (MyTextsWrapperEnum.SLAVER_BASE_1_DESTROY_GENERATOR_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DIALOG_1 }, Generators, false ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudGenerator }; m_objectives.Add(DestroyGenerators); // pridani do seznamu submisi DestroyGenerators.OnMissionSuccess += DestroyGeneratorMSSuccess; var talkWith2 = new MyObjectiveDialog( (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_2_Name), MyMissionID.SLAVER_BASE_1_DIALOG_2, (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_2_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DESTROY_GENERATOR }, dialogId: MyDialogueEnum.SLAVERBASE_0200_GENERATORS_DESTROYED ) { SaveOnSuccess = false }; m_objectives.Add(talkWith2); var DestroyBatteries = new MyObjectiveDestroy( // Var is used to call functions on that member (MyTextsWrapperEnum.SLAVER_BASE_1_DESTROY_BATTERIES_Name), MyMissionID.SLAVER_BASE_1_DESTROY_BATTERIES, (MyTextsWrapperEnum.SLAVER_BASE_1_DESTROY_BATTERIES_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DIALOG_2 }, Batteries, false ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudBatteries }; m_objectives.Add(DestroyBatteries); // pridani do seznamu submisi DestroyBatteries.OnMissionSuccess += DestroyBatteriesMSSuccess; var FindPrison = new MyObjective( // One member of that list - je to MyObjective takze cilem je doletet do checkpointu (MyTextsWrapperEnum.SLAVER_BASE_1_FIND_PRISON_Name), // nazev submise MyMissionID.SLAVER_BASE_1_FIND_PRISON, // id submise (MyTextsWrapperEnum.SLAVER_BASE_1_FIND_PRISON_Description), // popis submise null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DESTROY_BATTERIES }, // ID submisi ktere musi byt splneny - je to prazdne takze je to prvni submise new MyMissionLocation(baseSector, (uint)EntityID.Prison_Dummy), startDialogId: MyDialogueEnum.SLAVERBASE_0300_BATTERIES_DESTROYED // ID of dummy point of checkpoint ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudPrison }; // nastaveni save na checkpointu nebo ne m_objectives.Add(FindPrison); // pridani do seznamu submisi FindPrison.OnMissionSuccess += FindPrisonMSSuccess; m_freeSlaves = new MyObjectiveDestroy( // Var is used to call functions on that member (MyTextsWrapperEnum.SLAVER_BASE_1_FREE_SLAVES_Name), MyMissionID.SLAVER_BASE_1_FREE_SLAVES, (MyTextsWrapperEnum.SLAVER_BASE_1_FREE_SLAVES_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_FIND_PRISON }, m_Bars, false ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudCage }; m_objectives.Add(m_freeSlaves); // pridani do seznamu submisi var talkWith4 = new MyObjectiveDialog( MyMissionID.SLAVER_BASE_1_DIALOG_4, null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_FREE_SLAVES }, dialogId: MyDialogueEnum.SLAVERBASE_0400_SLAVES_SAVED ) { SaveOnSuccess = true }; m_objectives.Add(talkWith4); m_hackHangar = new MyObjectiveEnablePrefabs( (MyTextsWrapperEnum.SLAVER_BASE_1_HACK_HANGAR_Name), MyMissionID.SLAVER_BASE_1_HACK_HANGAR, (MyTextsWrapperEnum.SLAVER_BASE_1_HACK_HANGAR_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DIALOG_4 }, null, new List <uint> { (uint)EntityID.Hack_PC }, new List <uint> { (uint)EntityID.Hangar_Doors } ) { HudName = MyTextsWrapperEnum.HudHub }; m_objectives.Add(m_hackHangar); m_hackHangar.OnMissionSuccess += HangarOpen; m_freeSlavesMS = new MyObjectiveDestroy( // Var is used to call functions on that member (MyTextsWrapperEnum.SLAVER_BASE_1_FREE_SLAVES_2_Name), MyMissionID.SLAVER_BASE_1_FREE_SLAVES_2, (MyTextsWrapperEnum.SLAVER_BASE_1_FREE_SLAVES_2_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_HACK_HANGAR }, Mothership_Bars, false ) { SaveOnSuccess = false, ToDestroyCount = 1, HudName = MyTextsWrapperEnum.HudCage }; m_objectives.Add(m_freeSlavesMS); // pridani do seznamu submisi var talkWith6 = new MyObjectiveDialog( (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_6_Name), MyMissionID.SLAVER_BASE_1_DIALOG_6, (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_6_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_FREE_SLAVES_2, }, dialogId: MyDialogueEnum.SLAVERBASE_0600_MOTHERSHIP_EMPTY ) { SaveOnSuccess = false }; m_objectives.Add(talkWith6); var findSlaves = new MyObjectiveDestroy( // Var is used to call functions on that member (MyTextsWrapperEnum.SLAVER_BASE_1_FIND_SLAVES_Name), MyMissionID.SLAVER_BASE_1_FIND_SLAVES, (MyTextsWrapperEnum.SLAVER_BASE_1_FIND_SLAVES_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DIALOG_6 }, bar_pit, // ID of dummy point of checkpoint false ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudCage }; findSlaves.MissionEntityIDs.Add((uint)EntityID.Bar_pit); m_objectives.Add(findSlaves); // pridani do seznamu submisi var talkWith7 = new MyObjectiveDialog( (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_7_Name), MyMissionID.SLAVER_BASE_1_DIALOG_7, (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_7_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_FIND_SLAVES, }, dialogId: MyDialogueEnum.SLAVERBASE_0700_PIT_EMPTY ) { SaveOnSuccess = false }; m_objectives.Add(talkWith7); talkWith7.OnMissionLoaded += FreePilotsMSSuccess; var destroyEnemies = new MyDestroyWavesObjective( // Var is used to call functions on that member (MyTextsWrapperEnum.SLAVER_BASE_1_DESTROY_ENEMIES_Name), MyMissionID.SLAVER_BASE_1_DESTROY_ENEMIES, (MyTextsWrapperEnum.SLAVER_BASE_1_DESTROY_ENEMIES_Description), null, this, new[] { MyMissionID.SLAVER_BASE_1_DIALOG_7 } //new List<uint> // { // (uint) EntityID.Mothership_Spawn_1, // (uint) EntityID.Mothership_Spawn_2, // (uint) EntityID.Mothership_Spawn_3 // }, ) { SaveOnSuccess = false }; destroyEnemies.AddWave(new List <uint> { (uint)EntityID.Mothership_Spawn_1 }); destroyEnemies.AddWave(new List <uint> { (uint)EntityID.Mothership_Spawn_2 }); destroyEnemies.AddWave(new List <uint> { (uint)EntityID.Mothership_Spawn_3 }); destroyEnemies.OnMissionSuccess += EnemiesDestroyed; m_objectives.Add(destroyEnemies); // pridani do seznamu submisi var talkWith9 = new MyObjectiveDialog( (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_9_Name), MyMissionID.SLAVER_BASE_1_DIALOG_9, (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_9_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DESTROY_ENEMIES }, dialogId: MyDialogueEnum.SLAVERBASE_0800_ENEMIES_DESTROYED ) { SaveOnSuccess = false }; m_objectives.Add(talkWith9); m_openHangarDoors = new MyObjectiveEnablePrefabs( (MyTextsWrapperEnum.SLAVER_BASE_1_HACK_NUKE_Name), MyMissionID.SLAVER_BASE_1_HACK_NUKE, (MyTextsWrapperEnum.SLAVER_BASE_1_HACK_NUKE_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_DIALOG_9 }, null, new List <uint> { (uint)EntityID.HangarDoorsHub }, new List <uint> { (uint)EntityID.Cargo_Bay_Doors } ) { HudName = MyTextsWrapperEnum.HudHub }; m_objectives.Add(m_openHangarDoors); m_openHangarDoors.OnMissionSuccess += MSEscape; m_openHangarDoors.OnMissionSuccess += MoveFourthReichMSStart; var talkWith10 = new MyTimedObjective( (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_10_Name), MyMissionID.SLAVER_BASE_1_DIALOG_10, (MyTextsWrapperEnum.SLAVER_BASE_1_DIALOG_10_Description), null, this, new MyMissionID[] { MyMissionID.SLAVER_BASE_1_HACK_NUKE }, TimeSpan.FromSeconds(50) ) { SaveOnSuccess = false, SuccessDialogId = MyDialogueEnum.SLAVERBASE_1100_FAKE_ESCAPED, DisplayCounter = false, }; talkWith10.MissionEntityIDs.Add((uint)EntityID.Escape_Dummy); m_objectives.Add(talkWith10); }
public MyChineseRefineryMission() { ID = MyMissionID.CHINESE_REFINERY; /* ID must be added to MyMissions.cs */ Name = MyTextsWrapperEnum.CHINESE_REFINERY; Description = MyTextsWrapperEnum.CHINESE_REFINERY_Description; // "Sneak throught the Chinese Refinery station and hack their system\n" DebugName = new StringBuilder("08c-Chinese refinery of Jingzhou"); // Name of mission Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(-2716080, 0, 4951053); // Story sector of the script - i.e. (-2465,0,6541) Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point - must by typecasted to uint and referenced from EntityID enum RequiredMissions = new MyMissionID[] { MyMissionID.CHINESE_TRANSPORT }; // IDs of missions required to make this mission available RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.CHINESE_REFINERY_15_LAND_INSIDE_THE_TRANSPORTER }; RequiredActors = new MyActorEnum[] { MyActorEnum.TARJA }; m_objectives = new List<MyObjective>(); // Creating of list of submissions m_objective01_GetCloserToAsteroid = new MyObjective( (MyTextsWrapperEnum.CHINESE_REFINERY_01_GET_CLOSER_Name), MyMissionID.CHINESE_REFINERY_01_GET_CLOSER, (MyTextsWrapperEnum.CHINESE_REFINERY_01_GET_CLOSER_Description), null, this, new MyMissionID[] { }, new MyMissionLocation(baseSector, (uint)EntityID.O01GetCloserToAsterid), startDialogId: MyDialogueEnum.CHINESE_REFINERY_0100_GO_CLOSER ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudBackDoor }; m_objectives.Add(m_objective01_GetCloserToAsteroid); m_objective02_GetInside = new MyObjective( (MyTextsWrapperEnum.CHINESE_REFINERY_02_GET_IN_Name), MyMissionID.CHINESE_REFINERY_02_GET_IN, (MyTextsWrapperEnum.CHINESE_REFINERY_02_GET_IN_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_01_GET_CLOSER }, new MyMissionLocation(baseSector, (uint)EntityID.O02GetInside), startDialogId: MyDialogueEnum.CHINESE_REFINERY_0150_GET_INSIDE ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.Nothing }; m_objectives.Add(m_objective02_GetInside); m_objective03_FindSecretRoom = new MyObjective( (MyTextsWrapperEnum.CHINESE_REFINERY_03_FIND_SECRET_ROOM_Name), MyMissionID.CHINESE_REFINERY_03_FIND_SECRET_ROOM, (MyTextsWrapperEnum.CHINESE_REFINERY_03_FIND_SECRET_ROOM_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_02_GET_IN }, new MyMissionLocation(baseSector, (uint)EntityID.O03FindSecretRoom) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudResearchRoom }; m_objectives.Add(m_objective03_FindSecretRoom); m_objective03_D_FindSecterRoom = new MyObjectiveDialog( (MyTextsWrapperEnum.CHINESE_REFINERY_03_D_FIND_SECRET_ROOM_Name), MyMissionID.CHINESE_REFINERY_03_D_FIND_SECRET_ROOM, (MyTextsWrapperEnum.CHINESE_REFINERY_03_D_FIND_SECRET_ROOM_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_03_FIND_SECRET_ROOM }, dialogId: MyDialogueEnum.CHINESE_REFINERY_0200_LABORATORY ) { SaveOnSuccess = false }; m_objectives.Add(m_objective03_D_FindSecterRoom); m_objective04_SetVirus = new MyObjective( (MyTextsWrapperEnum.CHINESE_REFINERY_04_SET_VIRUS_Name), MyMissionID.CHINESE_REFINERY_04_SET_VIRUS, (MyTextsWrapperEnum.CHINESE_REFINERY_04_SET_VIRUS_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_03_D_FIND_SECRET_ROOM }, null, startDialogId: MyDialogueEnum.CHINESE_REFINERY_0300_DEACTIVATE_BOMB ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHub }; m_objective04_SetVirus.MissionEntityIDs.Add((uint)EntityID.HUBSecretRoomComputer); m_objectives.Add(m_objective04_SetVirus); m_objective05_DeactivateBomb = new MyUseObjective( (MyTextsWrapperEnum.CHINESE_REFINERY_05_DEACTIVATE_BOMB_Name), MyMissionID.CHINESE_REFINERY_05_DEACTIVATE_BOMB, (MyTextsWrapperEnum.CHINESE_REFINERY_05_DEACTIVATE_BOMB_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_04_SET_VIRUS }, new MyMissionLocation(baseSector, (uint)EntityID.NuclearHeadDummy), MyTextsWrapperEnum.PressToDeactivateNuclearHead, MyTextsWrapperEnum.NuclearHead, MyTextsWrapperEnum.DeactivatingInProgress, 5000, MyUseObjectiveType.Repairing ) { SaveOnSuccess = false }; m_objectives.Add(m_objective05_DeactivateBomb); m_objective06_GetToFirstTunnel = new MyObjective( (MyTextsWrapperEnum.CHINESE_REFINERY_06_GET_TO_FIRST_TUNNEL_Name), MyMissionID.CHINESE_REFINERY_06_GET_TO_FIRST_TUNNEL, (MyTextsWrapperEnum.CHINESE_REFINERY_06_GET_TO_FIRST_TUNNEL_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_05_DEACTIVATE_BOMB }, new MyMissionLocation(baseSector, (uint)EntityID.O06GetToFirstTunnel), startDialogId: MyDialogueEnum.CHINESE_REFINERY_0400_GO_TO_SECOND_ASTEROID ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudTunnel }; m_objectives.Add(m_objective06_GetToFirstTunnel); m_objective07_PastFirstTunnel = new MyObjective( (MyTextsWrapperEnum.CHINESE_REFINERY_07_PAST_FIRST_TUNNEL_Name), MyMissionID.CHINESE_REFINERY_07_PAST_FIRST_TUNNEL, (MyTextsWrapperEnum.CHINESE_REFINERY_07_PAST_FIRST_TUNNEL_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_06_GET_TO_FIRST_TUNNEL }, new MyMissionLocation(baseSector, (uint)EntityID.O07PastFirstTunnel) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudEnd }; m_objectives.Add(m_objective07_PastFirstTunnel); m_objective08_SetBugInComputer = new MyObjective( (MyTextsWrapperEnum.CHINESE_REFINERY_08_SET_BUG_IN_COMPUTER_Name), MyMissionID.CHINESE_REFINERY_08_SET_BUG_IN_COMPUTER, (MyTextsWrapperEnum.CHINESE_REFINERY_08_SET_BUG_IN_COMPUTER_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_07_PAST_FIRST_TUNNEL }, null, startDialogId: MyDialogueEnum.CHINESE_REFINERY_0500_FIND_THE_COMPUTER ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudHub }; m_objective08_SetBugInComputer.MissionEntityIDs.Add((uint)EntityID.HUBSetBugComputer); m_objectives.Add(m_objective08_SetBugInComputer); m_objective09_GetToSecondTunnel = new MyObjective( (MyTextsWrapperEnum.CHINESE_REFINERY_09_GET_TO_SECOND_TUNNEL_Name), MyMissionID.CHINESE_REFINERY_09_GET_TO_SECOND_TUNNEL, (MyTextsWrapperEnum.CHINESE_REFINERY_09_GET_TO_SECOND_TUNNEL_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_08_SET_BUG_IN_COMPUTER }, new MyMissionLocation(baseSector, (uint)EntityID.O09GetToSecondTunnel), startDialogId: MyDialogueEnum.CHINESE_REFINERY_0600_GO_TO_THIRD_ASTEROID ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudTunnel }; m_objectives.Add(m_objective09_GetToSecondTunnel); m_objective10_PastSecondTunnel = new MyObjective( (MyTextsWrapperEnum.CHINESE_REFINERY_10_PAST_SECOND_TUNNEL_Name), MyMissionID.CHINESE_REFINERY_10_PAST_SECOND_TUNNEL, (MyTextsWrapperEnum.CHINESE_REFINERY_10_PAST_SECOND_TUNNEL_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_09_GET_TO_SECOND_TUNNEL }, new MyMissionLocation(baseSector, (uint)EntityID.O10PastSecondTunnel) ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudEnd }; m_objectives.Add(m_objective10_PastSecondTunnel); m_objective11_SneakInsideTheStation = new MyObjective( // One member of that list - its type defines the type of submission - MySubmission means fly to the dummypoint to success. Here it is var so you cannot call methods on it (MyTextsWrapperEnum.CHINESE_REFINERY_11_SNEAK_INSIDE_THE_STATION_Name), // Name of the submission MyMissionID.CHINESE_REFINERY_11_SNEAK_INSIDE_THE_STATION, // ID of the submission - must be added to MyMissions.cs (MyTextsWrapperEnum.CHINESE_REFINERY_11_SNEAK_INSIDE_THE_STATION_Description), // Description of the submission null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_10_PAST_SECOND_TUNNEL }, // ID of submissions required to make this submission available - it is clear so this submission is the starting submission new MyMissionLocation(baseSector, (uint)EntityID.O11SneakToStation), startDialogId: MyDialogueEnum.CHINESE_REFINERY_0700_SNEAK_INSIDE_THE_STATION ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudBackDoor }; // False means do not save game in that checkpoint m_objectives.Add(m_objective11_SneakInsideTheStation); // Adding this submission to the list of submissions of current mission m_objective12_GetToOldPath = new MyObjective( // One member of that list - its type defines the type of submission - MySubmission means fly to the dummypoint to success. Here it is var so you cannot call methods on it (MyTextsWrapperEnum.CHINESE_REFINERY_12_GET_TO_OLD_PATH_Name), // Name of the submission MyMissionID.CHINESE_REFINERY_12_GET_TO_OLD_PATH, // ID of the submission - must be added to MyMissions.cs (MyTextsWrapperEnum.CHINESE_REFINERY_12_GET_TO_OLD_PATH_Description), // Description of the submission null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_11_SNEAK_INSIDE_THE_STATION }, // ID of submissions required to make this submission available - it is clear so this submission is the starting submission new MyMissionLocation(baseSector, (uint)EntityID.O12GetOldPath), startDialogId: MyDialogueEnum.CHINESE_REFINERY_0800_FIND_THE_OLD_PATH ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.Nothing }; // False means do not save game in that checkpoint m_objectives.Add(m_objective12_GetToOldPath); // Adding this submission to the list of submissions of current mission m_objective13_HackRefineryComputer = new MyObjective( // Var is used to call functions on that member (MyTextsWrapperEnum.CHINESE_REFINERY_13_HACK_REFINARY_COMPUTER_Name), MyMissionID.CHINESE_REFINERY_13_HACK_REFINARY_COMPUTER, (MyTextsWrapperEnum.CHINESE_REFINERY_13_HACK_REFINARY_COMPUTER_Description), null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_12_GET_TO_OLD_PATH }, null, startDialogId:MyDialogueEnum.CHINESE_REFINERY_0900_HACK_THE_COMPUTER ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudHub }; m_objective13_HackRefineryComputer.MissionEntityIDs.Add((uint)EntityID.HUBRefineryComputer); m_objectives.Add(m_objective13_HackRefineryComputer); m_objective14_GetOutOfTheStation = new MyObjective( // One member of that list - its type defines the type of submission - MySubmission means fly to the dummypoint to success. Here it is var so you cannot call methods on it (MyTextsWrapperEnum.CHINESE_REFINERY_14_GET_OUT_OF_THE_STATION_Name), // Name of the submission MyMissionID.CHINESE_REFINERY_14_GET_OUT_OF_THE_STATION, // ID of the submission - must be added to MyMissions.cs (MyTextsWrapperEnum.CHINESE_REFINERY_14_GET_OUT_OF_THE_STATION_Description), // Description of the submission null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_13_HACK_REFINARY_COMPUTER }, // ID of submissions required to make this submission available - it is clear so this submission is the starting submission new MyMissionLocation(baseSector, (uint)EntityID.O14GetOutOfTheStation), startDialogId: MyDialogueEnum.CHINESE_REFINERY_1000_GET_OUT ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.Nothing }; // False means do not save game in that checkpoint m_objectives.Add(m_objective14_GetOutOfTheStation); // Adding this submission to the list of submissions of current mission m_objective15_LandInsideTheTransporter = new MyObjective( // One member of that list - its type defines the type of submission - MySubmission means fly to the dummypoint to success. Here it is var so you cannot call methods on it (MyTextsWrapperEnum.CHINESE_REFINERY_15_LAND_INSIDE_THE_TRANSPORTER_Name), // Name of the submission MyMissionID.CHINESE_REFINERY_15_LAND_INSIDE_THE_TRANSPORTER, // ID of the submission - must be added to MyMissions.cs (MyTextsWrapperEnum.CHINESE_REFINERY_15_LAND_INSIDE_THE_TRANSPORTER_Description), // Description of the submission null, this, new MyMissionID[] { MyMissionID.CHINESE_REFINERY_14_GET_OUT_OF_THE_STATION }, // ID of submissions required to make this submission available - it is clear so this submission is the starting submission new MyMissionLocation(baseSector, (uint)EntityID.O15LandIn) // ID of dummy point of checkpoint ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.HudTransport }; // False means do not save game in that checkpoint m_objectives.Add(m_objective15_LandInsideTheTransporter); // Adding this submission to the list of submissions of current mission m_objective05_DeactivateBomb.OnMissionSuccess += O05DeactivateBombSuccess; m_objective04_SetVirus.OnMissionSuccess += O04SetVirusSuccess; m_objective08_SetBugInComputer.OnMissionSuccess += O08SetBugInComputerSuccess; m_objective13_HackRefineryComputer.OnMissionSuccess += O13HackRefinerySuccess; m_objective01_GetCloserToAsteroid.OnMissionLoaded += M01GetCloserToAsteroidLoaded; m_objective03_FindSecretRoom.OnMissionLoaded += M03FindSecretRoomLoaded; m_objective04_SetVirus.OnMissionLoaded += M04SetVirusLoaded; m_objective05_DeactivateBomb.OnMissionLoaded += M05DeactivateBombLoaded; m_objective06_GetToFirstTunnel.OnMissionLoaded += M06GetToFirstTunnelLoaded; m_objective07_PastFirstTunnel.OnMissionLoaded += M07PastFirstTunnelLoaded; m_objective08_SetBugInComputer.OnMissionLoaded += M08SetBugInComputerLoaded; m_objective10_PastSecondTunnel.OnMissionLoaded += M10PastSecondTunnelLoaded; m_objective11_SneakInsideTheStation.OnMissionLoaded += M11SneakInsideTheStationLoaded; m_objective13_HackRefineryComputer.OnMissionLoaded += M13HackRefineryComputerLoaded; m_objective14_GetOutOfTheStation.OnMissionLoaded += M14GetOutOfTheStationLoaded; }
public MyReichstagAMission() { ID = MyMissionID.REICHSTAG_A; /* ID must be added to MyMissions.cs */ DebugName = new StringBuilder("18a-Reichstag A"); Name = MyTextsWrapperEnum.REICHSTAG_A; Description = MyTextsWrapperEnum.REICHSTAG_A_Description; Flags = MyMissionFlags.Story; MyMwcVector3Int baseSector = new MyMwcVector3Int(-2325831, 0, -7186381); Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); RequiredMissions = new MyMissionID[] { MyMissionID.RUSSIAN_TRANSMITTER }; RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.REICHSTAG_A_COLONEL_DIALOGUE }; RequiredActors = new MyActorEnum[] { MyActorEnum.MADELYN, MyActorEnum.TARJA, MyActorEnum.VALENTIN }; m_objectives = new List <MyObjective>(); var introduction = new MyObjectiveDialog( MyMissionID.REICHSTAG_A_INTRODUCTION, null, this, new MyMissionID[] { }, dialogId: MyDialogueEnum.REICHSTAG_A_0100_INTRODUCTION ) { SaveOnSuccess = true }; m_objectives.Add(introduction); var getCloserToStation = new MyObjective( (MyTextsWrapperEnum.REICHSTAG_A_GET_TO_MAIN_BUILDING_Name), MyMissionID.REICHSTAG_A_GET_TO_MAIN_BUILDING, (MyTextsWrapperEnum.REICHSTAG_A_GET_TO_MAIN_BUILDING_Description), null, this, new MyMissionID[] { MyMissionID.REICHSTAG_A_INTRODUCTION }, new MyMissionLocation(baseSector, (uint)EntityID.MainBuilding) ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.HudMainBuilding }; getCloserToStation.OnMissionLoaded += GetCloserToStationLoaded; m_objectives.Add(getCloserToStation); var meetColonel = new MyMeetObjective( (MyTextsWrapperEnum.REICHSTAG_A_MEET_COLONEL_Name), MyMissionID.REICHSTAG_A_MEET_COLONEL, (MyTextsWrapperEnum.REICHSTAG_A_MEET_COLONEL_Description), this, new MyMissionID[] { MyMissionID.REICHSTAG_A_GET_TO_MAIN_BUILDING }, null, (uint)EntityID.Bot_WaltherStauffenberg, 100, 0.25f, null, startDialogueId: MyDialogueEnum.REICHSTAG_A_0300_REACHING_REICHSTAG ) { SaveOnSuccess = false, FollowMe = false, HudName = MyTextsWrapperEnum.HudColonelVonStauffenberg }; m_objectives.Add(meetColonel); var colonelDialogue = new MyObjectiveDialog( MyMissionID.REICHSTAG_A_COLONEL_DIALOGUE, null, this, new MyMissionID[] { MyMissionID.REICHSTAG_A_MEET_COLONEL }, dialogId: MyDialogueEnum.REICHSTAG_A_0400_OFFICER_DIALOGUE ) { SaveOnSuccess = true }; m_objectives.Add(colonelDialogue); colonelDialogue.OnMissionSuccess += ColonelDialogueSuccess; }
public MyJunkyardConvinceMission() { ID = MyMissionID.JUNKYARD_CONVINCE; /* ID must be added to MyMissions.cs */ Name = MyTextsWrapperEnum.JUNKYARD_CONVINCE; Description = MyTextsWrapperEnum.JUNKYARD_CONVINCE_Description; //"Convince the Smuggler to join you in your mission \n" DebugName = new StringBuilder("08a-Junkyard"); // Name of mission Flags = MyMissionFlags.Story; AchievementName = MySteamAchievementNames.Mission08_JunkyardDuncan; MyMwcVector3Int baseSector = new MyMwcVector3Int(2567538,0,-172727); // Story sector of the script - i.e. (-2465,0,6541) Location = new MyMissionLocation(baseSector, (uint)EntityID.StartLocation); // Starting dummy point - must by typecasted to uint and referenced from EntityID enum RequiredMissions = new MyMissionID[] { MyMissionID.LAST_HOPE }; // IDs of missions required to make this mission available RequiredMissionsForSuccess = new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_RETURN_TO_MS }; RequiredActors = new MyActorEnum[] { MyActorEnum.MARCUS, MyActorEnum.MADELYN, }; #region Objectives m_objectives = new List<MyObjective>(); // Creating of list of submissions // ----- objectives ----- m_objective01FindInformator = new MyMeetObjective( // One member of that list - its type defines the type of submission - MySubmission means fly to the dummypoint to success. Here it is var so you cannot call methods on it (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FIND_INFORMATOR_Name), // Name of the submission MyMissionID.JUNKYARD_CONVINCE_FIND_INFORMATOR, // ID of the submission - must be added to MyMissions.cs (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FIND_INFORMATOR_Description), // Description of the submission this, new MyMissionID[] { }, // ID of submissions required to make this submission available - it is clear so this submission is the starting submission null, "RavenGirl", 250, 1.00f, startDialogueId:MyDialogueEnum.JUNKYARD_CONVINCE_0100_INTRODUCE ) { // False means do not save game in that checkpoint SaveOnSuccess = false, FollowMe = false }; m_objective01FindInformator.OnMissionLoaded += O01FindInformatorLoaded; m_objectives.Add(m_objective01FindInformator); m_objective01BFindInformator = new MyObjectiveDialog( MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_FIND_INFORMATOR_Name, MyMissionID.JUNKYARD_CONVINCE_D_FIND_INFORMATOR, MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_FIND_INFORMATOR_Description, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_FIND_INFORMATOR }, dialogId: MyDialogueEnum.JUNKYARD_CONVINCE_0200_INFORMATOR ) { SaveOnSuccess = false, }; m_objective01BFindInformator.OnMissionLoaded += O01BFindInformatorLoaded; m_objective01BFindInformator.OnMissionSuccess += O01BFindInformatorSuccess; m_objectives.Add(m_objective01BFindInformator); m_objective02FindSmuggler = new MyObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FIND_SMUGGLER_Name), MyMissionID.JUNKYARD_CONVINCE_FIND_SMUGGLER, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FIND_SMUGGLER_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_D_FIND_INFORMATOR }, new MyMissionLocation(baseSector, (uint) EntityID.FindSmuggler) // ID of dummy point of checkpoint ) { SaveOnSuccess = false, SuccessDialogId = MyDialogueEnum.JUNKYARD_CONVINCE_0300_RUN, HudName = MyTextsWrapperEnum.HudManjeet }; m_objective02FindSmuggler.OnMissionLoaded += O02FindSmugglerLoaded; m_objective02FindSmuggler.OnMissionSuccess += O2FindSmugglerSuccess; m_objectives.Add(m_objective02FindSmuggler); m_objective04FollowSmuggler = new MyMeetObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FOLLOW_SMUGGLER_Name), MyMissionID.JUNKYARD_CONVINCE_FOLLOW_SMUGGLER, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FOLLOW_SMUGGLER_Description), this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_FIND_SMUGGLER }, null, (uint) EntityID.Smuggler, 300, 1.00f ) { SaveOnSuccess = false, FollowMe = false }; m_objective04FollowSmuggler.OnMissionLoaded += O04FollowSmugglerLoaded; m_objective04FollowSmuggler.OnMissionSuccess += O04FollowSmugglerSuccess; m_objectives.Add(m_objective04FollowSmuggler); m_objective04DFollowSmuggler = new MyObjectiveDialog( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_FOLLOW_SMUGGLER_Name), MyMissionID.JUNKYARD_CONVINCE_D_FOLLOW_SMUGGLER, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_FOLLOW_SMUGGLER_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_FOLLOW_SMUGGLER }, dialogId: MyDialogueEnum.JUNKYARD_CONVINCE_0500_CATCHED ) { SaveOnSuccess = false, }; m_objectives.Add(m_objective04DFollowSmuggler); m_objective04DFollowSmuggler.OnMissionLoaded += O04DFollowSmugglerLoaded; m_objective04DFollowSmuggler.OnMissionSuccess += O04DFollowSmugglerSuccess; m_objective05GetCloserToEnemy = new MyObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FLY_TO_ENEMY_Name), MyMissionID.JUNKYARD_CONVINCE_FLY_TO_ENEMY, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FLY_TO_ENEMY_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_D_FOLLOW_SMUGGLER }, new MyMissionLocation(baseSector, (uint) EntityID.FlyToEnemy), radiusOverride: 500f ) { SaveOnSuccess = true, HudName = MyTextsWrapperEnum.Nothing }; m_objective05GetCloserToEnemy.OnMissionLoaded += O05GetCloserToEnemyLoaded; m_objectives.Add(m_objective05GetCloserToEnemy); m_objective05MetZappasFirstGangman = new MyObjectiveDialog( MyMissionID.JUNKYARD_CONVINCE_MEET_GANGMAN, null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_FLY_TO_ENEMY }, dialogId: MyDialogueEnum.JUNKYARD_CONVINCE_0650_MET_ZAPPA_GUARD ); m_objectives.Add(m_objective05MetZappasFirstGangman); m_objective05MetZappasFirstGangman.OnMissionLoaded += O05MetZappasFirstGangmanLoaded; m_objective05MetZappasFirstGangman.OnMissionSuccess += O05MetZappasFirstGangmanSuccess; m_objective06KillWaves = new MyDestroyWavesObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_KILL_WAVES_Name), MyMissionID.JUNKYARD_CONVINCE_KILL_WAVES, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_KILL_WAVES_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_MEET_GANGMAN }, null, null, null, null, 4 ) { SaveOnSuccess = false }; m_objective06KillWaves.AddWave(new List<uint> {(uint)EntityID.SP1_1, (uint)EntityID.SP1_2, (uint)EntityID.SP1_3, (uint)EntityID.SP1_4}); m_objective06KillWaves.AddWave(new List<uint> {(uint)EntityID.SP2_1, (uint)EntityID.SP2_2}); m_objective06KillWaves.AddWave(new List<uint> { (uint)EntityID.SP3_1, (uint)EntityID.SP3_2, (uint)EntityID.SP3_3 }); m_objective06KillWaves.OnMissionLoaded += O06KillWavesLoaded; m_objective06KillWaves.OnMissionSuccess += O06KillWavesSuccess; m_objectives.Add(m_objective06KillWaves); m_objective07SpeakWithMomo = new MyMeetObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_SPEAK_WITH_MOMO_Name), MyMissionID.JUNKYARD_CONVINCE_SPEAK_WITH_MOMO, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_SPEAK_WITH_MOMO_Description), this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_KILL_WAVES }, null, (uint?) null, 500, 1.00f ) { SaveOnSuccess = false, FollowMe = false }; m_objectives.Add(m_objective07SpeakWithMomo); m_objective07DSpeakWithMomo = new MyObjectiveDialog( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_SPEAK_WITH_MOMO_Name), MyMissionID.JUNKYARD_CONVINCE_D_SPEAK_WITH_MOMO, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_SPEAK_WITH_MOMO_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_SPEAK_WITH_MOMO }, dialogId: MyDialogueEnum.JUNKYARD_CONVINCE_0900_THE_MOMO ) { SaveOnSuccess = false }; m_objectives.Add(m_objective07DSpeakWithMomo); m_objective07DSpeakWithMomo.OnMissionLoaded += O07DSpeakWithMomoLoaded; m_objective07DSpeakWithMomo.OnMissionSuccess += O07DSpeakWithMomoSuccess; m_objective08FightMomo = new MyObjectiveDestroy( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FIGHT_MOMO_Name), MyMissionID.JUNKYARD_CONVINCE_FIGHT_MOMO, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_FIGHT_MOMO_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_D_SPEAK_WITH_MOMO }, null, new List<uint> { (uint) EntityID.SP4_1, (uint) EntityID.SP4_2, (uint) EntityID.MomoZappaSP }, true ) { SaveOnSuccess = false, HudName = MyTextsWrapperEnum.Nothing }; m_objective08FightMomo.OnMissionLoaded += O08FightMomoLoaded; m_objectives.Add(m_objective08FightMomo); m_objective09ReturnToSmuggler = new MyMeetObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_RETURN_TO_SMUGGLER_Name), MyMissionID.JUNKYARD_CONVINCE_RETURN_TO_SMUGGLER, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_RETURN_TO_SMUGGLER_Description), this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_FIGHT_MOMO }, null, (uint) EntityID.Smuggler, 300, 1.00f //startDialogueId: MyDialogueEnum.JUNKYARD_CONVINCE_1000_LAST_OF_THEM ) { SaveOnSuccess = true, FollowMe = false }; m_objective09ReturnToSmuggler.OnMissionLoaded += O09ReturnToSmugglerLoaded; m_objectives.Add(m_objective09ReturnToSmuggler); m_objective09DReturnToSmuggler = new MyObjectiveDialog( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_RETURN_TO_SMUGGLER_Name), MyMissionID.JUNKYARD_CONVINCE_D_RETURN_TO_SMUGGLER, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_RETURN_TO_SMUGGLER_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_RETURN_TO_SMUGGLER }, dialogId: MyDialogueEnum.JUNKYARD_CONVINCE_1100_FIGHT_ENDS ) { SaveOnSuccess = false }; m_objectives.Add(m_objective09DReturnToSmuggler); m_objective09DReturnToSmuggler.OnMissionLoaded += O09DReturnToSmugglerLoaded; m_objective09DReturnToSmuggler.OnMissionSuccess += O09DReturnToSmugglerSuccess; m_objective10FindBombDealer = new MyMeetObjective( // One member of that list - its type defines the type of submission - MySubmission means fly to the dummypoint to success. Here it is var so you cannot call methods on it (MyTextsWrapperEnum.JUNKYARD_CONVINCE_GO_TO_BOMB_DEALER_Name), // Name of the submission MyMissionID.JUNKYARD_CONVINCE_GO_TO_BOMB_DEALER, // ID of the submission - must be added to MyMissions.cs (MyTextsWrapperEnum.JUNKYARD_CONVINCE_GO_TO_BOMB_DEALER_Description), // Description of the submission this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_D_RETURN_TO_SMUGGLER }, // ID of submissions required to make this submission available - it is clear so this submission is the starting submission null, (uint) EntityID.BombDealer, 300, 1.00f ) { SaveOnSuccess = false, RequiredActors = new MyActorEnum[] { MyActorEnum.TARJA, MyActorEnum.VALENTIN }, FollowMe = false }; m_objective10FindBombDealer.OnMissionLoaded += O10FindBombDealerLoaded; m_objectives.Add(m_objective10FindBombDealer); m_objective10DFindBombDealer = new MyObjectiveDialog( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_GO_TO_BOMB_DEALER_Name), MyMissionID.JUNKYARD_CONVINCE_D_GO_TO_BOMB_DEALER, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_GO_TO_BOMB_DEALER_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_GO_TO_BOMB_DEALER}, dialogId: MyDialogueEnum.JUNKYARD_CONVINCE_1300_BOMB_DEALER ) { SaveOnSuccess = false }; m_objectives.Add(m_objective10DFindBombDealer); m_objective10DFindBombDealer.OnMissionLoaded += O10DFindBombDealerLoaded; m_objective10DFindBombDealer.OnMissionSuccess += O10DFindBombDealerSuccess; m_objective11GetToMarcus = new MyMeetObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_GO_TO_MARCUS_Name), MyMissionID.JUNKYARD_CONVINCE_GO_TO_MARCUS, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_GO_TO_MARCUS_Description), this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_D_GO_TO_BOMB_DEALER }, null, "Marcus", 300, 1.00f ) { SaveOnSuccess = true, FollowMe = false, }; m_objective11GetToMarcus.OnMissionLoaded += O11GetToMarcusLoaded; m_objective11GetToMarcus.OnMissionSuccess += O11GetToMarcusSuccess; m_objectives.Add(m_objective11GetToMarcus); var objective11DGetToMarcus = new MyObjectiveDialog( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_GO_TO_MARCUS_Name), MyMissionID.JUNKYARD_CONVINCE_D_GO_TO_MARCUS, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_D_GO_TO_MARCUS_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_GO_TO_MARCUS }, dialogId: MyDialogueEnum.JUNKYARD_CONVINCE_1400_ARRIVED_AT_MARCUS ) { SaveOnSuccess = false }; m_objectives.Add(objective11DGetToMarcus); m_objective12BrFight = new MyDestroyWavesObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_BR_FIGHT_Name), MyMissionID.JUNKYARD_CONVINCE_BR_FIGHT, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_BR_FIGHT_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_D_GO_TO_MARCUS }, new List<uint> { (uint) EntityID.BR_SP_1, (uint) EntityID.BR_SP_2, (uint) EntityID.BR_SP_3, (uint) EntityID.BR_SP_4, (uint) EntityID.BR_SP_Boss } ) { SaveOnSuccess = false, StartDialogId = MyDialogueEnum.JUNKYARD_CONVINCE_1500_GANGSTER_FIGHT_STARTED, SuccessDialogId = MyDialogueEnum.JUNKYARD_CONVINCE_1600_GO_TO_MS }; m_objective12BrFight.OnMissionLoaded += O12BRFightLoaded; m_objective12BrFight.OnMissionSuccess += O12BRFightSuccess; m_objective12BrFight.AddWave(m_killWavesSecond1); m_objective12BrFight.AddWave(m_killWavesSecond2); m_objective12BrFight.AddWave(m_killWavesSecond3); m_objective12BrFight.AddWave(m_killWavesSecond4); m_objectives.Add(m_objective12BrFight); m_objective13FlyToMS = new MyObjective( (MyTextsWrapperEnum.JUNKYARD_CONVINCE_RETURN_TO_MS_Name), MyMissionID.JUNKYARD_CONVINCE_RETURN_TO_MS, (MyTextsWrapperEnum.JUNKYARD_CONVINCE_RETURN_TO_MS_Description), null, this, new MyMissionID[] { MyMissionID.JUNKYARD_CONVINCE_BR_FIGHT }, new MyMissionLocation(baseSector, MyMissionLocation.MADELYN_HANGAR), radiusOverride: 300f ) { SaveOnSuccess = true, SuccessDialogId = MyDialogueEnum.JUNKYARD_CONVINCE_1700_FINALE, HudName = MyTextsWrapperEnum.HudMadelynsSapho }; m_objectives.Add(m_objective13FlyToMS); #endregion m_spawns.AddRange(m_killWavesSecond1); m_spawns.AddRange(m_killWavesSecond2); m_spawns.AddRange(m_killWavesSecond3); m_spawns.AddRange(m_killWavesSecond4); }