public void SendMissionProgress(MyMissionBase mission, MyMissionProgressType progressType, MyTextsWrapperEnum? messageEnum = null)
        {
            MyEventMissionProgress message = new MyEventMissionProgress();
            message.MissionId = mission != null ? (int)mission.ID : (int?)null;
            message.ProgressType = progressType;
            message.MessageEnum = messageEnum.HasValue ? (int)messageEnum.Value : (int?)null;

            Peers.SendToAll(ref message, NetDeliveryMethod.ReliableOrdered);
        }
Exemplo n.º 2
0
        private void GetOreSubmissionLoaded(MyMissionBase sender)
        {
            MyScriptWrapper.PlayDialogue(Audio.Dialogues.MyDialogueEnum.RIFT_0500_ENTERINGRIFT);

            MyEntityDetector DialogueDetector_Mining = MyScriptWrapper.GetDetector((uint)EntityID.Detector_Dialogue_Mining);
            DialogueDetector_Mining.OnEntityEnter += DialogueMining;
            DialogueDetector_Mining.On();
            m_miningquotes = 1;
        }
Exemplo n.º 3
0
 private void ReachTheRiftSubmissionLoaded(MyMissionBase sender)
 {
     MyScriptWrapper.PlayDialogue(Audio.Dialogues.MyDialogueEnum.RIFT_0400_SHOPPINGDONE);
     MissionTimer.RegisterTimerAction(20000, PlayRiftMusic, false);
 }
Exemplo n.º 4
0
        private void GetSuppliesSubmissionLoaded(MyMissionBase sender)
        {
            MyScriptWrapper.PlayDialogue(Audio.Dialogues.MyDialogueEnum.RIFT_0100_INTRO2);

            MyEntityDetector DialogueDetector_Base = MyScriptWrapper.GetDetector((uint)EntityID.Detector_Dialogue_Base);
            DialogueDetector_Base.OnEntityEnter += DialogueBase;
            DialogueDetector_Base.On();
        }
Exemplo n.º 5
0
 private void ChangeShipOnOnMissionSuccess(MyMissionBase sender)
 {
     MyScriptWrapper.FadedOut += MyScriptWrapper_FadedOut;
     MyScriptWrapper.FadeOut();
 }
Exemplo n.º 6
0
 private void GetArmedLoaded(MyMissionBase sender)
 {
     m_detectorWeaponry = MyScriptWrapper.GetDetector(MyScriptWrapper.GetEntity((uint)EntityID.Detector_Weaponry));
     m_detectorWeaponry.On();
     m_detectorWeaponry.OnEntityEnter += WeaponryDetectorEntered;
 }
Exemplo n.º 7
0
 private void PlaygroundSubmissionSubmissionSuccess(MyMissionBase sender)
 {
     var puzzleReset = MyScriptWrapper.GetDetector(MyScriptWrapper.GetEntity(572));
     puzzleReset.OnEntityEnter += new OnEntityEnter(puzzleReset_OnEntityEnter);
     puzzleReset.On();
     var puzzleFinish = MyScriptWrapper.GetDetector(MyScriptWrapper.GetEntity(753));
     puzzleFinish.OnEntityEnter += new OnEntityEnter(puzzleFinish_OnEntityEnter);
     puzzleFinish.On();
     foreach (uint item in Puzzle)
     {
         var puzzleDetector = MyScriptWrapper.GetDetector(MyScriptWrapper.GetEntity(item));
         puzzleDetector.OnEntityEnter += new OnEntityEnter(puzzleDetector_OnEntityEnter);
         puzzleDetector.On();
     }
 }
Exemplo n.º 8
0
 public virtual void Load(MyMissionBase sender) { }
        private void OptionalSaveMinersAcceptSubmissionSuccess(MyMissionBase sender)
        {
            // open doors
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch8), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch7), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch6), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch5), true);
            // way down
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch2), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch1), true);
            // way to miners
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch3), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch4), true);

            // set off detector in storage but spawn bots there
            var storageDetector = MyScriptWrapper.GetDetector(MyScriptWrapper.GetEntity((uint)EntityID.DetectorCommandCentreEntrance));
            storageDetector.Off();
            MyScriptWrapper.ActivateSpawnPoint((uint)EntityID.SpawnPointStorageRoute);
            
            // Dialogue
            MyScriptWrapper.PlayDialogue(Audio.Dialogues.MyDialogueEnum.EAC_SURVEY_SITE_1000_RESEARCHERS_1);
        }
Exemplo n.º 10
0
        private void OptionalSaveMinersAcceptSubmissionLoaded(MyMissionBase sender)
        {
            MyEntityDetector hangarDetector = MyScriptWrapper.GetDetector(MyScriptWrapper.GetEntity((uint)EntityID.DetectorHangar));
            hangarDetector.OnEntityEnter += HangarRouteReached;
            hangarDetector.On();

            // unlock way from command centre
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl5), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl6), true);
            // lock way to command centre
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl8), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl9), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl7), false);

            MyScriptWrapper.ApplyTransition(MyMusicTransitionEnum.LightFight, 100, "KA28");
        }
Exemplo n.º 11
0
 private void HangarLoaded(MyMissionBase sender)
 {
     MyScriptWrapper.ApplyTransition(MyMusicTransitionEnum.LightFight, 100, "KA27");
 }
Exemplo n.º 12
0
        private void CommandCenterAgainLoaded(MyMissionBase sender)
        {
            foreach (var turret in m_turrets)
            {
                MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity(turret), true);
            }

            // activate detector for Command center entrace.
            var storageDetector = MyScriptWrapper.GetDetector(MyScriptWrapper.GetEntity((uint)EntityID.DetectorCommandCentreEntrance));
            storageDetector.OnEntityEnter += StorageRouteReached;
            storageDetector.On();

            // activate
            MyScriptWrapper.ActivateSpawnPoint((uint)EntityID.SpawnPointCommandCentre2);

            // deactivate spawns from previous session
            MyScriptWrapper.DeactivateSpawnPoint((uint)EntityID.SpawnPointWorkshop1);
            MyScriptWrapper.DeactivateSpawnPoint((uint)EntityID.SpawnPointWorkshop2);
            
            // dialogue
            MyScriptWrapper.PlayDialogue(Audio.Dialogues.MyDialogueEnum.EAC_SURVEY_SITE_0560_GENERATORUP);
        }
Exemplo n.º 13
0
        private void GeneratorSuccess(MyMissionBase sender)
        {
            if (!MyScriptWrapper.IsEntityDead((uint)EntityID.GeneratorLight))
            {
                MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.GeneratorLight), false);
            }

            // disable vendor
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.VendorHangar), true);

            //activate lights
            MyScriptWrapper.SetLight(MyScriptWrapper.TryGetEntity((uint)EntityID.Light1), true);
            MyScriptWrapper.SetLight(MyScriptWrapper.TryGetEntity((uint)EntityID.Light2), true);
            MyScriptWrapper.SetLight(MyScriptWrapper.TryGetEntity((uint)EntityID.Light3), true);
            MyScriptWrapper.SetLight(MyScriptWrapper.TryGetEntity((uint)EntityID.Light4), true);
            MyScriptWrapper.SetLight(MyScriptWrapper.TryGetEntity((uint)EntityID.Light5), false);
            MyScriptWrapper.SetLight(MyScriptWrapper.TryGetEntity((uint)EntityID.Light6), false);

            foreach (var light in m_LightsAllOfThem)
            {
                if ((MyScriptWrapper.TryGetEntity(light) is MyPrefabLight))
                {
                    MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity(light), true);
                    // MyPrefabLight lightprefab = MyScriptWrapper.GetEntity(light) as MyPrefabLight;
                    // lightprefab.GetLight().Intensity = lightprefab.GetLight().Intensity * 5;
                }
            }

            // animate generators
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.Generator1), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.Generator2), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.Generator3), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.Generator4), true);

            // unlock way to command centre
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl8), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl9), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl7), true);

            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl3), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl4), true);

        }
