Advertisement
sumguytwitches

Manta Takeoff

Mar 9th, 2021 (edited)
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. toggle ag1.
  2. rcs on.
  3. fuelcells on.
  4. lights off.
  5. list engines in es.
  6. for e in es e:activate.
  7. set es to ship:partsdubbedpattern("vector").
  8. for e in es {set e:gimbal:limit to 12. e:gimbal:doaction("free gimbal",true). }
  9. lock throttle to 0.
  10. bays off.
  11. rcs on.
  12. toggle ag1.
  13. brakes off.
  14. set servos to ship:modulesnamed("ModuleRoboticRotationServo").
  15. for s in servos {
  16. s:setfield("damping", 80).
  17. s:setfield("traverse rate", 40).
  18. s:setfield("locked",false).
  19. s:setfield("motor",true).
  20. }
  21. function tilt2 {
  22. parameter tlt is 0.
  23. for s in servos s:setfield("target angle", tlt).
  24. }.
  25. tilt2(90).
  26. set x to 90.
  27. set p to 45.
  28. lock steering to heading(x, p).
  29. lock throttle to 1.
  30.  
  31. when alt:radar > 20 then gear off.
  32.  
  33. for e in es if vdot(ship:facing:vector, e:position) < - 1 set e:gimbal:limit to 100. run airplanesteer.
  34. //me when apoapsis > 10e3 then lock throttle to 0.
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement