Merge pull request #2546 from acemod/overheatJamFFV

Allow fixing jam when in FFV slot
This commit is contained in:
commy2
2015-09-21 19:51:14 +02:00

View File

@ -7,7 +7,7 @@ if (!hasInterface) exitWith {};
["ACE3 Weapons", QGVAR(unjamWeapon), localize LSTRING(UnjamWeapon), ["ACE3 Weapons", QGVAR(unjamWeapon), localize LSTRING(UnjamWeapon),
{ {
// Conditions: canInteract // Conditions: canInteract
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false}; if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
// Conditions: specific // Conditions: specific
if !([ACE_player] call EFUNC(common,canUseWeapon) && if !([ACE_player] call EFUNC(common,canUseWeapon) &&
{currentWeapon ACE_player in (ACE_player getVariable [QGVAR(jammedWeapons), []])} {currentWeapon ACE_player in (ACE_player getVariable [QGVAR(jammedWeapons), []])}