-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjust_obey_nodes.ks
More file actions
44 lines (31 loc) · 886 Bytes
/
just_obey_nodes.ks
File metadata and controls
44 lines (31 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
run once "/lib/ro".
if exists("/lib/menu.ks")
run once "/lib/menu.ks".
clearscreen.
print "This is a program that just obeys whatever maneuver nodes you put in front of it.".
if not SHIP:UNPACKED {
print "Waiting for ship to unpack.".
wait until SHIP:UNPACKED.
// give it time after unpacking to "really" work:
wait 0.
wait 0.
print "Ship is now unpacked.".
}
run once "lib/burn".
local prev_ag10 is ag10.
print "Toggle action group 10 to quit.".
push_steering_mgr_config(2, 1, 0.005, 0.05).
sas off.
obey_node_mode(should_quit@, do_precise_node@, "just_obey_nodes").
pop_steering_mgr_config().
print "just_obey_nodes done.".
function should_quit {
return ag10 <> prev_ag10.
}
function do_precise_node {
if exists("/precise_node") {
runpath( "/precise_node" ).
} else {
hudtext("precise_node script not present.", 5, 2, 20, yellow, true).
}
}