Skip to content

Commit

Permalink
close #58 remove killed EH workaround for ACE bug
Browse files Browse the repository at this point in the history
  • Loading branch information
McDiod committed Mar 25, 2020
1 parent e152862 commit 44ce5c3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions functions/events/fn_onPlayerKilled.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
if (player getVariable [QEGVAR(missionSetup,isSpectator),false]) exitWith {};
if (missionNamespace getVariable [QGVAR(gameEnded),false]) exitWith {};


// WORKAROUND FOR KILLED EH BEING FIRED TWICE UPON DEATH (ACE or BI, not sure)
// TODO: REMOVE ONCE BUG IS FIXED
params ["_unit"];
if (_unit getVariable ["PZG_lock1", objNull] == _unit) exitWith {};
_unit setVariable ["PZG_lock1", _unit];
// END OF WORKAROUND


//send killer to server
private _shooter = player getVariable ["ACE_medical_lastDamageSource",player];
[player,_shooter,getPos player,profileName] remoteExecCall [QFUNC(onUnitKilledServer),2,false];
Expand Down

0 comments on commit 44ce5c3

Please sign in to comment.