mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
overheating: final fixes
This commit is contained in:
parent
81e603bf35
commit
d0f56f44ab
@ -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));
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user