public virtual void BackHomeDrive() { List <CelestialBody> Bodies = FlightGlobals.Bodies; ScreenMessages.PostScreenMessage(Utils.ImpDriveLogFormatter("starting. Jumping to body: " + Bodies[1] + "."), 5, ScreenMessageStyle.UPPER_CENTER); WarpDriver.MedTechWarp(Bodies[1], 23000); }
public virtual void JumpNow() { int PlanetCount = Bodies.Count; print(BMSHyperdrive.Utils.Log("Bodies loaded. Number of bodies: " + PlanetCount + ".")); if (Bodies[Target] != null) { ScreenMessages.PostScreenMessage(("#LOC_MRC_HDrive_API_GENERIC_DRIVES" + Bodies[Target].bodyDisplayName + "#LOC_MRC_HDrive_API_GENERIC_DRIVESP2"), 5, ScreenMessageStyle.UPPER_CENTER); print("[BMSHyperdrive]: starting. Jumping to body: " + Bodies[Target] + "."); WarpDriver.MedTechWarp(Bodies[Target], timeError); } else { ScreenMessages.PostScreenMessage("#autoLOC_MRC_HDrive_API_GENERIC_DRIVEF", 5, ScreenMessageStyle.UPPER_CENTER); NullRef(); return; } }
public virtual void ImprobabilityDrive() { List <CelestialBody> Bodies = FlightGlobals.Bodies; int PlanetCount = Bodies.Count; float RandomLimitValue = (PlanetCount + 1); print(Utils.ImpDriveLogFormatter("Bodies loaded. Number of bodies: " + PlanetCount + ".")); System.Random rnd = new System.Random(); int TargetFGI = rnd.Next(1, PlanetCount); int ProbabilityGen = rnd.Next(1, (int)Unexistor2); if (ProbabilityGen == 32 && BMSHyperdrive.ConfigParser.BMSHyperdriveConfigLoader.allowExistenceFailure == true) { BadStuff.Unexist(); } if (ProbabilityGen == 73 && BMSHyperdriveConfigLoader._allowKerbalDeath == true) { BadStuff.CrewDie(); } if (ProbabilityGen == 42 && BMSHyperdriveConfigLoader._allowBadOrbit == true) { BadStuff.BadOrbit(TargetFGI); } else { if (Bodies[TargetFGI] != null) { Debug.Log(Utils.ImpDriveLogFormatter("Starting ImpDrive. Jumping to " + Bodies[TargetFGI])); ScreenMessages.PostScreenMessage("Starting ImpDrive. Jumping to " + Bodies[TargetFGI] + ".", 5, ScreenMessageStyle.UPPER_CENTER); WarpDriver.MedTechWarp(Bodies[TargetFGI], timeError); } else { Debug.Log("NullReferenceException: List " + Bodies + "Contains no instance of an object with type CelestialBody at list place " + TargetFGI + "."); ScreenMessages.PostScreenMessage("Sorry, the Improbabilty Drive cannot jump to that location. Normality Assert-I-Tron detected", 5, ScreenMessageStyle.UPPER_CENTER); NullRef(); return; } } }
public virtual void BackHome() { List <CelestialBody> Bodies = FlightGlobals.Bodies; WarpDriver.MedTechWarp(Bodies[1], 23000); }
public virtual void Thalia() { List <CelestialBody> Bodies = FlightGlobals.Bodies; WarpDriver.MedTechWarp(Bodies[7], 23000); }
public virtual void Augustus() { List <CelestialBody> Bodies = FlightGlobals.Bodies; WarpDriver.MedTechWarp(Bodies[4], 23000); }
public virtual void Agrippina() { List <CelestialBody> Bodies = FlightGlobals.Bodies; WarpDriver.MedTechWarp(Bodies[25], 23000); }
public virtual void Narisse() { List <CelestialBody> Bodies = FlightGlobals.Bodies; WarpDriver.MedTechWarp(Bodies[22], 23000); }
public virtual void Hadrian() { List <CelestialBody> Bodies = FlightGlobals.Bodies; WarpDriver.MedTechWarp(Bodies[21], 23000); }
public virtual void Jannah() { List <CelestialBody> Bodies = FlightGlobals.Bodies; WarpDriver.MedTechWarp(Bodies[15], 23000); }