FemboyGaymer

kOS Script

Apr 18th, 2026 (edited)
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | Gaming | 0 0
  1. clearScreen.
  2. set navMode to "surface".
  3. set startalt to alt:radar.
  4. set cutoff to false.
  5. set specificport to ship:dockingports[0].
  6. set throtvar to 0.
  7. set steervar to ship:srfretrograde.
  8. lock steering to steervar.
  9. lock throttle to throtvar.
  10. print "Waiting for suicide burn".
  11. set procstep to 0.
  12.  
  13. until cutoff = true {
  14. set uTTI to addons:tr:timetillimpact.
  15. set thrust to ship:availablethrustat(ship:q).
  16. set accel to thrust / ship:mass.
  17. set udecceltime to ship:airspeed / accel.
  18.  
  19. set decceltime to round(udecceltime).
  20. set TTI to round(uTTI).
  21.  
  22. print TTI.
  23. print decceltime.
  24.  
  25. }
  26.  
  27. until cutoff = true {
  28.  
  29. wait until decceltime + 3 = TTI.
  30. print "Initiating suicide burn".
  31. set throtvar to 1.0.
  32. set procstep to 1.
  33.  
  34. if procstep = 1 and ship:airspeed <= 10 {
  35. print "Beginning deployment sequence".
  36. set steervar to ship:up.
  37.  
  38. if ship:airspeed >= 3 {
  39. set throtvar to 1.0.
  40. } else {
  41. set throtvar to 0.0.
  42. }
  43.  
  44. }
  45.  
  46. if alt:radar - startalt <= 3 {
  47. set procstep to 2.
  48. print "Deploying cargo".
  49. specificport:undock().
  50. set steervar to heading(90,90).
  51. set throtvar to 1.0.
  52. SAS off.
  53. wait 1.
  54. set steervar to heading(90,45).
  55. wait 2.
  56. print "Deployment complete".
  57. set ship:control:pilotmainthrottle to 0.
  58. unlock steering.
  59. unlock throttle.
  60. set cutoff to true.
  61. }
  62.  
  63. }
  64.  
Advertisement
Add Comment
Please, Sign In to add comment