local -> private

This commit is contained in:
PabstMirror 2015-11-17 14:33:17 -06:00
parent 87b9ff9785
commit d6000ae985
2 changed files with 6 additions and 6 deletions

View File

@ -38,11 +38,11 @@ if ((primaryWeapon _unit) == "") exitWith {};
(primaryWeaponMagazine _unit) params [["_magazine", ""]]; (primaryWeaponMagazine _unit) params [["_magazine", ""]];
if (_magazine == "") exitWith {}; if (_magazine == "") exitWith {};
local _initSpeed = getNumber (configFile >> "CfgMagazines" >> _magazine >> "initSpeed"); private _initSpeed = getNumber (configFile >> "CfgMagazines" >> _magazine >> "initSpeed");
local _ammo = getText (configFile >> "CfgMagazines" >> _magazine >> "ammo"); private _ammo = getText (configFile >> "CfgMagazines" >> _magazine >> "ammo");
local _count = getNumber (configFile >> "CfgMagazines" >> _magazine >> "count"); private _count = getNumber (configFile >> "CfgMagazines" >> _magazine >> "count");
local _caliber = getNumber (configFile >> "CfgAmmo" >> _ammo >> "ACE_caliber"); private _caliber = getNumber (configFile >> "CfgAmmo" >> _ammo >> "ACE_caliber");
_caliber = call { _caliber = call {
if (_ammo isKindOf ["ShellBase", (configFile >> "CfgAmmo")]) exitWith { 80 }; if (_ammo isKindOf ["ShellBase", (configFile >> "CfgAmmo")]) exitWith { 80 };
if (_ammo isKindOf ["RocketBase", (configFile >> "CfgAmmo")]) exitWith { 200 }; if (_ammo isKindOf ["RocketBase", (configFile >> "CfgAmmo")]) exitWith { 200 };
@ -50,7 +50,7 @@ _caliber = call {
if (_ammo isKindOf ["SubmunitionBase", (configFile >> "CfgAmmo")]) exitWith { 80 }; if (_ammo isKindOf ["SubmunitionBase", (configFile >> "CfgAmmo")]) exitWith { 80 };
if (_caliber <= 0) then { 6.5 } else { _caliber }; if (_caliber <= 0) then { 6.5 } else { _caliber };
}; };
local _loudness = (_caliber ^ 1.25 / 10) * (_initspeed / 1000) / 5; private _loudness = (_caliber ^ 1.25 / 10) * (_initspeed / 1000) / 5;
//If unit has a machine gun boost effective loudness 50% //If unit has a machine gun boost effective loudness 50%
if (_count >= 50) then {_loudness = _loudness * 1.5}; if (_count >= 50) then {_loudness = _loudness * 1.5};

View File

@ -20,7 +20,7 @@ TRACE_2("params",_unit,typeOf _unit);
if (!local _unit) exitWith {}; //XEH should only be called on local units if (!local _unit) exitWith {}; //XEH should only be called on local units
local _respawn = [0] call BIS_fnc_missionRespawnType; private _respawn = [0] call BIS_fnc_missionRespawnType;
//if respawn is not Group or side: //if respawn is not Group or side:
if (_respawn <= 3) then { if (_respawn <= 3) then {