Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //!runscript
- fuelcells on.
- set tweak to 0.
- set steeringmanager:pitchtorquefactor to 0.2.
- set steeringmanager:yawtorquefactor to 0.5.
- set steeringmanager:rollcontrolanglerange to 180.
- set propcutout to 99999.
- lock deploy to max(3,airspeed^0.7) + tweak.
- lock torque to max((100-ship:electriccharge),throttle * 100).
- set blades to ship:partsdubbedpattern("fanblade").
- set rotors to ship:modulesnamed("ModuleRoboticServoRotor").
- //set servos to ship:modulesnamed("ModuleRoboticRotationServo").
- //set angle to 0.
- set bladeMods to list().
- For b in blades {
- set bmod to b:getmodule("ModuleControlSurface").
- bmod:setfield("deploy", true).
- bladeMods:add(bmod).
- }
- set adjust to true.
- //lock angle to max(0,min(90,90-alt:radar*10)).
- when true then {
- set deploycopy to deploy.
- //set anglecopy to angle.
- if airspeed > propcutout {
- set torquecopy to 0.
- if bays bays off.
- } else {
- if not bays bays on.
- set torquecopy to torque.
- }
- For b in bladeMods b:setfield("deploy angle", deploycopy).
- for rt in rotors rt:setfield("torque limit(%)", torquecopy).
- //for s in servos if s:hasfield("target angle") s:setfield("target angle", anglecopy).
- return adjust.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement