ACE3/addons/overheating/config.cpp

34 lines
952 B
C++
Raw Normal View History

2015-01-13 03:23:14 +00:00
#include "script_component.hpp"
2015-01-13 03:23:14 +00:00
class CfgPatches {
class ADDON {
units[] = {};
weapons[] = {"ACE_SpareBarrel"};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common", "ace_interaction"};
2015-01-13 03:23:14 +00:00
author[] = {"commy2", "KoffeinFlummi", "CAA-Picard"};
authorUrl = "https://github.com/commy2/";
VERSION_CONFIG;
};
};
2015-01-13 03:23:14 +00:00
#include "CfgEventHandlers.hpp"
2015-01-14 00:07:32 +00:00
class ACE_Default_Keys {
2015-01-13 03:23:14 +00:00
class clearJam {
displayName = "$STR_ACE_Overheating_UnjamWeapon";
2015-01-14 00:07:32 +00:00
condition = QUOTE( [_player] call EFUNC(common,canUseWeapon) && {currentWeapon _player in (_player getVariable [ARR_2(QUOTE(QGVAR(jammedWeapons)), [])])} );
statement = QUOTE( [ARR_3(_player, currentMuzzle _player, false)] call FUNC(clearJam); );
2015-01-13 03:23:14 +00:00
key = 19;
shift = 1;
control = 0;
alt = 0;
};
};
2015-01-13 03:23:14 +00:00
#include "CfgSounds.hpp"
2015-01-13 03:23:14 +00:00
#include "CfgVehicles.hpp"
2015-01-13 03:23:14 +00:00
#include "CfgWeapons.hpp"