mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Use boolean
This commit is contained in:
parent
2d22b06150
commit
ec2be36e81
@ -5,14 +5,14 @@ if (!hasInterface) exitWith {};
|
|||||||
// reload mutex, you can't play signal while reloading
|
// reload mutex, you can't play signal while reloading
|
||||||
GVAR(ReloadMutex) = true;
|
GVAR(ReloadMutex) = true;
|
||||||
|
|
||||||
|
// Add keybinds
|
||||||
{
|
{
|
||||||
_x params ["_currentName", "_key", ["_vanillaKey", ""] ];
|
_x params ["_currentName", "_key", ["_vanillaKey", false] ];
|
||||||
|
|
||||||
private _signalName = format [QGVAR(%1), _currentName];
|
|
||||||
|
|
||||||
// Don't add "ace_gestures_" prefix to BI gestures
|
// Don't add "ace_gestures_" prefix to BI gestures
|
||||||
if (_vanillaKey == "BI") then {
|
private _signalName = _currentName;
|
||||||
_signalName = _currentName;
|
if (!_vanillaKey) then {
|
||||||
|
_signalName = format [QGVAR(%1), _currentName];
|
||||||
};
|
};
|
||||||
|
|
||||||
private _code = compile format [QUOTE('%1' call FUNC(playSignal)), _signalName];
|
private _code = compile format [QUOTE('%1' call FUNC(playSignal)), _signalName];
|
||||||
@ -39,10 +39,10 @@ GVAR(ReloadMutex) = true;
|
|||||||
["Point", 71], // Numpad 7
|
["Point", 71], // Numpad 7
|
||||||
["Hold", 72], // Numpad 8
|
["Hold", 72], // Numpad 8
|
||||||
["Warning", 73], // Numpad 9
|
["Warning", 73], // Numpad 9
|
||||||
["Go", -1, "BI"],
|
["Go", -1, true],
|
||||||
["Advance", -1, "BI"],
|
["Advance", -1, true],
|
||||||
["Follow", -1, "BI"],
|
["Follow", -1, true],
|
||||||
["Up", -1, "BI"],
|
["Up", -1, true],
|
||||||
["Stop", -1, "BI"],
|
["Stop", -1, true],
|
||||||
["CeaseFire", -1, "BI"]
|
["CeaseFire", -1, true]
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user