mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Convert local keywords to private
This commit is contained in:
parent
2c995f9c2c
commit
08813c1b75
@ -13,15 +13,15 @@ GVAR(ReloadMutex) = true;
|
||||
(findDisplay 46) displayAddEventHandler ["KeyDown", {
|
||||
if ((_this select 1) in actionKeys "ReloadMagazine") then {
|
||||
if ((isNull ACE_player) || {!alive ACE_player}) exitWith {false};
|
||||
local _weapon = currentWeapon ACE_player;
|
||||
private _weapon = currentWeapon ACE_player;
|
||||
|
||||
if (_weapon != "") then {
|
||||
GVAR(ReloadMutex) = false;
|
||||
|
||||
local _gesture = getText (configfile >> "CfgWeapons" >> _weapon >> "reloadAction");
|
||||
local _isLauncher = _weapon isKindOf ["Launcher", (configFile >> "CfgWeapons")];
|
||||
local _config = ["CfgGesturesMale", "CfgMovesMaleSdr"] select _isLauncher;
|
||||
local _duration = getNumber (configfile >> _config >> "States" >> _gesture >> "speed");
|
||||
private _gesture = getText (configfile >> "CfgWeapons" >> _weapon >> "reloadAction");
|
||||
private _isLauncher = _weapon isKindOf ["Launcher", (configFile >> "CfgWeapons")];
|
||||
private _config = ["CfgGesturesMale", "CfgMovesMaleSdr"] select _isLauncher;
|
||||
private _duration = getNumber (configfile >> _config >> "States" >> _gesture >> "speed");
|
||||
|
||||
if (_duration != 0) then {
|
||||
_duration = if (_duration < 0) then { abs _duration } else { 1 / _duration };
|
||||
|
@ -19,7 +19,7 @@ TRACE_1("params",_this);
|
||||
|
||||
if (!GVAR(ReloadMutex)) exitWith {false};
|
||||
|
||||
local _gesture = if (_this select [0,2] == "BI") then {
|
||||
private _gesture = if (_this select [0,2] == "BI") then {
|
||||
_this select [2]
|
||||
} else {
|
||||
if (((animationState ACE_player) select [0, 12]) in ["amovpercmstp", "amovpercmwlk", "amovpercmtac"] && weaponLowered ACE_player) then {
|
||||
|
@ -7,7 +7,7 @@
|
||||
_currentName = _currentName select [2];
|
||||
};
|
||||
|
||||
local _code = (compile format [QUOTE(QUOTE(QGVAR(%1)) call FUNC(playSignal);), _currentName]);
|
||||
private _code = (compile format [QUOTE(QUOTE(QGVAR(%1)) call FUNC(playSignal);), _currentName]);
|
||||
|
||||
[
|
||||
"ACE3 Gestures",
|
||||
|
Loading…
Reference in New Issue
Block a user