mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
29 lines
779 B
C++
29 lines
779 B
C++
#include "script_component.hpp"
|
|
|
|
class CfgPatches {
|
|
class ADDON {
|
|
units[] = {};
|
|
weapons[] = {};
|
|
requiredVersion = REQUIRED_VERSION;
|
|
requiredAddons[] = {"ace_common"};
|
|
author[] = {"commy2"};
|
|
authorUrl = "https://github.com/commy2/";
|
|
VERSION_CONFIG;
|
|
};
|
|
};
|
|
|
|
#include "CfgEventHandlers.hpp"
|
|
|
|
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;
|
|
};
|
|
};
|