Changes

Jump to: navigation, search

Custom blackout system

1,062 bytes removed, 12:46, 22 November 2016
Install in an aircraft: fixed some code had sneaked in by mistake
## Author: Nikolai V. Chr. ##
## ##
## Version 1.04 05 License: GPL 2.0 ##
## ##
###################################################################################
 
var redout_loop = func {
setprop("sim/rendering/redout/enabled", 1);# enable the Fg default redout/blackout system.
setprop("sim/rendering/redout/parameters/blackout-onset-g", blackout_onset);
setprop("sim/rendering/redout/parameters/blackout-complete-g", blackout_fast);
setprop("sim/rendering/redout/parameters/redout-onset-g", redout_onset);
setprop("sim/rendering/redout/parameters/redout-complete-g", redout_fast);
setprop("sim/rendering/redout/parameters/onset-blackout-sec", blackout_onset_time);
setprop("sim/rendering/redout/parameters/fast-blackout-sec", blackout_fast_time);
setprop("sim/rendering/redout/parameters/onset-redout-sec", redout_onset_time);
setprop("sim/rendering/redout/parameters/fast-redout-sec", redout_fast_time);
setprop("sim/rendering/redout/parameters/recover-fast-sec", fast_time_recover);
setprop("sim/rendering/redout/parameters/recover-slow-sec", slow_time_recover);
}
var blackout_loop = func {
var blackout_init = func {
fdm = getprop("/sim/flight-model");
var timer = maketimer(0, func blackout_loop() );
timer.start();
if (getprop("sim/rendering/redout/internal/log/g-force") == nil) {
var timer = maketimer(0, func blackout_loop() );
timer.start();
} else {
var timer = maketimer(0.5, func redout_loop() );
timer.start();
}
549
edits

Navigation menu