A3XX: Fix bug in electrical, and sounds
This commit is contained in:
parent
399ab73b03
commit
3fc3ca4eae
3 changed files with 71 additions and 29 deletions
|
@ -198,7 +198,7 @@ var master_elec = func {
|
|||
setprop("/systems/electrical/gen-ext", 0);
|
||||
}
|
||||
|
||||
if (rpmapu >= 94.9 and gen_apu_sw and !extpwr_on and !gen_ext_sw) {
|
||||
if (rpmapu >= 94.9 and gen_apu_sw and !gen_ext_sw) {
|
||||
setprop("/systems/electrical/gen-apu", 1);
|
||||
} else {
|
||||
setprop("/systems/electrical/gen-apu", 0);
|
||||
|
|
|
@ -1122,10 +1122,13 @@
|
|||
<mode>once</mode>
|
||||
<path>Aircraft/IDG-A32X/Sounds/Cockpit/700hz.wav</path>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>controls/CVR/tone</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<and>
|
||||
<property>sim/current-view/internal</property>
|
||||
<equals>
|
||||
<property>controls/CVR/tone</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</and>
|
||||
</condition>
|
||||
<volume>
|
||||
<factor>0.60</factor>
|
||||
|
@ -1137,10 +1140,13 @@
|
|||
<mode>once</mode>
|
||||
<path>Aircraft/IDG-A32X/Sounds/Cockpit/relay2.wav</path>
|
||||
<condition>
|
||||
<greater-than>
|
||||
<property>/systems/electrical/battery1-amps</property>
|
||||
<value>25</value>
|
||||
</greater-than>
|
||||
<and>
|
||||
<property>sim/current-view/internal</property>
|
||||
<greater-than>
|
||||
<property>/systems/electrical/battery1-amps</property>
|
||||
<value>25</value>
|
||||
</greater-than>
|
||||
</and>
|
||||
</condition>
|
||||
<volume>
|
||||
<factor>0.60</factor>
|
||||
|
@ -1152,10 +1158,13 @@
|
|||
<mode>once</mode>
|
||||
<path>Aircraft/IDG-A32X/Sounds/Cockpit/relay2.wav</path>
|
||||
<condition>
|
||||
<greater-than>
|
||||
<property>/systems/electrical/battery2-amps</property>
|
||||
<value>25</value>
|
||||
</greater-than>
|
||||
<and>
|
||||
<property>sim/current-view/internal</property>
|
||||
<greater-than>
|
||||
<property>/systems/electrical/battery2-amps</property>
|
||||
<value>25</value>
|
||||
</greater-than>
|
||||
</and>
|
||||
</condition>
|
||||
<volume>
|
||||
<factor>0.60</factor>
|
||||
|
@ -1168,6 +1177,7 @@
|
|||
<path>Aircraft/IDG-A32X/Sounds/Cockpit/relay4.wav</path>
|
||||
<condition>
|
||||
<and>
|
||||
<property>sim/current-view/internal</property>
|
||||
<equals>
|
||||
<property>/controls/switches/cart</property>
|
||||
<value>1</value>
|
||||
|
@ -1184,35 +1194,67 @@
|
|||
</relay>
|
||||
|
||||
<relay>
|
||||
<name>RelayAPU</name>
|
||||
<name>RelayEXTB</name>
|
||||
<mode>once</mode>
|
||||
<path>Aircraft/IDG-A32X/Sounds/Cockpit/relay4.wav</path>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>/systems/electrical/gen-apu</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<and>
|
||||
<property>sim/current-view/internal</property>
|
||||
<equals>
|
||||
<property>/controls/switches/cart</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/controls/electrical/switches/gen-ext</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
<equals>
|
||||
<property>/controls/electrical/switches/gen-extb</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</and>
|
||||
</condition>
|
||||
<volume>
|
||||
<factor>0.60</factor>
|
||||
</volume>
|
||||
</relay>
|
||||
|
||||
<relay>
|
||||
<name>RelayAPU</name>
|
||||
<mode>once</mode>
|
||||
<path>Aircraft/IDG-A32X/Sounds/Cockpit/relay4.wav</path>
|
||||
<condition>
|
||||
<and>
|
||||
<property>sim/current-view/internal</property>
|
||||
<equals>
|
||||
<property>/systems/electrical/gen-apu</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</and>
|
||||
</condition>
|
||||
<volume>
|
||||
<factor>0.60</factor>
|
||||
</volume>
|
||||
</relay>
|
||||
|
||||
<relay>
|
||||
<name>Avionics</name>
|
||||
<mode>looped</mode>
|
||||
<path>Aircraft/IDG-A32X/Sounds/FL2070/320efis.wav</path>
|
||||
<condition>
|
||||
<or>
|
||||
<greater-than>
|
||||
<property>/systems/electrical/bus/ac1</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
<greater-than>
|
||||
<property>/systems/electrical/bus/ac2</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
</or>
|
||||
<and>
|
||||
<property>sim/current-view/internal</property>
|
||||
<or>
|
||||
<greater-than>
|
||||
<property>/systems/electrical/bus/ac1</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
<greater-than>
|
||||
<property>/systems/electrical/bus/ac2</property>
|
||||
<value>110</value>
|
||||
</greater-than>
|
||||
</or>
|
||||
</and>
|
||||
</condition>
|
||||
<volume>
|
||||
<factor>0.60</factor>
|
||||
|
|
|
@ -1 +1 @@
|
|||
2027
|
||||
2028
|
Reference in a new issue