ACE3/addons/medical/functions
Kyle Mckay 02365609b5
Medical - Change medical to use hashmaps for wound storage (#8926)
* Refactor medical to use hashmaps for wound storage

- We most frequently want to access wounds by body part, so this makes
  that a constant time lookup.
- The body part index is no longer stored in every wound since it's
  inherent in the wound storage.
- Using body part names as the keys of the hashmap to improve code
  clarity (no more magic numbers).

closes #6468

* Add deserilization migration from old wound arrays

Will migrate from old form array wound storage to the new hashmap
strucutre during deserlization. This is relevant for communities piping
medical state out to a database or similar between sessions.

* fix issue with suture stitching

* change version number in comment

---------

Co-authored-by: Salluci <salluci.lovi@gmail.com>
2023-06-24 08:11:56 +03:00
..
fnc_addDamageToUnit.sqf Medical - Rework wound handling (#8278) 2022-02-17 20:03:12 +00:00
fnc_adjustPainLevel.sqf Medical - Various debugging and fix cpr anim speed (#7122) 2019-08-06 08:10:33 -05:00
fnc_deserializeState.sqf Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
fnc_serializeState.sqf Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
fnc_setUnconscious.sqf Medical - Various debugging and fix cpr anim speed (#7122) 2019-08-06 08:10:33 -05:00
script_component.hpp Cleanup - Trim all trailing whitespace (#8651) 2021-10-30 16:42:03 -05:00