overheating: final fixes

This commit is contained in:
Nicolás Badano 2015-01-13 22:26:55 -03:00
parent 81e603bf35
commit d0f56f44ab
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class CfgVehicles {
class ACE_SwapBarrel {
displayName = "$STR_ACE_Overheating_SwapBarrel";
condition = QUOTE( 'ACE_SpareBarrel' in items _player && {getNumber (configFile >> 'CfgWeapons' >> currentWeapon _player >> 'ACE_Overheating_allowSwapBarrel') == 1} );
statement = QUOTE( [_player, currentWeapon _player] call FUNC(swapBarrel); );
statement = QUOTE( [ARR_2(_player, currentWeapon _player)] call FUNC(swapBarrel); );
showDisabled = 0;
priority = 3;
icon = QUOTE(PATHTOF(UI\spare_barrel_ca.paa));

View File

@ -7,6 +7,6 @@ _player = _this select 0;
_weapon = _this select 1;
// don't consume the barrel, but rotate through them.
[localize "STR_ACE_Overheating_SwappedBarrel", QUOTE(PATHOF(UI\spare_barrel_ca.paa))] call EFUNC(common,displayTextPicture);
[localize "STR_ACE_Overheating_SwappedBarrel", QUOTE(PATHTOF(UI\spare_barrel_ca.paa))] call EFUNC(common,displayTextPicture);
_player setVariable [format [QGVAR(%1), _weapon], [0, 0], false];