Disable checking weapon temp on fakeWeapon (#5600)

This commit is contained in:
PabstMirror 2017-10-11 16:36:48 -05:00 committed by jonpas
parent a95c380dcc
commit c8255960d6

View File

@ -54,7 +54,7 @@ class CfgVehicles {
};
class GVAR(CheckTemperature) {
displayName = CSTRING(CheckTemperatureShort);
condition = QUOTE( GVAR(enabled) && {switch (currentWeapon _target) do {case (''): {false}; case (primaryWeapon _target); case (handgunWeapon _target): {true}; default {false}}} );
condition = QUOTE( GVAR(enabled) && {switch (currentWeapon _target) do {case ('ACE_FakePrimaryWeapon'); case (''): {false}; case (primaryWeapon _target); case (handgunWeapon _target): {true}; default {false}}} );
exceptions[] = {"isNotInside", "isNotSwimming", "isNotSitting"};
statement = QUOTE( [ARR_3(_player, _target, currentWeapon _target)] call FUNC(checkTemperature); );
icon = QUOTE(PATHTOF(UI\temp_ca.paa));