mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix cookoff locality issues (#4799)
* Fix locality issue with box cookoff * Add grenade fired EHs on hcs and dedis
This commit is contained in:
parent
9d37d91c71
commit
0a05401e74
@ -20,7 +20,7 @@ params ["_box"];
|
||||
if (_box getVariable [QGVAR(isCookingOff), false]) exitWith {};
|
||||
_box setVariable [QGVAR(isCookingOff), true];
|
||||
|
||||
if (local _vehicle) then {
|
||||
if (local _box) then {
|
||||
[QGVAR(cookOffBox), _box] call CBA_fnc_remoteEvent;
|
||||
};
|
||||
|
||||
|
@ -4,6 +4,11 @@
|
||||
|
||||
["ace_flashbangExploded", {_this call FUNC(flashbangExplosionEH)}] call CBA_fnc_addEventHandler;
|
||||
|
||||
// Register fired event handlers
|
||||
["ace_firedPlayer", DFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayerNonLocal", DFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedNonPlayer", DFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||
|
||||
if (!hasInterface) exitWith {};
|
||||
|
||||
GVAR(flashbangPPEffectCC) = ppEffectCreate ["ColorCorrections", 4265];
|
||||
@ -21,8 +26,3 @@ GVAR(flashbangPPEffectCC) ppEffectForceInNVG true;
|
||||
// Statement
|
||||
[] call FUNC(nextMode);
|
||||
}, {false}, [9, [false, false, false]], false] call CBA_fnc_addKeybind; //8 Key
|
||||
|
||||
// Register fire event handler
|
||||
["ace_firedPlayer", DFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedPlayerNonLocal", DFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||
["ace_firedNonPlayer", DFUNC(throwGrenade)] call CBA_fnc_addEventHandler;
|
||||
|
Loading…
Reference in New Issue
Block a user