Refactor reentry into a library and make it usable by rocket.ks
This commit is contained in:
parent
bbf1d118e3
commit
b8f6e90e1f
5 changed files with 43 additions and 21 deletions
|
@ -4,23 +4,5 @@
|
|||
|
||||
@lazyglobal off.
|
||||
|
||||
SAS off.
|
||||
|
||||
// stage until only stage 0 remains.
|
||||
until STAGE:NUMBER <= 1 {
|
||||
stage.
|
||||
}
|
||||
|
||||
lock STEERING to SHIP:SRFRETROGRADE.
|
||||
|
||||
for p in SHIP:PARTS {
|
||||
if p:MODULES:Find("ModuleRTAntenna") > -1 and p:GetModule("ModuleRTAntenna"):ALLEVENTNAMES:Find("Deactivate") > -1 {
|
||||
p:GetModule("ModuleRTAntenna"):DoEvent("Deactivate").
|
||||
}
|
||||
}
|
||||
|
||||
when SHIP:ALTITUDE - SHIP:GEOPOSITION:TERRAINHEIGHT < 2500 then {
|
||||
CHUTES on.
|
||||
}
|
||||
|
||||
wait until false.
|
||||
runoncepath("/lib/reentry").
|
||||
PerformReentry().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue