2015-01-18 21:16:35 +00:00
|
|
|
/**
|
|
|
|
* XEH_preInit);
|
|
|
|
* @Descr: N/A
|
|
|
|
* @Author: Glowbal
|
|
|
|
*
|
|
|
|
* @Arguments: []
|
|
|
|
* @Return:
|
|
|
|
* @PublicAPI: false
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-01-29 07:38:46 +00:00
|
|
|
ADDON = false;
|
|
|
|
|
2015-01-18 21:16:35 +00:00
|
|
|
PREP(actionCarryUnit);
|
|
|
|
PREP(ActioncheckBloodPressure);
|
|
|
|
PREP(ActionCheckBloodPressureLocal);
|
|
|
|
PREP(ActionCheckPulse);
|
|
|
|
PREP(actionCheckPulseLocal);
|
|
|
|
PREP(actionCheckResponse);
|
|
|
|
PREP(actionDragUnit);
|
|
|
|
PREP(actionDropUnit);
|
|
|
|
PREP(actionLoadUnit);
|
|
|
|
PREP(actionPlaceInBodyBag);
|
|
|
|
PREP(actionRemoveTourniquet);
|
|
|
|
PREP(actionUnloadUnit);
|
|
|
|
|
|
|
|
PREP(addActivityToLog);
|
|
|
|
PREP(addHeartRateAdjustment);
|
|
|
|
PREP(addOpenWounds);
|
|
|
|
PREP(addToInjuredCollection);
|
|
|
|
PREP(addToQuickViewLog);
|
|
|
|
PREP(addToTriageList);
|
|
|
|
PREP(addTreatmentOption);
|
|
|
|
|
|
|
|
PREP(canAccessMedicalEquipment);
|
|
|
|
PREP(canPutInBodyBag);
|
|
|
|
PREP(determineIfFatal);
|
|
|
|
PREP(determineIfUnconscious);
|
|
|
|
PREP(fromNumberToBodyPart);
|
|
|
|
|
2015-01-24 15:34:39 +00:00
|
|
|
PREP(effectPain);
|
|
|
|
PREP(effectBleeding);
|
|
|
|
PREP(effectBlackOut);
|
|
|
|
|
2015-01-18 21:16:35 +00:00
|
|
|
PREP(getActivityLog);
|
|
|
|
PREP(getBloodLoss);
|
|
|
|
PREP(getBloodPressure);
|
|
|
|
PREP(getBloodVolumeChange);
|
|
|
|
PREP(getBodyPartNumber);
|
|
|
|
PREP(getCardiacOutput);
|
|
|
|
PREP(getCurrentSelectedInjuryData);
|
|
|
|
PREP(getHeartRateChange);
|
|
|
|
PREP(getNewDamageBodyPart);
|
|
|
|
PREP(getQuickViewLog);
|
|
|
|
PREP(getSelectedBodyPart);
|
|
|
|
PREP(getTreatmentOptions);
|
|
|
|
PREP(getTriageList);
|
|
|
|
PREP(getTriageStatus);
|
|
|
|
PREP(getTypeOfDamage);
|
|
|
|
|
|
|
|
// Handling events & actions
|
|
|
|
PREP(handleBandageOpening);
|
|
|
|
PREP(handleDamage);
|
|
|
|
PREP(handleDisplayEffects);
|
|
|
|
PREP(handleHeal);
|
|
|
|
PREP(handleReactionHit);
|
|
|
|
PREP(handleTreatment);
|
|
|
|
PREP(handleTreatment_Action_AdvancedLocal);
|
|
|
|
PREP(handleTreatment_Action_AirwayLocal);
|
|
|
|
PREP(handleTreatment_Action_BandageLocal);
|
|
|
|
PREP(handleTreatment_Action_CPR);
|
|
|
|
PREP(handleTreatment_Action_CPRLocal);
|
|
|
|
PREP(handleTreatment_Action_fullHeal);
|
|
|
|
PREP(handleTreatment_Action_fullHealLocal);
|
|
|
|
PREP(handleTreatment_Action_MedicationLocal);
|
|
|
|
PREP(handleTreatment_Action_Stitching);
|
|
|
|
PREP(handleTreatment_Action_tourniquet);
|
|
|
|
PREP(handleTreatment_Action_tourniquetLocal);
|
|
|
|
PREP(handleTreatment_Category_Advanced);
|
|
|
|
PREP(handleTreatment_Category_Airway);
|
|
|
|
PREP(handleTreatment_Category_Bandaging);
|
|
|
|
PREP(handleTreatment_Category_Medication);
|
|
|
|
PREP(handleUI_DisplayOptions);
|
|
|
|
PREP(handleUI_dropDownTriageCard);
|
|
|
|
PREP(handleUnitVitals);
|
2015-01-20 17:57:33 +00:00
|
|
|
PREP(handleDropUnit);
|
2015-01-18 21:16:35 +00:00
|
|
|
|
|
|
|
PREP(hasEquipment);
|
|
|
|
PREP(hasMedicalEnabled);
|
|
|
|
PREP(hasOpenWounds);
|
|
|
|
PREP(hasTourniquetAppliedTo);
|
|
|
|
|
|
|
|
PREP(increasePain);
|
|
|
|
PREP(initalizeModuleCMS);
|
|
|
|
PREP(inMedicalFacility);
|
|
|
|
PREP(isMedic);
|
|
|
|
PREP(isMedicalVehicle);
|
|
|
|
PREP(isSetTreatmentMutex);
|
2015-01-21 14:52:59 +00:00
|
|
|
PREP(isMovingUnit);
|
|
|
|
|
2015-01-18 21:16:35 +00:00
|
|
|
PREP(moduleAssignMedicalEquipment);
|
|
|
|
PREP(moduleAssignMedicalFacility);
|
|
|
|
PREP(moduleAssignMedicalVehicle);
|
|
|
|
PREP(moduleAssignMedicRoles);
|
2015-01-22 22:29:18 +00:00
|
|
|
PREP(moduleDamageSettings);
|
2015-01-18 21:16:35 +00:00
|
|
|
|
|
|
|
PREP(onInitForUnit);
|
|
|
|
PREP(onInjury_assignAirwayStatus);
|
|
|
|
PREP(onInjury_assignFractures);
|
|
|
|
PREP(onInjury_assignOpenWounds);
|
|
|
|
PREP(onKilled);
|
|
|
|
PREP(onLocal);
|
|
|
|
PREP(onMenuOpen);
|
|
|
|
PREP(onTreatmentCompleted);
|
|
|
|
PREP(onUnconscious);
|
|
|
|
PREP(onStartMovingUnit);
|
2015-01-20 17:57:33 +00:00
|
|
|
PREP(onCarryObjectDropped);
|
2015-01-22 21:00:04 +00:00
|
|
|
PREP(onDamage);
|
2015-01-18 21:16:35 +00:00
|
|
|
|
|
|
|
PREP(openMenu);
|
|
|
|
PREP(playInjuredSound);
|
|
|
|
PREP(setCardiacArrest);
|
|
|
|
PREP(setDamageBodyPart);
|
|
|
|
PREP(setDead);
|
|
|
|
PREP(setMedicRole);
|
|
|
|
PREP(setTriageStatus);
|
|
|
|
PREP(treatmentMutex);
|
|
|
|
|
|
|
|
PREP(updateActivityLog);
|
|
|
|
PREP(updateBodyImg);
|
|
|
|
PREP(updateIcons);
|
|
|
|
PREP(updateUIInfo);
|
|
|
|
|
|
|
|
PREP(useEquipment);
|
2015-01-22 21:00:04 +00:00
|
|
|
PREP(cacheHandledamageCall);
|
|
|
|
PREP(checkDamage);
|
|
|
|
|
2015-01-24 16:18:38 +00:00
|
|
|
|
|
|
|
PREP(setUnconsciousState);
|
|
|
|
PREP(isUnconscious);
|
|
|
|
PREP(getUnconsciousCondition);
|
|
|
|
PREP(registerUnconsciousCondition);
|
|
|
|
PREP(cleanUpCopyOfBody_F);
|
|
|
|
PREP(makeCopyOfBody_F);
|
|
|
|
PREP(canGoUnconsciousState);
|
|
|
|
PREP(setDead);
|
|
|
|
PREP(moduleBasicRevive);
|
|
|
|
|
|
|
|
PREP(setWeaponsCorrectUnconscious);
|
|
|
|
PREP(setCaptiveSwitch);
|
|
|
|
|
2015-01-24 20:16:51 +00:00
|
|
|
|
2015-01-18 21:16:35 +00:00
|
|
|
// initalize all module parameters.
|
|
|
|
GVAR(setting_allowInstantDead) = true;
|
|
|
|
GVAR(setting_AdvancedLevel) = 0;
|
|
|
|
GVAR(setting_advancedWoundsSetting) = false;
|
|
|
|
GVAR(setting_advancedMedicRoles) = false;
|
|
|
|
GVAR(setting_medicalDifficulty) = 1;
|
|
|
|
GVAR(setting_enableBandagingAid) = true;
|
|
|
|
GVAR(setting_allowAIFullHeal) = false;
|
|
|
|
GVAR(setting_enableForUnits) = 1;
|
|
|
|
GVAR(setting_allowAirwayInjuries) = false;
|
|
|
|
GVAR(setting_aidKitRestrictions) = 0;
|
|
|
|
GVAR(setting_removeAidKitOnUse) = true;
|
|
|
|
GVAR(setting_aidKitMedicsOnly) = false;
|
|
|
|
GVAR(setting_bandageWaitingTime) = 5;
|
|
|
|
GVAR(setting_allowVehicleCrashInjuries) = true;
|
|
|
|
GVAR(setting_allowStitching) = 0;
|
|
|
|
|
|
|
|
ADDON = true;
|