mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e8d2a00994
No longer have to recreate the selection and hitpoint arrays every time
109 lines
2.7 KiB
Plaintext
109 lines
2.7 KiB
Plaintext
#include "script_component.hpp"
|
|
|
|
ADDON = false;
|
|
|
|
PREP(actionCheckBloodPressure);
|
|
PREP(actionCheckBloodPressureLocal);
|
|
PREP(actionCheckPulse);
|
|
PREP(actionCheckPulseLocal);
|
|
PREP(actionCheckResponse);
|
|
PREP(actionPlaceInBodyBag);
|
|
PREP(actionRemoveTourniquet);
|
|
PREP(actionLoadUnit);
|
|
PREP(actionUnloadUnit);
|
|
PREP(addHeartRateAdjustment);
|
|
PREP(addToInjuredCollection);
|
|
PREP(addToLog);
|
|
PREP(addToTriageCard);
|
|
PREP(addUnconsciousCondition);
|
|
PREP(addUnloadPatientActions);
|
|
PREP(canAccessMedicalEquipment);
|
|
PREP(canTreat);
|
|
PREP(canTreatCached);
|
|
PREP(createLitter);
|
|
PREP(determineIfFatal);
|
|
PREP(getBloodLoss);
|
|
PREP(getBloodPressure);
|
|
PREP(getBloodVolumeChange);
|
|
PREP(getCardiacOutput);
|
|
PREP(getTypeOfDamage);
|
|
PREP(getHeartRateChange);
|
|
PREP(getTriageStatus);
|
|
PREP(getUnconsciousCondition);
|
|
PREP(handleDamage);
|
|
PREP(handleDamage_advanced);
|
|
PREP(handleDamage_advancedSetDamage);
|
|
PREP(handleDamage_airway);
|
|
PREP(handleDamage_basic);
|
|
PREP(handleDamage_caching);
|
|
PREP(handleDamage_fractures);
|
|
PREP(handleDamage_internalInjuries);
|
|
PREP(handleDamage_wounds);
|
|
PREP(handleUnitVitals);
|
|
PREP(handleKilled);
|
|
PREP(handleLocal);
|
|
PREP(handleBandageOpening);
|
|
PREP(hasItem);
|
|
PREP(hasItems);
|
|
PREP(hasMedicalEnabled);
|
|
PREP(hasTourniquetAppliedTo);
|
|
PREP(init);
|
|
PREP(isBeingCarried);
|
|
PREP(isBeingDragged);
|
|
PREP(isInMedicalFacility);
|
|
PREP(isInMedicalVehicle);
|
|
PREP(isMedic);
|
|
PREP(isMedicalVehicle);
|
|
PREP(itemCheck);
|
|
PREP(onMedicationUsage);
|
|
PREP(onWoundUpdateRequest);
|
|
PREP(onPropagateWound);
|
|
PREP(parseConfigForInjuries);
|
|
PREP(playInjuredSound);
|
|
PREP(selectionNameToNumber);
|
|
PREP(setCardiacArrest);
|
|
PREP(setDead);
|
|
PREP(setHitPointDamage);
|
|
PREP(setUnconscious);
|
|
PREP(treatment);
|
|
PREP(treatment_failure);
|
|
PREP(treatment_success);
|
|
PREP(treatmentAdvanced_bandage);
|
|
PREP(treatmentAdvanced_bandageLocal);
|
|
PREP(treatmentAdvanced_CPR);
|
|
PREP(treatmentAdvanced_CPRLocal);
|
|
PREP(treatmentAdvanced_fullHeal);
|
|
PREP(treatmentAdvanced_fullHealLocal);
|
|
PREP(treatmentAdvanced_medication);
|
|
PREP(treatmentAdvanced_medicationLocal);
|
|
PREP(treatmentBasic_bandage);
|
|
PREP(treatmentBasic_bloodbag);
|
|
PREP(treatmentBasic_epipen);
|
|
PREP(treatmentBasic_morphine);
|
|
PREP(treatmentIV);
|
|
PREP(treatmentIVLocal);
|
|
PREP(treatmentTourniquet);
|
|
PREP(treatmentTourniquetLocal);
|
|
PREP(useItem);
|
|
PREP(useItems);
|
|
PREP(displayPatientInformation);
|
|
PREP(displayTriageCard);
|
|
PREP(dropDownTriageCard);
|
|
PREP(moduleMedicalSettings);
|
|
PREP(moduleAssignMedicRoles);
|
|
PREP(moduleAssignMedicalVehicle);
|
|
PREP(moduleAssignMedicalFacility);
|
|
PREP(moduleTreatmentConfiguration);
|
|
PREP(copyDeadBody);
|
|
PREP(requestWoundSync);
|
|
|
|
GVAR(injuredUnitCollection) = [];
|
|
GVAR(IVBags) = [];
|
|
|
|
call FUNC(parseConfigForInjuries);
|
|
|
|
GVAR(HITPOINTS) = ["HitHead", "HitBody", "HitLeftArm", "HitRightArm", "HitLeftLeg", "HitRightLeg"];
|
|
GVAR(SELECTIONS) = ["head", "body", "hand_l", "hand_r", "leg_l", "leg_r"];
|
|
|
|
ADDON = true;
|