ACE3/addons/medical_treatment/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_addLoadPatientActions.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_addToLog.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_addToTriageCard.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_bandage.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_bandageLocal.sqf Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
fnc_bodyCleanupLoop.sqf Medical Treatment - Fix bodyCleanupLoop typo (#7308) 2019-12-17 09:50:59 -06:00
fnc_canBandage.sqf Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
fnc_canCPR.sqf Medical Treatment - Allow diagnosing death/CA (invalidates old setting) (#8162) 2021-09-03 14:50:54 -05:00
fnc_canPlaceInBodyBag.sqf fix my name, add it to contributers (#8295) 2021-06-27 07:01:12 +02:00
fnc_canSplint.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_canStitch.sqf Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
fnc_canTreat_holsterCheck.sqf Medical - Option for treatment to require holstering/lowering weapon. (#7063) 2019-10-08 10:44:36 -05:00
fnc_canTreat.sqf Medical Treatment - Improve Medical Actions underwater (#9096) 2023-05-15 23:47:00 -06:00
fnc_canTreatCached.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_checkBloodPressure.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_checkBloodPressureLocal.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_checkPulse.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_checkPulseLocal.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_checkResponse.sqf Medical Treatment - Allow diagnosing death/CA (invalidates old setting) (#8162) 2021-09-03 14:50:54 -05:00
fnc_cprFailure.sqf Medical - Rework CPR and Bleeding in cardiac arrest (#7060) 2019-06-27 19:01:20 -05:00
fnc_cprLocal.sqf Medical Treatment - Allow variable CPR chance based on blood volume (invalidates old setting) (#7983) 2021-07-23 15:59:32 +02:00
fnc_cprProgress.sqf Medical Treatment - Allow diagnosing death/CA (invalidates old setting) (#8162) 2021-09-03 14:50:54 -05:00
fnc_cprStart.sqf Medical - Rework CPR and Bleeding in cardiac arrest (#7060) 2019-06-27 19:01:20 -05:00
fnc_cprSuccess.sqf Medical - Rework CPR and Bleeding in cardiac arrest (#7060) 2019-06-27 19:01:20 -05:00
fnc_createLitter.sqf Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
fnc_createLitterServer.sqf Headers - Fix function names in examples (#7663) 2020-04-25 08:41:45 +02:00
fnc_diagnose.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_findMostEffectiveWound.sqf Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
fnc_fullHeal.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_fullHealLocal.sqf Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
fnc_getBandageTime.sqf Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
fnc_getHealTime.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_getStitchableWounds.sqf Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
fnc_getStitchTime.sqf Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
fnc_getTriageStatus.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_handleBandageOpening.sqf Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
fnc_hasItem.sqf Headers - Fix function names in examples (#7663) 2020-04-25 08:41:45 +02:00
fnc_hasTourniquetAppliedTo.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_isInMedicalFacility.sqf Misc - Fix minor macro usage (#8091) 2021-02-03 17:56:18 -06:00
fnc_isInMedicalVehicle.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_isMedic.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_isMedicalVehicle.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
fnc_ivBag.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_ivBagLocal.sqf Fix medication and ivBagLocal typos (#7048) 2019-06-08 16:54:54 -05:00
fnc_litterCleanupLoop.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_loadUnit.sqf Medical Treatment - Add preferred seats for loading patients (#8789) 2022-02-17 11:14:39 -06:00
fnc_medication.sqf Fix medication and ivBagLocal typos (#7048) 2019-06-08 16:54:54 -05:00
fnc_medicationLocal.sqf Medical - epiBoostsSpontaneousWakeUp (#7076) 2019-09-28 16:11:32 -05:00
fnc_onMedicationUsage.sqf Utilize isNotEqualTo (#7929) 2021-02-27 11:05:05 -06:00
fnc_placeInBodyBag.sqf Medical - Update setDead to use setHitpointDamage instigator param (#8397) 2021-11-15 09:31:56 -06:00
fnc_removeBody.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_setTriageStatus.sqf Rewrite Medical GUI (#6831) 2019-03-24 18:17:48 -04:00
fnc_splint.sqf Medical Treatment - Modernize and Cleanup (#6933) 2019-06-03 10:31:46 -05:00
fnc_splintLocal.sqf Medical Treatment - Add logging for splints (#7170) 2019-09-06 21:47:20 -05:00
fnc_surgicalKitProgress.sqf Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
fnc_surgicalKitStart.sqf Medical Treatment - Suture (#9020) 2023-03-06 14:17:01 -06:00
fnc_tourniquet.sqf Small med stuff (#7084) 2019-07-03 10:40:42 -05:00
fnc_tourniquetLocal.sqf Medical Treatment - Reset canTreatCached on treatment (#7253) 2019-12-12 10:25:21 -06:00
fnc_tourniquetRemove.sqf give tourniquet to patient or medic depending on setting (#9206) 2023-06-22 04:26:28 -03:00
fnc_treatment.sqf Medical Treatment - Improve Medical Actions underwater (#9096) 2023-05-15 23:47:00 -06:00
fnc_treatmentFailure.sqf Medical - Add treatment status events (#8385) 2021-09-03 14:37:48 -05:00
fnc_treatmentSuccess.sqf Medical - Add treatment status events (#8385) 2021-09-03 14:37:48 -05:00
fnc_unloadUnit.sqf Various - Use configOf command for faster lookup (#8100) 2021-02-18 12:58:08 -06:00
fnc_useItem.sqf Headers - Fix function names in examples (#7663) 2020-04-25 08:41:45 +02:00
script_component.hpp Cleanup - Trim all trailing whitespace (#8651) 2021-10-30 16:42:03 -05:00