Nasal/controls.nas: turn parking brakes off when normal brakes are applied.
Avoids problems with toggling - difficult to reliably turn parking brakes off.
This commit is contained in:
parent
7647515f52
commit
96ab5884f9
1 changed files with 1 additions and 0 deletions
|
@ -489,6 +489,7 @@ var fullBrakeTime = 0.5;
|
|||
var applyBrakes = func(v, which = 0) {
|
||||
if (which <= 0) { interpolate("/controls/gear/brake-left", v, fullBrakeTime); }
|
||||
if (which >= 0) { interpolate("/controls/gear/brake-right", v, fullBrakeTime); }
|
||||
setprop("/controls/gear/brake-parking", 0);
|
||||
}
|
||||
var applyPickle = func(v) {
|
||||
setprop("/controls/armament/pickle", v);
|
||||
|
|
Loading…
Add table
Reference in a new issue