Feature #27684

Trigger local event upon wounds HDEH processing

Added by Sickboy over 3 years ago. Updated over 3 years ago.

Status:Closed Start date:01/10/2012
Priority:Normal Due date:
Assignee:Sickboy % Done:

100%

Category:-
Target version:1.14
Component:sys_wounds Affected Version:
Close Reason:

ace_sys_wounds-#27684.7z (4.7 MB) Sickboy, 01/10/2012 13:21


Related issues

related to ARMA2 Community Issue Tracker - Feature #27682: Request for scripting function getHit (getHitPointDamage) Assigned 01/10/2012

Associated revisions

Revision 46c06741
Added by Sickboy over 3 years ago

~ ADDED: ace_sys_wounds_hdeh localEvent, triggered during processing Wounds HandleDamage eventhandlers. Parameters: [_originalEventParams, _returnValue]. closes #27684

History

Updated by Sickboy over 3 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Updated by Sickboy over 3 years ago

// Only triggered where the unit is local, and if the Wounding system is enabled
["ace_sys_wounds_hdeh", {
   PARAMS_2(_originalEvent,_returnValue);
   // _originalEvent contains the original event parameters array as triggered by the HDEH
   // _returnValue contains the damage as now set on the part
   EXPLODE_5(_originalEvent, _unit, _part, _partDamage, _injurer, _ammo);
   // Do stuff with above params
}] call CBA_fnc_addEventHandler;

What happens if you get hit; there are 5 triggerings, once for each 4 parts, and first for the "" part. Though, not always all parts are triggered.
You could choose to collect all 5 events, and then send it with 1 public event to the server.
This might be better for network performance, but it also means if the unit dies and immediately after crashes or leaves, like really instant, the info might not transfer etc.

Updated by Sickboy over 3 years ago

Updated by Sickboy over 3 years ago

  • Status changed from Resolved to Closed

Available as hotfix on the Six Updater network. Please run Verify and Repair on the ACE preset.

Updated by Sickboy over 3 years ago

Available as hotfix on the Six Updater network. Please run Verify and Repair on the ACE preset.

Also available in: Atom PDF