Skip to content

Module Reference: TestFlightFailure

anxcon edited this page Mar 1, 2016 · 14 revisions

TestFlightFailure

Properties

None on the base module

Description

TestFlightFailure is the base module for every failure in TestFlight. The base module by itself does nothing.

It is normal to have multiple TestFlightFailure modules on a part, one for each failure mode, but you should never have more than one of a specific type

Derived Modules

TestFlightFailure_Explode Generic failure for any part, goes boom

TestFlightFailure_IgnitionFail When turning engines on, chance to turn off

  • restoreIgnitionCharge = false //using RealFuels? set true to not waste charge
  • ignorePressureOnPad = true //ignore ignition failing related to Q if on pad

TestFlightFailure_ReducedMaxThrust For engines, to reduce thrust

  • thrustReduction = 0.5 //reduces to 50%

TestFlightFailure_LockGimbal For ModuleGimbal, basic zero/lock gimbal

TestFlightFailure_ResourceLeak For tanks to leak

  • resourceToLeak = random //or pick specific resource by name to leak
  • initialAmount = 10 //amount to leak immediately upon failure
  • perSecondAmount = 0.1 // amount leaked per second until fixed
  • calculatePerTick = false //set to true, perSecondAmount leak is to be updated during leak, only needed if the amount is to be based off current amount, see below
  • initialAmount and perSecondAmount may be flat values such as 10, 1.5, etc, or percentage based such as 5%c 10%t etc, %t denoting tank total capacity for that resource, while %c is current existing amount

TestFlightFailure_ShutdownEngine Shuts down the engine