ACE3/docs/wiki/framework/medical-treatment-framework.md
Grim 0e26755b88
Medical - Add arsenal category (#9220)
* add medical category to arsenal

* function header

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* move to preinit, protect list

* improve macro

* documentation

* add config property

* add CfgMagazines

* Revert "add CfgMagazines"

Arsenal doesn't support magazines in custom categories

---------

Co-authored-by: GhostIsSpooky <69561145+Salluci@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-07 07:14:44 +03:00

1.2 KiB

layout title description group order parent mod version
wiki Medical Treatment Framework Explains extending the treatment system for developers. framework 5 wiki ace
major minor patch
3 14 2

1. Config Values

1.1 Vehicle Patient Seats

Defines the seats that will be prioritized when loading patients into vehicles. Uses moveInCargo indexes.

class CfgVehicles {
    class MyCar {
        ace_medical_treatment_patientSeats[] = {3,4};
    };
};

1.2 Patient Reverse Fill

When no patient seats are available, by default patients will be filled from the highest cargo index to the lowest. This can be changed to fill from the lowest to the highest.

class CfgVehicles {
    class MyCar {
        ace_medical_treatment_patientReverseFill = 0;
    };
};

1.3 Treatment Items

Items in CfgWeapons with ACE_isMedicalItem property will be added to the ACE Medical category in the ACE Arsenal.

class CfgWeapons {
    class MyMedicalItem {
        ACE_isMedicalItem = 1;
    };
};

Required items in ACE_Medical_Treatment_Actions will also be added as a fallback.

class ACE_Medical_Treatment_Actions {
    class MyCustomTreatment {
        items[] = {"MyMedicalItem"};
    };
};