Skip to content

Commit

Permalink
Fix Can't toggle safemode in FFV seats #3819
Browse files Browse the repository at this point in the history
Also block safemode when no weapon
  • Loading branch information
PabstMirror committed May 23, 2016
1 parent 36205e3 commit ccbd52e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/safemode/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ if (!hasInterface) exitWith {};
["ACE3 Weapons", QGVAR(safeMode), localize LSTRING(SafeMode),
{
// Conditions: canInteract
if !([ACE_player, objNull, ["isNotEscorting"]] call EFUNC(common,canInteractWith)) exitWith {false};
if !([ACE_player, objNull, ["isNotEscorting", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
// Conditions: specific
if !([ACE_player] call CBA_fnc_canUseWeapon && {currentWeapon ACE_player != binocular ACE_player}) exitWith {false};
if !([ACE_player] call CBA_fnc_canUseWeapon && {currentWeapon ACE_player != binocular ACE_player} && {currentWeapon ACE_player != ""}) exitWith {false};

// Statement
[ACE_player, currentWeapon ACE_player, currentMuzzle ACE_player] call FUNC(lockSafety);
Expand Down

0 comments on commit ccbd52e

Please sign in to comment.