A32X: More animations in new VC

This commit is contained in:
Joshua Davidson 2017-10-23 17:44:21 -04:00
parent 2dae312a97
commit c9f051c1fe
4 changed files with 6814 additions and 6260 deletions

View file

@ -444,6 +444,10 @@
</FMGC>
<controls>
<footrest-cpt n="0" type="double">0</footrest-cpt>
<footrest-cpt n="1" type="double">0</footrest-cpt>
<footrest-fo n="0" type="double">0</footrest-fo>
<footrest-fo n="1" type="double">0</footrest-fo>
<adirs n="0">
<adr n="0">
<fault type="bool">false</fault>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -454,5 +454,40 @@ var rTray = func {
}
}
var l1Pedal = func {
var lPedalCMD = getprop("/controls/footrest-cpt[0]");
if (lPedalCMD < 1.0) {
interpolate("/controls/footrest-cpt[0]", 1.0, 0.5);
} else {
interpolate("/controls/footrest-cpt[0]", 0.0, 0.5);
}
}
var l2Pedal = func {
var l2PedalCMD = getprop("/controls/footrest-cpt[1]");
if (l2PedalCMD < 1.0) {
interpolate("/controls/footrest-cpt[1]", 1.0, 0.5);
} else {
interpolate("/controls/footrest-cpt[1]", 0.0, 0.5);
}
}
var r1Pedal = func {
var rPedalCMD = getprop("/controls/footrest-fo[0]");
if (rPedalCMD < 1.0) {
interpolate("/controls/footrest-fo[0]", 1.0, 0.5);
} else {
interpolate("/controls/footrest-fo[0]", 0.0, 0.5);
}
}
var r2Pedal = func {
var r2PedalCMD = getprop("/controls/footrest-fo[1]");
if (r2PedalCMD < 1.0) {
interpolate("/controls/footrest-fo[1]", 1.0, 0.5);
} else {
interpolate("/controls/footrest-fo[1]", 0.0, 0.5);
}
}
setprop("/systems/acconfig/libraries-loaded", 1);