ACE3/addons/resting/config.cpp

32 lines
891 B
C++
Raw Normal View History

2015-01-15 22:34:35 +00:00
#include "script_component.hpp"
2015-01-15 22:34:35 +00:00
class CfgPatches {
class ADDON {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
author[] = {"KoffeinFlummi", "TaoSensai", "CAA-Picard"};
2015-01-15 22:34:35 +00:00
authorUrl = "https://github.com/KoffeinFlummi/";
VERSION_CONFIG;
};
};
2015-01-15 22:34:35 +00:00
#include "CfgEventHandlers.hpp"
2015-01-15 22:34:35 +00:00
class ACE_Default_Keys {
class restWeapon {
displayName = "$STR_ACE_Resting_RestWeapon";
condition = QUOTE([_player] call EFUNC(common,canUseWeapon) && {inputAction 'reloadMagazine' == 0} && {!weaponLowered _player} && {speed _player < 1});
statement = QUOTE([ARR_3(_player, _vehicle, currentWeapon _player)] call FUNC(restWeapon));
key = 15;
shift = 0;
control = 0;
alt = 0;
};
};
2015-01-15 22:34:35 +00:00
#include "CfgWeapons.hpp"
2015-01-15 22:34:35 +00:00
#include "CfgMoves.hpp"