Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Flight Status Script for kOS mod for Kerbal Space Program
- // by Niwo
- // Declaration:
- // SET vStat TO SHIP:PARTSDUBBED("Flight.Status")[0]. // Todo later
- clearscreen.
- //Print data to screen.
- UNTIL FALSE { // CTRL+C to break out
- // print "Running Module " + vStat + " " at (5,1).
- print "Flight Status: " + status + " " at (5,1).
- if SESSIONTIME < 59 {
- print "Session Time: " + round(SESSIONTIME) + " s " at (5,2).
- }.
- else {
- print "Session Time: " + round(SESSIONTIME / 60 )+ " min " at (5,2).
- }.
- print "===============================" at (5,3).
- if ALT:RADAR < 1000 {
- print "ALTITUDE: " + round(ALT:RADAR) + " m " at (5,4).
- }.
- else {
- print "ALTITUDE: " + round(ALT:RADAR / 1000) + " km " at (5,4).
- }.
- if SHIP:ALTITUDE < 1000 {
- print "ALTITUDE (ASL): " + round(SHIP:ALTITUDE) + " m " at (5,5).
- }.
- else {
- print "ALTITUDE (ASL): " + round(SHIP:ALTITUDE / 1000) + " km " at (5,5).
- }.
- if SHIP:APOAPSIS > 1000000 {
- print "APOAPSIS: " + round(SHIP:APOAPSIS / 1000000, 1) + " Mm " at (5,6).
- }.
- else if SHIP:APOAPSIS > 1000 {
- print "APOAPSIS: " + round(SHIP:APOAPSIS / 1000) + " km " at (5,6).
- }.
- else {
- print "APOAPSIS: " + round(SHIP:APOAPSIS) + " m " at (5,6).
- }.
- if SHIP:PERIAPSIS > 1000000 or SHIP:PERIAPSIS < -1000000 {
- print "PERIAPSIS: " + round(SHIP:PERIAPSIS / 1000000, 2) + " Mm " at (5,7).
- }.
- else if SHIP:PERIAPSIS > 1000 or SHIP:PERIAPSIS < -1000 {
- print "PERIAPSIS: " + round(SHIP:PERIAPSIS / 1000) + " km " at (5,7).
- }.
- else {
- print "PERIAPSIS: " + round(SHIP:PERIAPSIS) + " m " at (5,7).
- }.
- if ETA:APOAPSIS < 59 {
- print "ETA to AP: " + round(ETA:APOAPSIS) + " s " at (5,8).
- }.
- else {
- print "ETA to AP: " + round(ETA:APOAPSIS / 60) + " min " at (5,8).
- }.
- print "OAT: " + round(Ship:Sensors:TEMP) + " " at (5,9).
- // print "PRESS: " + round(Ship:Sensors:press) + " " at (5,10).
- // TODO FUEL BAR:
- print "Liquid Fuel: " + round(ship:liquidfuel) + " " at (5,10).
- if ship:liquidfuel < 100 {
- print "WARNING! FUEL LOW!" at (5,12).
- }.
- if ALT:RADAR < 5000 {
- print "WARNING! ALTITUDE LOW!" at (5,13).
- }.
- if ship:ELECTRICCHARGE < 100 {
- print "WARNING! BATTERY LOW!" at (5,14).
- wait 0.3.
- print " " at (5,14).
- wait 0.3.
- }.
- // clearscreen.
- // if false = 1 {
- // clearscreen. // Is not captured when escaping with ctrl + c :(
- // }.
- }.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement