Space Engineers

Space Engineers

UB3R V1RUS
wet lobster  [developer] Feb 23, 2015 @ 3:55pm
IN CASE THIS DOESN'T SHOW UP IN YOUR MENUS HERE IS THE CODE:
//AntiVirus2.0 //Set_Up_With_Timer_To_Both_Run_This_Software_And_Trigger_Timer //Thank_You_For_Suscribing_to_AntiVirus2.0 //Run_Script_AntiVirus2.0? /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///PASSWORD......__________________////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////// ///// //// // /// / ///// // // // /// // //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////// / //// / /// //// //////// ///// //// //// ///// /// // /// // //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////// /// // // //// //////// ////// /// //// ///// //// /// // ////////////////////////////////////////////////////////////////////////// //////////// // /// /// / /// //////// //////// // //// ///// /// /// /// //// /////////////////////////////////////////////////////// /////////// // /// //// /// ////// /////// / /// //// // / //////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////// ////// ////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////// ////// //// ///////////////////////////////////////////////////////////////////////// ///////////////////////////////// ////// //// ////////////////////////////////////////////////////////////////////////////// //////////////////////////////// /////////// //// ///////////////////////////////////////////////////////////////////////// /////////////////////////////// /// // ///////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //keeping_thrusters_functional //activating_defense //maintaining_full_cockpit_control //sustaining_power //stablizing_gravity //ensuring_visible_environment //maintaining_warhead_stability //reseting_gyros //keeping_cameras_online //finalizing_scan List<IMyTerminalBlock> a = new List<IMyTerminalBlock>(); List<IMyTerminalBlock> b = new List<IMyTerminalBlock>(); List<IMyTerminalBlock> c = new List<IMyTerminalBlock>(); List<IMyTerminalBlock> d = new List<IMyTerminalBlock>(); List<IMyTerminalBlock> e = new List<IMyTerminalBlock>(); List<IMyTerminalBlock> f = new List<IMyTerminalBlock>(); List<IMyTerminalBlock> g = new List<IMyTerminalBlock>(); List<IMyTerminalBlock> h = new List<IMyTerminalBlock>(); void Main() { GridTerminalSystem.GetBlocksOfType<IMyFunctionalBlock>(a); GridTerminalSystem.GetBlocksOfType<IMyTerminalBlock>(b); GridTerminalSystem.GetBlocksOfType<IMyWarhead>(c); GridTerminalSystem.GetBlocksOfType<IMyCockpit>(d); GridTerminalSystem.GetBlocksOfType<IMyThrust>(e); GridTerminalSystem.GetBlocksOfType<IMyThrust>(f); GridTerminalSystem.GetBlocksOfType<IMyGyro>(g); GridTerminalSystem.GetBlocksOfType<IMyGyro>(h); for(int i = 0; i < a.Count; i++) { a[i].GetActionWithName("OnOff_Off").Apply(a[i]); } for(int i = 0; i < b.Count; i++) { b[i].SetCustomName("WARNING VIRUS DETECTED........................................................................................"); } int CockpitCount = d.Count; for(int i = 0; i < CockpitCount; i++) { if (!((IMyCockpit)d[i]).ControlThrusters) break; ITerminalAction toggleThrusters = d[i].GetActionWithName("ControlThrusters"); toggleThrusters.Apply(d[i]); if (!((IMyCockpit)d[i]).DampenersOverride) break; ITerminalAction toggleDampeners = d[i].GetActionWithName("DampenersOverride"); toggleDampeners.Apply(d[i]); } bool thrustOn = true; bool thrustOff = false; for(int i=0; i< f.Count; i++) { thrustOff |= (f[i] as IMyFunctionalBlock).Enabled; thrustOn &= (f[i] as IMyFunctionalBlock).Enabled; } if (!thrustOff) { for(int i=0; i< e.Count; i++) e[i].GetActionWithName("IncreaseOverride").Apply(e[i]); } if (thrustOn) { for(int i=0; i< e.Count; i++) e[i].GetActionWithName("IncreaseOverride").Apply(e[i]); } for(int i=0; i < g.Count; i++) { var gyro = g[i] as IMyGyro; gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); gyro.GetActionWithName("IncreasePower").Apply(gyro); if(!gyro.GyroOverride) { gyro.GetActionWithName("Override").Apply(gyro); } } for(int i = 0; i < g.Count; i++) { g[i].GetActionWithName("IncreaseRoll").Apply(g[i]); g[i].GetActionWithName("IncreaseRoll").Apply(g[i]); g[i].GetActionWithName("IncreaseRoll").Apply(g[i]); g[i].GetActionWithName("IncreaseRoll").Apply(g[i]); g[i].GetActionWithName("IncreaseRoll").Apply(g[i]); g[i].GetActionWithName("IncreaseRoll").Apply(g[i]); g[i].GetActionWithName("IncreaseRoll").Apply(g[i]); g[i].GetActionWithName("IncreaseRoll").Apply(g[i]); g[i].GetActionWithName("IncreaseRoll").Apply(g[i]); g[i].GetActionWithName("IncreaseRoll").Apply(g[i]); } }