Exemplo n.º 14
0
        private void GeneratorLoaded(MyMissionBase sender)
        {
            // deactivate spawns in living area
            MyScriptWrapper.DeactivateSpawnPoint((uint)EntityID.SpawnPointInside);
            MyScriptWrapper.DeactivateSpawnPoint((uint)EntityID.SpawnPointRouteLiving1);
            MyScriptWrapper.DeactivateSpawnPoint((uint)EntityID.SpawnPointRouteLiving2);
            MyScriptWrapper.DeactivateSpawnPoint((uint)EntityID.SpawnPointRouteLiving3);

            // activate detectors for ambush and stuff happening inside workshop
            MyScriptWrapper.ActivateSpawnPoint((uint)EntityID.SpawnPointCommandCentre1);
            MyEntityDetector workshopDetector = MyScriptWrapper.GetDetector(MyScriptWrapper.GetEntity(76666));
            workshopDetector.OnEntityEnter += WorkshopReached;
            workshopDetector.On();

            //change music mood
            //MyAudio.ApplyTransition(MyMusicTransitionEnum.TensionBeforeAnAction);
        }
Exemplo n.º 15
0
 private void ReturnSubmissionLoaded(MyMissionBase sender)
 {
 }
Exemplo n.º 16
0
        private void CommandCenterLoaded(MyMissionBase sender)
        {
            MinerWars.AppCode.Game.Render.MyRender.GetRenderProfiler().StartProfilingBlock("CommandCenterLoaded");

            // stop cutscene
            
            MyScriptWrapper.DeactivateSpawnPoint((uint)EntityID.SpawnPointPipe1);
            MyScriptWrapper.DeactivateSpawnPoint((uint)EntityID.SpawnPointPipe2);
            MyScriptWrapper.DeactivateSpawnPoint((uint)EntityID.SpawnPointPipe3);
            MyScriptWrapper.DeactivateSpawnPoint((uint)EntityID.SpawnPointPipe4);
              
            // activate bots inside base
            MyScriptWrapper.ActivateSpawnPoint((uint)EntityID.SpawnPointInside);
             
            // activate detector for another wave of bots
            MyEntityDetector routeLivingDetector = MyScriptWrapper.GetDetector(MyScriptWrapper.GetEntity((uint)EntityID.DetectorRouteLiving));
            routeLivingDetector.OnEntityEnter += RouteLivingReached;
            routeLivingDetector.On();

            // activate detector for Command center entrace.
            //MyEntityDetector commandDoorDetector = MyScriptWrapper.GetDetector(MyScriptWrapper.GetEntity((uint)EntityID.DetectorCommandDoor));
            //commandDoorDetector.OnEntityEnter += commandDoorReached;
            //commandDoorDetector.On();

            // lock doors around control centre
            //MyScriptWrapper.SetEntityMode(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl1), false);
            //MyScriptWrapper.SetEntityMode(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl2), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl3), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl4), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl5), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl6), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl7), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl8), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorNearControl9), false);

            // lock ore processing and research centers
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch1), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch2), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch3), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch4), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch5), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch6), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch7), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorProcessingResearch8), false);
            // always locked
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorLocked1), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorLocked2), false);
            // generator room always locked
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorGenerator1), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorGenerator2), false);

            //change music mood
            //MyAudio.ApplyTransition(MyMusicTransitionEnum.Mystery);

            MinerWars.AppCode.Game.Render.MyRender.GetRenderProfiler().EndProfilingBlock();
        }
Exemplo n.º 17
0
        private void OptionalSaveMinersSubmissionSuccess(MyMissionBase sender)
        {
            // set miners to follow player
            MySmallShipBot miner01 = MyScriptWrapper.TryGetEntity((uint)EntityID.SavedMiner1) as MySmallShipBot;
            miner01.Follow(MySession.PlayerShip);
            MySmallShipBot miner02 = MyScriptWrapper.TryGetEntity((uint)EntityID.SavedMiner2) as MySmallShipBot;
            miner02.Follow(MySession.PlayerShip);
            MySmallShipBot miner03 = MyScriptWrapper.TryGetEntity((uint)EntityID.SavedMiner3) as MySmallShipBot;
            miner03.Follow(MySession.PlayerShip);
                              
            // send there bots from storage
            MyScriptWrapper.GetSmallShipBotsInDummyPoint((uint)EntityID.LoadingBayDummy, saveMinersEnemyShips, MinerWars.AppCode.Game.World.Global.MyFactionRelationEnum.Enemy);
            foreach (MySmallShipBot enemyShip in saveMinersEnemyShips)
            {
                enemyShip.SetWaypointPath("BackHangAssault");
            }   

            // Dialogue
            MyScriptWrapper.PlayDialogue(Audio.Dialogues.MyDialogueEnum.EAC_SURVEY_SITE_1100_RESEARCHERS_2);
        }
 private void PlaygroundSubmissionSubmissionSuccess(MyMissionBase sender)
 {
     
 }
Exemplo n.º 19
0
        private void HangarLastStandLoaded(MyMissionBase sender)
        {
            // Player entered final hangar for big battle

            // Lock all doors
            /*
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorHangar1), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorHangar2), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorHangar3), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorHangar4), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorHangar5), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorHangar6), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorHangar7), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorHangar8), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorHangar9), false);
            // Lock door you came from
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorHangar10), false);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.DoorHangar11), false);
              */

            /*
            m_spawnPointSmartWaves.SpawnIntervalInMS = 7000;
            m_spawnPointSmartWaves.SpawnInGroups = true;
            m_spawnPointSmartWaves.MaxBotsCount = 5;
              */
            // change music mood
            //MyAudio.ApplyTransition(MyMusicTransitionEnum.LightFight);

            // set player ship priority to be equal to everything else
            //MyScriptWrapper.SetEntityPriority(MySession.PlayerShip, 0);

            // Timer
            MissionTimer.RegisterTimerAction(5000, ActivatePhase1, false);
            MissionTimer.RegisterTimerAction(10000, ActivatePhase1Explosion, false);
            MissionTimer.RegisterTimerAction(60000, ActivatePhase2, false);
            MissionTimer.RegisterTimerAction(68000, ActivatePhase2Explosion, false);
            MissionTimer.RegisterTimerAction(120000, ActivatePhase3, false);
            MissionTimer.RegisterTimerAction(130000, ActivatePhase3Explosion, false);
            MissionTimer.RegisterTimerAction(170000, DangerMark, false);
            MissionTimer.RegisterTimerAction(179000, hangarBayExplosion01, false);
            MissionTimer.RegisterTimerAction(179300, hangarBayExplosion02, false);
            MissionTimer.RegisterTimerAction(179800, hangarBayExplosion03, false);
            MissionTimer.RegisterTimerAction(40000, ActivateOptionalPhase, false);
            MissionTimer.RegisterTimerAction(60000, ActivateOptionalPhaseExplosion, false);

            // deactivate storage spawn
            MyScriptWrapper.DeactivateSpawnPoint((uint)EntityID.SpawnPointStorageRoute);

            // check this
            //m_optionalSaveMinersAccept.Enabled = false;
            //m_optionalSaveMiners.Enabled = false;

            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.Right_Control), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.Right_Generator), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.Right_RightTurretLight), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.Right_Light2), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.Left_Control), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.Left_Generator), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.Left_LeftTurretLight), true);
            MyScriptWrapper.SetEntityEnabled(MyScriptWrapper.TryGetEntity((uint)EntityID.Left_Light2), true);

            MyScriptWrapper.ApplyTransition(MyMusicTransitionEnum.DesperateWithStress, 100, "KA02b");
        }
Exemplo n.º 20
0
        void PlaceRadarSucces(MyMissionBase sender)
        {
            MyScriptWrapper.Highlight(RadarEntity, false,this);
            MyScriptWrapper.EnablePhysics(RadarEntity, true);

           
            var inventory = MyScriptWrapper.GetPlayerInventory();
            var items = new List<MyInventoryItem> ();
            inventory.GetInventoryItems(ref items, MyMwcObjectBuilderTypeEnum.SmallShip_Radar, null);//SmallShip_AlienObjectDetector,

            inventory.RemoveInventoryItems(items,false);

        }
