diff --git a/addons/advanced_fatigue/XEH_preInit.sqf b/addons/advanced_fatigue/XEH_preInit.sqf
index 1cb60db917..12f007ccf6 100644
--- a/addons/advanced_fatigue/XEH_preInit.sqf
+++ b/addons/advanced_fatigue/XEH_preInit.sqf
@@ -10,5 +10,6 @@ PREP_RECOMPILE_END;
GVAR(staminaBarWidth) = 10 * (((safezoneW / safezoneH) min 1.2) / 40);
GVAR(dutyList) = [[], []];
+GVAR(setAnimExclusions) = [];
ADDON = true;
diff --git a/addons/advanced_fatigue/functions/fnc_handleEffects.sqf b/addons/advanced_fatigue/functions/fnc_handleEffects.sqf
index 1283d86555..fbbb685217 100644
--- a/addons/advanced_fatigue/functions/fnc_handleEffects.sqf
+++ b/addons/advanced_fatigue/functions/fnc_handleEffects.sqf
@@ -58,8 +58,9 @@ if (GVAR(ppeBlackoutLast) == 1) then {
// - Physical effects ---------------------------------------------------------
if (GVAR(isSwimming)) exitWith {
- _unit setAnimSpeedCoef linearConversion [0.7, 0.9, _fatigue, 1, 0.5, true];
-
+ if (GVAR(setAnimExclusions) isEqualTo []) then {
+ _unit setAnimSpeedCoef linearConversion [0.7, 0.9, _fatigue, 1, 0.5, true];
+ };
if ((isSprintAllowed _unit) && {_fatigue > 0.7}) then {
[_unit, "blockSprint", QUOTE(ADDON), true] call EFUNC(common,statusEffect_set);
} else {
@@ -69,7 +70,10 @@ if (GVAR(isSwimming)) exitWith {
};
};
if ((getAnimSpeedCoef _unit) != 1) then {
- _unit setAnimSpeedCoef 1;
+ if (GVAR(setAnimExclusions) isEqualTo []) then {
+ TRACE_1("reset",getAnimSpeedCoef _unit);
+ _unit setAnimSpeedCoef 1;
+ };
};
if (_overexhausted) then {
diff --git a/addons/common/stringtable.xml b/addons/common/stringtable.xml
index 7aac0722a9..2c4b3aecfd 100644
--- a/addons/common/stringtable.xml
+++ b/addons/common/stringtable.xml
@@ -1036,7 +1036,7 @@
기본
- Medical vehicles
+ Medical Vehicles
В медицинском транспорте
Pojazdy medyczne
Vehiculos médicos
diff --git a/addons/medical/XEH_preInit.sqf b/addons/medical/XEH_preInit.sqf
index aac77adab9..2ebebbbd3d 100644
--- a/addons/medical/XEH_preInit.sqf
+++ b/addons/medical/XEH_preInit.sqf
@@ -11,7 +11,44 @@ PREP_RECOMPILE_END;
// Add warning for old functions that were technically public, Remove at 3.14.0
{
missionNamespace setVariable [_x, compileFinal format ['diag_log text "ACE Medical WARNING: Formerly public function [%1] has no effect in medical rewrite."; nil', _x]];
-} forEach ["ace_medical_fnc_actionPlaceInBodyBag","ace_medical_fnc_actionRemoveTourniquet","ace_medical_fnc_addHeartRateAdjustment","ace_medical_fnc_addToLog","ace_medical_fnc_addToTriageCard
-","ace_medical_fnc_addUnconsciousCondition","ace_medical_fnc_addVitalLoop","ace_medical_fnc_canAccessMedicalEquipment","ace_medical_fnc_canTreat","ace_medical_fnc_displayTriageCard","ace_medical_fnc_dropDownTriageCard","ace_medical_fnc_getTriageStatus","ace_medical_fnc_getUnconsciousCondition","ace_medical_fnc_hasItem","ace_medical_fnc_hasItems","ace_medical_fnc_hasTourniquetAppliedTo","ace_medical_fnc_isInMedicalFacility","ace_medical_fnc_isInMedicalVehicle","ace_medical_fnc_isMedic","ace_medical_fnc_isMedicalVehicle","ace_medical_fnc_itemCheck","ace_medical_fnc_selectionNameToNumber","ace_medical_fnc_setCardiacArrest","ace_medical_fnc_setDead","ace_medical_fnc_setHitPointDamage","ace_medical_fnc_showBloodEffect","ace_medical_fnc_treatment","ace_medical_fnc_treatmentAdvanced_bandage","ace_medical_fnc_treatmentAdvanced_CPR","ace_medical_fnc_treatmentAdvanced_CPRLocal","ace_medical_fnc_treatmentAdvanced_medication","ace_medical_fnc_treatmentAdvanced_medicationLocal","ace_medical_fnc_treatmentIV","ace_medical_fnc_treatmentIVLocal","ace_medical_fnc_unconsciousPFH","ace_medical_fnc_useItem","ace_medical_fnc_useItems"];
+} forEach [
+ QFUNC(actionPlaceInBodyBag),
+ QFUNC(actionRemoveTourniquet),
+ QFUNC(addHeartRateAdjustment),
+ QFUNC(addToLog),
+ QFUNC(addToTriageCard),
+ QFUNC(addUnconsciousCondition),
+ QFUNC(addVitalLoop),
+ QFUNC(canAccessMedicalEquipment),
+ QFUNC(canTreat),
+ QFUNC(displayTriageCard),
+ QFUNC(dropDownTriageCard),
+ QFUNC(getTriageStatus),
+ QFUNC(getUnconsciousCondition),
+ QFUNC(hasItem),
+ QFUNC(hasItems),
+ QFUNC(hasTourniquetAppliedTo),
+ QFUNC(isInMedicalFacility),
+ QFUNC(isInMedicalVehicle),
+ QFUNC(isMedic),
+ QFUNC(isMedicalVehicle),
+ QFUNC(itemCheck),
+ QFUNC(selectionNameToNumber),
+ QFUNC(setCardiacArrest),
+ QFUNC(setDead),
+ QFUNC(setHitPointDamage),
+ QFUNC(showBloodEffect),
+ QFUNC(treatment),
+ QFUNC(treatmentAdvanced_bandage),
+ QFUNC(treatmentAdvanced_CPR),
+ QFUNC(treatmentAdvanced_CPRLocal),
+ QFUNC(treatmentAdvanced_medication),
+ QFUNC(treatmentAdvanced_medicationLocal),
+ QFUNC(treatmentIV),
+ QFUNC(treatmentIVLocal),
+ QFUNC(unconsciousPFH),
+ QFUNC(useItem),
+ QFUNC(useItems)
+];
ADDON = true;
diff --git a/addons/medical/dev/watchVariable.sqf b/addons/medical/dev/watchVariable.sqf
index dc97952e0c..5fc0b1a065 100644
--- a/addons/medical/dev/watchVariable.sqf
+++ b/addons/medical/dev/watchVariable.sqf
@@ -60,7 +60,7 @@
_return pushBack format ["Hitpoints: [HHed:%1] [HBod: %2]", (_unit getHitPointDamage "HitHead") toFixed 2, (_unit getHitPointDamage "HitBody") toFixed 2];
_return pushBack format ["[HHnd:%1] [HLeg: %2] %3", (_unit getHitPointDamage "HitHands") toFixed 2, (_unit getHitPointDamage "HitLegs") toFixed 2, _limping];
- private _fractures = _unit getVariable [QEGVAR(medical,fractures), [0,0,0,0,0,0]];
+ private _fractures = GET_FRACTURES(_unit);
private _canSprint = if (isSprintAllowed _unit) then {""} else {"[Sprint Blocked]"};
_return pushBack format ["Fractures: %1 %2", _fractures, _canSprint];
@@ -75,7 +75,7 @@
_return pushBack format ["%1 [Time On: %2]", ALL_SELECTIONS select _tPartNum, (CBA_missionTime - _x) toFixed 1];
};
{
- _x params ["", "_medClassname", "_medPartNum"];
+ _x params ["_medPartNum", "_medClassname"];
if (_medPartNum == _tPartNum) then {
_return pushBack format [" - Occluded Med: %1", _medClassname];
};
@@ -154,4 +154,3 @@
// Return:
_return joinString "
"
}, [40]] call EFUNC(common,watchVariable);
-
diff --git a/addons/medical/functions/fnc_setUnconscious.sqf b/addons/medical/functions/fnc_setUnconscious.sqf
index 618432a5fc..a073c9e9eb 100644
--- a/addons/medical/functions/fnc_setUnconscious.sqf
+++ b/addons/medical/functions/fnc_setUnconscious.sqf
@@ -2,7 +2,6 @@
/*
* Author: Glowbal
* Sets a unit in the unconscious state.
- * For Public Use
*
* Arguments:
* 0: The unit that will be put in an unconscious state