2015-01-17 20:32:34 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-17 20:32:34 +00:00
|
|
|
class CfgPatches {
|
|
|
|
class ADDON {
|
|
|
|
units[] = {};
|
|
|
|
weapons[] = {};
|
|
|
|
requiredVersion = REQUIRED_VERSION;
|
|
|
|
requiredAddons[] = {"ace_common"};
|
|
|
|
author[] = {"commy2"};
|
|
|
|
authorUrl = "https://github.com/commy2/";
|
|
|
|
VERSION_CONFIG;
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-17 20:32:34 +00:00
|
|
|
#include "CfgEventHandlers.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-17 20:32:34 +00:00
|
|
|
class ACE_Default_Keys {
|
|
|
|
class safeWeapon {
|
|
|
|
displayName = "$STR_ACE_SafeMode_SafeMode";
|
|
|
|
condition = QUOTE([_player] call EFUNC(common,canUseWeapon));
|
|
|
|
statement = QUOTE([ARR_3(_player, currentWeapon _player, currentMuzzle _player)] call FUNC(lockSafety));
|
|
|
|
exceptions[] = {"ACE_interaction_isNotEscorting"};
|
|
|
|
key = 41;
|
|
|
|
shift = 0;
|
|
|
|
control = 1;
|
|
|
|
alt = 0;
|
|
|
|
};
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|