Fix cookoff locality issues (#4799)

* Fix locality issue with box cookoff

* Add grenade fired EHs on hcs and dedis
This commit is contained in:
BaerMitUmlaut 2017-01-03 00:55:44 +01:00 committed by PabstMirror
parent 9d37d91c71
commit 0a05401e74
2 changed files with 6 additions and 6 deletions

View File

@ -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;
};

View File

@ -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;