Convert local keywords to private

This commit is contained in:
PabstMirror 2015-11-20 15:36:37 -06:00
parent 2c995f9c2c
commit 08813c1b75
3 changed files with 7 additions and 7 deletions

View File

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

View File

@ -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 {

View File

@ -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",