ACE3/addons/medical_ai
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
..
functions Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
$PBOPREFIX$ Add Medical AI implementation for basic medical (#4311) 2016-09-04 11:25:03 +02:00
ACE_Settings.hpp Move medical settings into their respective components (#6493) 2018-08-06 17:08:43 +01:00
CfgEventHandlers.hpp Add SQFC support (#8235) 2021-09-03 19:08:34 -05:00
config.cpp Medical AI - Adjust healing logic for rewrite (#6902) 2019-07-03 09:59:28 -05:00
initSettings.sqf General - Setting category cleanup (#8640) 2021-10-30 16:42:47 -05:00
README.md Update contribution documents (#8382) 2021-08-16 20:17:56 +01:00
script_component.hpp Medical - Improve adjustment calcs / wound blood loss / medications (#6910) 2019-04-27 14:12:11 -05:00
stateMachine.sqf Tools - Add script to check sqf/config with sqfvm (#8137) 2021-04-20 12:39:05 +02:00
stringtable.xml Korean Translation 100% done (#8899) 2022-05-09 20:28:28 -05:00
XEH_postInit.sqf Medical AI - Use suppressed EH to determine safety of AI (#8242) 2023-06-23 18:59:11 -03:00
XEH_preInit.sqf Medical AI - Use suppressed EH to determine safety of AI (#8242) 2023-06-23 18:59:11 -03:00
XEH_PREP.hpp Medical AI - Adjust healing logic for rewrite (#6902) 2019-07-03 09:59:28 -05:00
XEH_preStart.sqf Add Medical AI implementation for basic medical (#4311) 2016-09-04 11:25:03 +02:00

ace_medical_ai

Makes AI units heal themselves and each other.