2015-02-14 06:39:01 +00:00
|
|
|
// by commy2
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
["flashbangExplosion", {_this call FUNC(flashbangExplosionEH)}] call EFUNC(common,addEventHandler);
|
|
|
|
|
|
|
|
if !(hasInterface) exitWith {};
|
|
|
|
|
|
|
|
GVAR(flashbangPPEffectCC) = ppEffectCreate ["ColorCorrections", 4265];
|
|
|
|
GVAR(flashbangPPEffectCC) ppEffectForceInNVG true;
|
|
|
|
|
|
|
|
// Add keybinds
|
2015-04-30 20:39:33 +00:00
|
|
|
["ACE3 Weapons", QGVAR(switchGrenadeMode), localize "STR_ACE_Grenades_SwitchGrenadeMode",
|
2015-03-05 07:32:26 +00:00
|
|
|
{
|
|
|
|
// Conditions: canInteract
|
2015-03-20 22:55:39 +00:00
|
|
|
if !([ACE_player, objNull, ["isNotEscorting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
2015-03-05 07:32:26 +00:00
|
|
|
// Conditions: specific
|
|
|
|
if (!([ACE_player] call EFUNC(common,canUseWeapon))) exitWith {false};
|
2015-02-14 06:39:01 +00:00
|
|
|
|
2015-03-05 07:32:26 +00:00
|
|
|
// Statement
|
|
|
|
[] call FUNC(nextMode);
|
|
|
|
},
|
2015-03-05 08:51:24 +00:00
|
|
|
{false},
|
2015-03-05 07:32:26 +00:00
|
|
|
[9, [false, false, false]], false] call cba_fnc_addKeybind; //8 Key
|