Advertisement
frytko

Untitled

Apr 20th, 2023 (edited)
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.97 KB | Gaming | 0 0
  1. set done to false.
  2. startup.
  3. until done {
  4. ascent.
  5. }
  6. when ship:apoapsis < 90000 then { lock throttle to .5. wait until ship:apoapsis > 90000. lock throttle to 0.}
  7.  
  8. function ascend {
  9.   LOCK THROTTLE TO 1. STAGE.
  10.   until ship:altitude > 10000 then{
  11.       safetostage.
  12.       when SHIP:APOAPSIS >90000 then 0{LOCK THROTTLE TO 0. set done to true.}
  13.     }
  14.   }
  15.  
  16. function safetostage{
  17. when ship:maxthrustat(0) < 1 then {STAGE.wait.5.}
  18. }
  19.  
  20. function startup {
  21.   set done to false.
  22.   lock steering to heading (90,88).
  23.   rcs on.wait 1.
  24.   lock x to 7.32602*10^(-9)*ship:altitude^2 - 0.00168158*ship:altitude + 94.6117.
  25.   LOCK STEERING TO HEADING(90,x).
  26.   }
  27.  
  28. function temp {
  29.   when ship:altitude > 50000 then{
  30.     when ship:apoapsis < 90000 then { lock throttle to .5. wait until ship:apoapsis > 90000. lock throttle to 0.}
  31.     When Eta:apoapsis < 25 then {
  32.       lock throttle to 75000 - ship:periapsis.
  33.       when ship:maxthrustat(0) < 1 then {STAGE.wait.5.}
  34.       }
  35.     }
  36.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement