mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Units accumulate damage in the local variables "ACE_Medical_Engine_$HitXXXX", but these are never reset. The way these vars are used is as a single-damage-event tracker, and the end result of not resetting their value when they're done being used is that a specific $HitXXXX can accumulate enough damage to cause the "select wound with highest damage" code to always select _it_ for the next wound event, even if it wasn't the primary target of the last wound event. I.E. I get shot in the right leg badly. If I then get winged in the left arm, that wound will end up on my right leg, because when the code runs, it finds QGVAR($HitRightLeg) > QGVAR($HitLeftArm), and so it applies the wound to the right leg. |
||
---|---|---|
.. | ||
functions | ||
$PBOPREFIX$ | ||
CfgActions.hpp | ||
CfgEventHandlers.hpp | ||
CfgExtendedAnimation.hpp | ||
CfgInGameUI.hpp | ||
CfgMoves.hpp | ||
CfgVehicles.hpp | ||
CfgWeapons.hpp | ||
config.cpp | ||
README.md | ||
RscTitles.hpp | ||
script_component.hpp | ||
XEH_postInit.sqf | ||
XEH_preInit.sqf | ||
XEH_PREP.hpp | ||
XEH_preStart.sqf |