* Add tourniquet support for Medical AI
* Stop blocking start
* Renamed states, condensed `canHeal`
* Renamed `tooManyMeds` state
* Update addons/medical_ai/functions/fnc_healUnit.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* Change states to use singular, add states for autoinjectors & splint
---------
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* Medical AI - AI will remove tourniquets
* Medical AI - Improve tourniquet removal (for #10166) (#10178)
* Fixes & tweaks
- Have AI remove tourniquets ASAP
- Fixed bug where AI would not remove tourniquet, because it didn't have any bandages
- Allowed for more multitasking
* Allow healer to administer morphine if out of bandages
* Remove TODO comment
* Allow AI to remove tourniquets from limbs with no open wounds
* Update addons/medical_ai/functions/fnc_healingLogic.sqf
---------
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Several medical AI fixes
- Not applying splints if too many medications were taken
- Potential nil for _target
- Setting could add multiple EH, require mission restart
* 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>
* Medical AI - Adjust healing logic for rewrite
- move state machine from config to sqf
- move all healing logic to seperate func
- attempt to handle healing for new system
* prioritize unitReady medics
* move setting to subcategory under medical
* Use faster GET_WOUND_BLEEDING
* Update fnc_healingLogic.sqf
* Update for wound array changes
* Update treatment events changes
* Fractures/splint
* formating / use GET_OPEN_WOUNDS
* Use non-localized medical category