Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set point to ship:geoposition.
- lock steering to heading(90.5,0).
- set cam to addons:camera:flightcamera.
- set cam:hdg to 90.
- //set cam:mode to "locked".
- //wait 2.
- set cam:distance to 10.
- //set cam:pitch to -4.5.
- //set cam:target to ship:partsdubbedpattern("gears")[2].
- set doneflipping to false.
- set ppid to pidloop(3,0.2,0.5,-20,20).
- stage.
- brakes off.
- lock throttle to 1.
- lock p to 20.
- lock steering to heading(90, p).
- //when alt:radar > 2.14 then {
- when alt:radar > 2.44 then {
- gear off. unlock steering. set ship:control:pitch to 1.
- }
- when vang(heading(90,-105):vector, ship:facing:vector) < 35 then {
- set cam:hdg to 30.
- set cam:distance to 6.
- lock x to 90.5. set ppid to pidloop(3,0.2,0.5,-20,20).
- lock p to ppid:update(time:seconds, verticalspeed).
- set sl to 799.
- lock throttle to 1.
- set ship:control:pitch to 0.
- lock steering to heading(x,p).
- }
- when airspeed > 100 then set doneflipping to true.
- when doneflipping and alt:radar > 10 then set ppid:setpoint to -3.
- when doneflipping and alt:radar < 3.8 then set ppid:setpoint to 0.
- when doneflipping and alt:Radar < 2.5 then {
- set p to 90.
- set cam:hdg to 90.
- set cam:distance to 15.
- lock steering to heading(x,p).
- print "demo done".
- lock steering to lookdirup(point:position + up:vector*230,up:vector).
- set steeringmanager:pitchtorquefactor to 0.2.
- set steeringmanager:yawtorquefactor to 0.5.
- set steeringmanager:rollcontrolanglerange to 180.
- steeringmanager:resetpids().
- }
Add Comment
Please, Sign In to add comment