Howto:Add blackout and redout settings
Jump to navigation
Jump to search
This is how to add blackout and redout settings to an aircraft. These settings will determine when the view will start to turn black or red and when it will be fully black or red due to g-force .
Involved properties
Blackout and redout are controlled through these properties in /sim/rendering/redout/
:
enabled
(bool)parameters/blackout-onset-g
(double)parameters/blackout-complete-g
(double)parameters/redout-onset-g
(double)parameters/redout-complete-g
(double)
These properties can be controlled at runtime or be added to any PropertyList XML file, for example an aircraft-set.xml or your own configuration file.
Example
This example show how these setting can be added to a propertylist xml file:
<PropertyList>
<!-- ... -->
<sim>
<!-- ... -->
<rendering>
<redout>
<enabled type="bool" userarchive="y">true</enabled>
<parameters>
<blackout-onset-g>6</blackout-onset-g>
<blackout-complete-g>8</blackout-complete-g>
<redout-onset-g>-2</redout-onset-g>
<redout-complete-g>-4</redout-complete-g>
</parameters>
</redout>
</rendering>
<!-- ... -->
</sim>
<!-- ... -->
</PropertyList>