private void Boom2() { //EnableEntities(m_particlesExplosion2); //MyScriptWrapper.PlaySound3D(MyScriptWrapper.GetEntity(m_particlesExplosion2[0]), MySoundCuesEnum.SfxShipLargeExplosion); MyScriptWrapper.AddExplosions(m_particlesExplosion2, Explosions.MyExplosionTypeEnum.LARGE_SHIP_EXPLOSION, 1000000); Debug.WriteLine("BOOM2 " + MissionTimer.ElapsedTime); }
private void RaceExplosionsDetectorEntered(MyEntityDetector sender, MyEntity entity, int meetCriterias) { if (sender == m_detector_Explosion1 && entity == MySession.PlayerShip) { MyScriptWrapper.AddExplosions(m_explosionParticles1, MyExplosionTypeEnum.BOMB_EXPLOSION, 5); MyScriptWrapper.PlaySound3D(MyScriptWrapper.GetEntity(m_explosionParticles1[0]), MySoundCuesEnum.VocRace09dirtyTricks); //MyScriptWrapper.IncreaseHeadShake(12f); } if (sender == m_detector_Explosion2 && entity == MySession.PlayerShip) { MyScriptWrapper.AddExplosions(m_explosionParticles2, MyExplosionTypeEnum.BOMB_EXPLOSION, 5); //MyScriptWrapper.IncreaseHeadShake(10f); } if (sender == m_detector_Explosion3 && entity == MySession.PlayerShip) { MyScriptWrapper.AddExplosions(m_explosionParticles3, MyExplosionTypeEnum.BOMB_EXPLOSION, 5); //MyScriptWrapper.IncreaseHeadShake(11f); } if (sender == m_detector_TunnelExplosion && entity == MySession.PlayerShip) { MyScriptWrapper.AddExplosion(MyScriptWrapper.GetEntity((uint)EntityID.ParticleExplosionInTunnel), MyExplosionTypeEnum.BOMB_EXPLOSION, 5); //MyScriptWrapper.PlaySound3D(MySession.PlayerShip, MySoundCuesEnum.SfxAcquireDroneOn); //MyScriptWrapper.PlaySound3D(MySession.PlayerShip, MySoundCuesEnum.SfxShipLargeExplosion); MyScriptWrapper.PlayDialogue(MyDialogueEnum.JUNKYARD_RETURN_0500); } }
private void Boom() { StartMovingMadelyn2(); MyScriptWrapper.HideEntity(m_marcus); MyScriptWrapper.RemoveEntityMark(m_marcus); MyScriptWrapper.PlayDialogue(MyDialogueEnum.EAC_AMBUSH_1700); MyScriptWrapper.DeactivateSpawnPoints(m_wavesMarcusSpawns); MyScriptWrapper.AddExplosions(m_particlesExplosion1, Explosions.MyExplosionTypeEnum.LARGE_SHIP_EXPLOSION, 100, particleIDOverride: MyParticleEffectsIDEnum.Explosion_Medium); MissionTimer.RegisterTimerAction(3000, Boom1, false); MissionTimer.RegisterTimerAction(4000, Boom2, false); MissionTimer.RegisterTimerAction(4500, Boom2_2, false); MissionTimer.RegisterTimerAction(5000, Boom3, false); MissionTimer.RegisterTimerAction(5500, Boom4, false); MissionTimer.RegisterTimerAction(7000, Boom4_2, false); MissionTimer.RegisterTimerAction(30000, EndGame, false); }
private void Boom4_2() { MyScriptWrapper.AddExplosions(m_particlesExplosion4_2, Explosions.MyExplosionTypeEnum.LARGE_SHIP_EXPLOSION, 18000, 1000, particleIDOverride: MyParticleEffectsIDEnum.Explosion_Medium); MyScriptWrapper.AddExplosions(m_particlesExplosion4_2_Destroy, Explosions.MyExplosionTypeEnum.LARGE_SHIP_EXPLOSION, 100000, 0, false, false, MyParticleEffectsIDEnum.Explosion_Huge); }
private void Boom4() { MyScriptWrapper.AddExplosions(m_particlesExplosion5, Explosions.MyExplosionTypeEnum.LARGE_SHIP_EXPLOSION, 800, particleIDOverride: MyParticleEffectsIDEnum.Explosion_Medium); }