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
commit 0070ba113c

View File

@ -7,7 +7,7 @@ if (!hasInterface) exitWith {};
["ACE3 Weapons", QGVAR(unjamWeapon), localize LSTRING(UnjamWeapon),
{
// 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
if !([ACE_player] call EFUNC(common,canUseWeapon) &&
{currentWeapon ACE_player in (ACE_player getVariable [QGVAR(jammedWeapons), []])}