Browse Source

Fix bandage and stitch

m3ales 4 years ago
parent
commit
e772c9ec14

+ 2 - 6
addons - Copy/RD501_Main/functions/medical_ccp/fnc_bandageAllWounds.sqf

@@ -18,12 +18,8 @@ params ["_healer", "_patient"];
 private _openWounds = (_patient getVariable ["ace_medical_openWounds", []]);
 if (_openWounds isEqualTo []) exitWith {};
 
-{
-	_x params ["_classId", "_bodyPartN", "_amountOf", "_bloodloss", "_damage"];
-	_x set [2,0];
-}forEach(_openWounds);
-
-_patient setVariable ["ace_medical_openWounds", _openWounds, true];
+_patient setVariable ["ace_medical_bandagedWounds", _openWounds, true];
+_patient setVariable ["ace_medical_openWounds", [], true];
 
 [_patient] call ace_medical_status_fnc_updateWoundBloodLoss;
 [_patient] call ace_medical_engine_fnc_updateDamageEffects;

+ 3 - 3
addons - Copy/RD501_Main/functions/medical_ccp/fnc_stitchAllWounds.sqf

@@ -2,7 +2,7 @@
 params["_healer","_patient"];
 
 private _bandagedWounds = _patient getVariable ["ace_medical_bandagedWounds", []];
-private _stitchedWounds = _patient getVariable ["ace_medical_stitchedWounds", []];
 _patient setVariable ["ace_medical_bandagedWounds", [], true];
-_patient setVariable ["ace_medical_stitchedWounds", _stitchedWounds, true];
-[_patient] call ace_medical_engine_fnc_updateDamageEffects; 
+_patient setVariable ["ace_medical_stitchedWounds", _bandagedWounds, true];
+
+[_patient] call ace_medical_engine_fnc_updateDamageEffects;