mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical Treatment - Improve Medical Actions underwater (#9096)
This commit is contained in:
parent
18074fde43
commit
fd3c9c967d
@ -5,7 +5,7 @@ class CfgVehicles {
|
||||
class ACE_Medical {
|
||||
displayName = CSTRING(Medical);
|
||||
condition = QGVAR(enableSelfActions);
|
||||
exceptions[] = {"isNotInside", "isNotSitting"};
|
||||
exceptions[] = {"isNotInside", "isNotSitting", "isNotSwimming"};
|
||||
statement = QUOTE([ARR_2(_target,0)] call FUNC(displayPatientInformation));
|
||||
runOnHover = 1;
|
||||
icon = QPATHTOF(ui\cross.paa);
|
||||
|
@ -83,6 +83,7 @@ class GVAR(actions) {
|
||||
condition = QUOTE(!([ARR_2(_patient,_bodyPart)] call FUNC(hasTourniquetAppliedTo)));
|
||||
callbackSuccess = QFUNC(tourniquet);
|
||||
litter[] = {};
|
||||
allowedUnderwater = 1;
|
||||
};
|
||||
class RemoveTourniquet: ApplyTourniquet {
|
||||
displayName = CSTRING(Actions_RemoveTourniquet);
|
||||
@ -90,6 +91,7 @@ class GVAR(actions) {
|
||||
items[] = {};
|
||||
condition = QUOTE([ARR_2(_patient,_bodyPart)] call FUNC(hasTourniquetAppliedTo));
|
||||
callbackSuccess = QFUNC(tourniquetRemove);
|
||||
allowedUnderwater = 1;
|
||||
};
|
||||
|
||||
// - Splint ---------------------------------------------------------------
|
||||
|
@ -21,6 +21,9 @@
|
||||
|
||||
params ["_medic", "_patient", "_bodyPart", "_bandage"];
|
||||
|
||||
// If patient is swimming, don't allow bandage actions.
|
||||
if (_patient call EFUNC(common,isSwimming)) exitWith {false};
|
||||
|
||||
// Bandage type and bandage setting XNOR to show only active actions
|
||||
if ((_bandage == "BasicBandage") isEqualTo (GVAR(advancedBandages) != 0)) exitWith {false};
|
||||
|
||||
|
@ -59,4 +59,6 @@ isClass _config
|
||||
};
|
||||
default {false};
|
||||
};
|
||||
} && {
|
||||
((getNumber (_config >> "allowedUnderwater")) == 1) || {!([_medic] call ace_common_fnc_isSwimming)}
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ if (_callbackProgress isEqualTo {}) then {
|
||||
FUNC(treatmentFailure),
|
||||
getText (_config >> "displayNameProgress"),
|
||||
_callbackProgress,
|
||||
["isNotInside"]
|
||||
["isNotInside", "isNotSwimming"]
|
||||
] call EFUNC(common,progressBar);
|
||||
|
||||
true
|
||||
|
Loading…
Reference in New Issue
Block a user