Exemplo n.º 21
0
        private void HangarEscapeLoaded(MyMissionBase sender)
        {
            // Big battle ended, mothership is here, hangar doors are opened (exploded)
                                  /*
            m_spawnPointSmartWaves.SpawnIntervalInMS = 0;
            m_spawnPointSmartWaves.SpawnInGroups = false;
            m_spawnPointSmartWaves.MaxBotsCount = 4;
                                    */

            // PetrM - show Madelyn
            MyScriptWrapper.UnhideEntity(MyScriptWrapper.GetEntity("Madelyn"));

            MissionTimer.RegisterTimerAction(1000, RegenerateWaypointGraph, false);

            

            // In the end some more bots will spawn, towers will go offline and hangar will open with mothership waiting
            MyScriptWrapper.ActivateSpawnPoint((uint)EntityID.SpawnPointSurvived);
            //change music mood
            MyScriptWrapper.ApplyTransition(MyMusicTransitionEnum.Victory, 100);
            // deactivate spawnpoints inside base
            MyScriptWrapper.DeactivateSpawnPoint((uint)EntityID.SpawnPointPhase1);
            MyScriptWrapper.DeactivateSpawnPoint((uint)EntityID.SpawnPointPhase2);
            MyScriptWrapper.DeactivateSpawnPoint((uint)EntityID.SpawnPointPhase3);

            MyEntity marker = MyScriptWrapper.TryGetEntity((uint)EntityID.ExplosionHangarBay2);
            if (marker != null)
            {
                MyScriptWrapper.RemoveEntityMark(marker);
            }

            MyScriptWrapper.PlayDialogue(Audio.Dialogues.MyDialogueEnum.EAC_SURVEY_SITE_0800_PICKUP);

            //sender.Location.Entity = MyScriptWrapper.GetMothershipHangar(MyScriptWrapper.GetEntity("Madelyn"));
        }
Exemplo n.º 22
0
 private void GoToShipyardLoaded(MyMissionBase sender)
 {
     m_detectorShipyard = MyScriptWrapper.GetDetector(MyScriptWrapper.GetEntity((uint)EntityID.Detector_Shipyard));
     m_detectorShipyard.On();
     m_detectorShipyard.OnEntityEnter += ShipyardDetectorEntered;
 }
Exemplo n.º 23
0
 void MyEACSurveySiteMission_OnMissionSuccess(MyMissionBase sender)
 {
     if (MyClientServer.LoggedPlayer.IsDemoUser())
     {
         MyGuiScreenGamePlay.Static.DrawDemoEnd = true;
     }
 }
Exemplo n.º 24
0
 public virtual void Update(MyMissionBase sender)
 {
 }
Exemplo n.º 25
0
 public virtual void Success(MyMissionBase sender)
 {
 }
Exemplo n.º 26
0
 private void GetSuppliesSubmissionSuccess(MyMissionBase sender)
 {
     
 }
Exemplo n.º 27
0
 public virtual void Load(MyMissionBase sender)
 {
 }
Exemplo n.º 28
0
 private void ReachTheRiftSubmissionSuccess(MyMissionBase sender)
 {
     
 }
Exemplo n.º 29
0
 public virtual void Update(MyMissionBase sender) { }
Exemplo n.º 30
0
        private void GetOreSubmissionSuccess(MyMissionBase sender)
        {
            MyScriptWrapper.EntityInventoryItemAmountChanged -= OreAmountChanged;

            // remove the mined plutonium to prevend stupid players from breaking the game
            MyScriptWrapper.AddNotification(MyScriptWrapper.CreateNotification(MyTextsWrapperEnum.PlutoniumStored, MyGuiManager.GetFontMinerWarsBlue(), 5000, new object[] { URANITE_TO_OBTAIN }));
            MyScriptWrapper.RemoveInventoryItemAmount(MyScriptWrapper.GetPlayerInventory(), MyMwcObjectBuilderTypeEnum.Ore, (int)MyMwcObjectBuilder_Ore_TypesEnum.URANITE, URANITE_TO_OBTAIN);
        }
Exemplo n.º 31
0
 public virtual void Success(MyMissionBase sender) { }
Exemplo n.º 32
0
 private void ReturnSubmissionSuccess(MyMissionBase sender)
 {
 }
Exemplo n.º 33
0
        private void ToTheBaseLoaded(MyMissionBase sender)
        {
            MinerWars.AppCode.Game.Render.MyRender.GetRenderProfiler().StartProfilingBlock("ToTheBaseLoaded");

            // activate detector for commentary to cutscene
            MyEntityDetector pipeDetector = MyScriptWrapper.GetDetector(MyScriptWrapper.GetEntity((uint)EntityID.DetectorPipe));
            pipeDetector.OnEntityEnter += PipeReached;
            pipeDetector.On();
            
            //change music mood
            //MyAudio.ApplyTransition(MyMusicTransitionEnum.TensionBeforeAnAction);

            // disable shakes
            m_minesShake = false;

            MinerWars.AppCode.Game.Render.MyRender.GetRenderProfiler().EndProfilingBlock();
        }