Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gear on.
- fuelcells on.
- lights off.
- list engines in es.
- for e in es e:activate.
- set es to ship:partsdubbedpattern("vector").
- for e in es {set e:gimbal:limit to 6. e:gimbal:doaction("free gimbal",true). }
- lock throttle to 0.
- bays off.
- rcs on.
- toggle ag2.
- brakes on.
- set servos to ship:modulesnamed("ModuleRoboticRotationServo").
- for s in servos {
- s:setfield("damping", 80).
- s:setfield("traverse rate", 40).
- s:setfield("locked",false).
- s:setfield("motor",true).
- }
- function tilt2 {
- parameter tlt is 0.
- for s in servos s:setfield("target angle", tlt).
- }.
- tilt2(0).
- lock altR to alt:radar.
- lock acc to max(1,(max(0.1,vdot(up:vector,facing:vector)) * ship:availablethrust * 0.2) / mass - body:mu / (body:radius^2)).
- lock throttle to (-verticalspeed - 1) - sqrt(2 * acc * max(altR - 70 + verticalspeed * 0.5,0.1)).
- when verticalspeed > 0 then {
- lock throttle to 0.
- lock steering to lookdirup(up:vector,facing:topvector).
- }
- lock steering to lookdirup(-velocity:surface + vxcl(up:vector, -velocity:surface * 0.3) + up:vector * 5, facing:topvector).
Add Comment
Please, Sign In to add comment