1
0
Fork 0

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:
Julian Smith 2017-01-31 13:54:58 +00:00 committed by Julian Smith
parent 7647515f52
commit 96ab5884f9

View file

@ -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);