Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lock gcdist to vang(tgt:position - body:position, -body:position)*constant:degtorad*body:radius.
- lock gcspeed to vdot(vxcl(up:vector, velocity:surface), vxcl(up:vector, tgt:position):normalized).
- lock tareta to gcdist / gcspeed.
- set sgfirst to 0.
- set sgp to 0.
- set sggo to true.
- set sgf to 8.
- set sgpr to 4.
- function sgd {
- parameter l. parameter d.
- If l:length > sgpr set sgpr to l:length.
- print (l:padleft(sgpr) + ": " +round(d,2)):padright(terminal:width) at (0, sgp).
- set sgp to sgp + 1.
- }.
- set sggo to false. wait 1. set sggo to true.
- On round(kuniverse:realtime * sgf) {
- set sgp to sgfirst.
- sgd("GC Distance", gcdist ).
- sgd("GC speed", gcspeed ).
- sgd("ETA (minutes)", tareta/60).
- sgd("Vertical Speed", ship:verticalspeed).
- sgd("alt radar",alt:radar).
- sgd("groundspeed",groundspeed).
- sgd("Ox",ship:oxidizer).
- sgd("Lq",ship:liquidfuel).
- Print "":padright(terminal:width) at (0,sgp).
- return sggo.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement