Guest User

sampletext1

a guest
Aug 21st, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. clearscreen.
  2.  
  3. print "Initializing launch sequence".
  4. wait 1.
  5.  
  6. set flightstatus to 1.
  7. set throtvar to 1.0.
  8. set shipdir to heading(90,90).
  9. set maxAP to 100000.
  10. set maxPAP to 100000.
  11.  
  12. lock apoapsis to maxAP.
  13. print "Target apoapsis set to maxAP".
  14. wait 1.
  15.  
  16. lock steering to shipdir.
  17. print "Launch heading set".
  18. wait 1.
  19.  
  20. lock throttle to throtvar.
  21. print "Throttle set to full".
  22. wait 1.
  23.  
  24. print "Go for launch".
  25. stage.
  26. wait 0.001.
  27.  
  28. if flightstatus = 1 {
  29. if altitude < maxAP {
  30. if altitude > 10000 and altitude < 20000 {
  31. set shipdir to heading(90,80).
  32. wait 0.001.
  33. }
  34. if altitude > 20000 and altitude < 30000 {
  35. set shipdir to heading(90,70).
  36. wait 0.001.
  37. }
  38. if altitude > 30000 and altitude < 40000 {
  39. set shipdir to heading(90,60).
  40. wait 0.001.
  41. }
  42. if altitude > 40000 and altitude < 50000 {
  43. set shipdir to heading(90,50).
  44. wait 0.001.
  45. }
  46. if altitude > 50000 and altitude < 60000 {
  47. set shipdir to heading(90,40).
  48. wait 0.001.
  49. }
  50. if altitude > 60000 and altitude < 70000 {
  51. set shipdir to heading(90,30).
  52. wait 0.001.
  53. }
  54. if altitude > 70000 and altitude < 80000 {
  55. set shipdir to heading(90,20).
  56. wait 0.001.
  57. }
  58. if altitude > 80000 and altitude < 90000 {
  59. set shipdir to heading(90,10).
  60. wait 0.001.
  61. }
  62. if altitude >90000 {
  63. set shipdir to heading(90,0).
  64. wait 0.001.
  65. }
  66. if altitude >= maxAP {
  67. set throtvar to 0.
  68. set flightstatus to 2.
  69. print "Launch status complete. Preparing to enter orbit".
  70. wait 0.001.
  71. }
  72. }
  73. }
  74. if flightstatus = 2 {
  75. if maxPAP < maxAP {
  76. set shipdir to prograde.
  77. wait 1.
  78. set throtvar to 1.
  79. }
  80. if maxPAP >= maxAP {
  81. set throtvar to 0.
  82. print "Orbit achieved".
  83. set flightstatus to 3.
  84. }
  85. }
Advertisement
Add Comment
Please, Sign In to add comment