View difference between Paste ID: grDU6c4V and vxbY6GcK
SHOW: | | - or go back to the newest paste.
1
switch to 0.
2
ship:partsdubbedpattern("cockpit")[0]:controlfrom().
3-
fuelcells on.
3+
list engines in es. for e in es e:shutdown().
4
set steeringmanager:maxstoppingtime to 6.
5-
list engines in es.
5+
6-
for e in es e:activate.
6+
7-
set es to ship:partsdubbedpattern("vector").
7+
set es to ship:partsdubbedpattern("wolf").
8-
for e in es set e:gimbal:limit to 6.
8+
for w in es if vang(w:facing:vector, ship:facing:vector) > 10 w:activate().
9
10
for w in es set w:gimbal:limit to 10.
11
for w in es if vang(w:facing:vector, ship:facing:vector) < 10 set w:gimbal:limit to 100.
12-
toggle ag1.
12+
13
bays off. 
14
rcs on.
15
//toggle ag1.
16
brakes off.
17
set servos to ship:modulesnamed("ModuleRoboticRotationServo").
18
for s in servos { 
19
	s:setfield("damping", 80). 
20
	s:setfield("traverse rate", 40). 
21
	s:setfield("locked",false).
22
	s:setfield("motor",true).
23-
for s in servos s:setfield("target angle", tlt).
23+
24
function tilt2 {
25-
tilt2(20).
25+
26
for s in servos s:setfield("target angle", -tlt + 90).
27-
set p to 20.
27+
28
tilt2(0).
29-
when true then { tilt2(min(max(10,alt:Radar), 90)). return alt:Radar <  2000. }.
29+
30-
wait 1. 
30+
set p to 0.
31
lock steering to heading(x, p).
32-
//lock roll to max(-5,min(5, body:geopositionof(heading(x,0):vector):bearing)).
32+
set gotime to false.
33
when gotime then { tilt2(min(max(10,alt:Radar/10), 90)). return alt:Radar <  2000. }.
34
wait 0.25. 
35
lights on.
36
37-
when apoapsis > 55000 then lock throttle to 0.
37+
38-
when apoapsis > 40000 then { lock steering to prograde. for e in es if e:position:x > 0 set e:gimbal:limit to 100. }
38+
39
when abs(steeringmanager:angleerror) < 15 then { set gotime to true. lock throttle to 1. set p to 20. for e in es e:activate(). }
40
when alt:radar > 20 then gear off.
41
when alt:Radar > 2000 then { rcs off.  for e in es if e:position:x > 0 set e:gimbal:limit to 100. }
42
when apoapsis > body:atm:height + 20000 then lock throttle to 0.
43
when apoapsis > body:atm:height +  10e3 then { lock steering to prograde. for e in es if e:position:x > 0 set e:gimbal:limit to 100. }
44
45
46
47
48
49
50
51
52