Skip to content

Commit

Permalink
ACE3 medical update fix
Browse files Browse the repository at this point in the history
  • Loading branch information
musurca committed Jan 11, 2020
1 parent 06127fb commit ed0d9cd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ For questions, comments, or bug reports, please contact me directly at nick.musu
CHANGELOG:
---------------------

v1.31 (January 11, 2020):
* bugfix: two events created on civilian death (related to ACE3 Medical update)

v1.3 (May 25, 2019):
* added: Autopsies
* added: autopsy event handler if concealed death is revealed
Expand Down
4 changes: 4 additions & 0 deletions addons/GR/functions/fn_onLocalCivKilled.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

params ["_killed", ["_killer", objNull]];

//Workaround for ACE3 Medical bug in which "killed" EH is called twice
if (_killed getVariable ["GR_WASKILLED",0] == 1) exitWith {};
_killed setVariable ["GR_WASKILLED",1];

if(side (group _killed) == civilian) then {
// Workaround for ACE medical
if ((isNull _killer) || {_killer == _killed}) then {
Expand Down
4 changes: 4 additions & 0 deletions addons/GR/functions/fn_onUnitKilled.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ if (!isServer) exitWith {};

params ["_killed", ["_killer", objNull]];

//Workaround for ACE3 Medical bug in which "killed" EH is called twice
if (_killed getVariable ["GR_WASKILLED",0] == 1) exitWith {};
_killed setVariable ["GR_WASKILLED",1];

if ((isNull _killer) || {_killer == _killed}) then {
_killer = _killed getVariable ["ace_medical_lastDamageSource", objNull];
};
Expand Down
2 changes: 1 addition & 1 deletion mod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ overview = "Civilian deaths, reparations, and war crimes. Deliver the bodies of
author = "@musurca";
overviewText = "GR";
overviewPicture = "img\logomain.paa";
overviewFootnote = "v130";
overviewFootnote = "v131";

0 comments on commit ed0d9cd

Please sign in to comment.