Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. clearscreen.
  2. lock throttle to 0.
  3. set ship:control:pilotmainthrottle to 0.
  4. print "Counting down from T-10 Seconds".
  5. print "T-10 Seconds".
  6. wait 1.
  7. print "T-9 Seconds".
  8. wait 1.
  9. print "T-8 Seconds".
  10. wait 1.
  11. print "T-7 Seconds".
  12. wait 1.
  13. print "T-6 Seconds".
  14. wait 1.
  15. print "T-5 Seconds".
  16. wait 1.
  17. print "T-4 Seconds".
  18. stage.
  19. print "Ignition. Launch Tower Detatch".
  20. lock throttle to 1.
  21. wait 1.
  22. print "T-3 Seconds".
  23. wait 1.
  24. print "T-2 Seconds".
  25. wait 1.
  26. print "T-1 Second".
  27. wait 1.
  28. print "Liftoff!".
  29. stage.
  30. until ship:velocity:surface:mag >= 70 {
  31. lock steering to heading(90,90).
  32. if ship:velocity:surface:mag >70 {
  33. unlock steering.
  34. break.
  35. }.
  36. }.
  37.  
  38. //This is what doesn't work. For some reason, the rocket does not face this heading.
  39. when ship:velocity:surface:mag >= 70 and ship:velocity:surface:mag < 200 then {
  40. print "T+"+round(missiontime)+" Seconds. Beginning Gravity Turn".
  41. lock steering to heading(90,80).
  42. wait 5.
  43. print "T+"+round(missiontime)+" Seconds. Gravity Turn Complete".
  44. }.
  45.  
  46.  
  47. until ship:apoapsis >= 140000 {
  48. lock steering to heading(90,arcsin(verticalspeed/airspeed)).
  49. }.
  50.  
  51. when ship:apoapsis >= 140000 then {
  52. unlock steering.
  53. set pointing to heading(90,20).
  54. lock steering to pointing.
  55. }.
  56. when ship:apoapsis >=200000 then{
  57. unlock steering.
  58. lock steering to prograde.
  59. }.
  60. when ship:lqdoxygen <607 and ship:altitude < 100000 then {
  61. stage.
  62. print "T+"+round(missiontime)+" Seconds. Second Stage Ignition".
  63. }.
  64. when ship:lqdoxygen < 10 and ship:altitude < 100000 then {
  65. stage.
  66. print "T+"+round(missiontime)+" Seconds. First Stage Seperation".
  67. rcs on.
  68. }.
  69. when ship:udmh < 2 and ship:maxthrust <0.1 then {
  70. stage.
  71. print "T+"+round(missiontime)+" Seconds. Nose Cone Seperation".
  72. toggle ag4.
  73. }.
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80. when (ship:apoapsis-ship:altitude) < 100 then {
  81. lock steering to prograde.
  82. wait 5.
  83. stage.
  84. print "T+"+round(missiontime)+" Seconds. Second Stage Seperation".
  85. wait 1.
  86. print "T+"+round(missiontime)+" Seconds. Spin motor Ignition".
  87. stage.
  88. wait 0.6.
  89. stage.
  90. print "T+"+round(missiontime)+" Seconds. Kick Motor Ignition".
  91. }.
  92.  
  93. wait until ship:periapsis >= 140000.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement