Control: Fix Engine Reverser behavior
This commit is contained in:
parent
93f3d635b1
commit
39383623b9
2 changed files with 5 additions and 5 deletions
|
@ -114,10 +114,10 @@ var doRevThrust = func {
|
|||
if (getprop("/controls/engines/engine[0]/reverser") == "1" and getprop("/controls/engines/engine[1]/reverser") == "1" and getprop("/gear/gear[1]/wow") == 1 and getprop("/gear/gear[2]/wow") == 1) {
|
||||
var pos1 = getprop("/controls/engines/engine[0]/throttle-rev");
|
||||
var pos2 = getprop("/controls/engines/engine[1]/throttle-rev");
|
||||
if (pos1 < 0.65) {
|
||||
if (pos1 < 0.649) {
|
||||
setprop("/controls/engines/engine[0]/throttle-rev", pos1 + 0.15);
|
||||
}
|
||||
if (pos2 < 0.65) {
|
||||
if (pos2 < 0.649) {
|
||||
setprop("/controls/engines/engine[1]/throttle-rev", pos2 + 0.15);
|
||||
}
|
||||
}
|
||||
|
@ -139,12 +139,12 @@ var unRevThrust = func {
|
|||
if (getprop("/controls/engines/engine[0]/reverser") == "1" or getprop("/controls/engines/engine[1]/reverser") == "1") {
|
||||
var pos1 = getprop("/controls/engines/engine[0]/throttle-rev");
|
||||
var pos2 = getprop("/controls/engines/engine[1]/throttle-rev");
|
||||
if (pos1 > 0.05) {
|
||||
if (pos1 > 0.051) {
|
||||
setprop("/controls/engines/engine[0]/throttle-rev", pos1 - 0.15);
|
||||
} else {
|
||||
unRevThrust_b();
|
||||
}
|
||||
if (pos2 > 0.05) {
|
||||
if (pos2 > 0.051) {
|
||||
setprop("/controls/engines/engine[1]/throttle-rev", pos2 - 0.15);
|
||||
} else {
|
||||
unRevThrust_b();
|
||||
|
|
|
@ -1 +1 @@
|
|||
4512
|
||||
4513
|
Reference in a new issue