ACE3/addons/overheating/config.cpp

36 lines
988 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 = 0.60;
requiredAddons[] = {ACE_Core, ACE_Interaction};
version = "0.95";
versionStr = "0.95";
versionAr[] = {0,95,0};
author[] = {"commy2", "KoffeinFlummi", "CAA-Picard"};
authorUrl = "https://github.com/commy2/";
};
};
2015-01-13 03:23:14 +00:00
#include "CfgEventHandlers.hpp"
2015-01-13 03:23:14 +00:00
class ACE_Core_Default_Keys {
class clearJam {
displayName = "$STR_ACE_Overheating_UnjamWeapon";
condition = QUOTE( [_player] call EFUNC(common,canUseWeapon) && {currentWeapon _player in (_player getVariable [QUOTE(QGVAR(jammedWeapons)), []])} );
2015-01-13 03:23:14 +00:00
statement = QUOTE( [_player, currentMuzzle _player, false] call FUNC(clearJam); );
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"