Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pharmacy - Fix occluded medication not applying after tourniquet is removed #382

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions addons/pharma/CfgFunctions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,13 @@ class CfgFunctions {
};
};
};

class overwrite_medicalTreatment {
tag = "ace_medical_treatment";
class ace_medical_treatment {
class medicationLocal {
file = QPATHTOF(functions\fnc_treatmentAdvanced_medicationLocal.sqf);
};
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ if (HAS_TOURNIQUET_APPLIED_ON(_patient,_partIndex)) exitWith {
TRACE_1("unit has tourniquets blocking blood flow on injection site",_tourniquets);
private _occludedMedications = _patient getVariable [QACEGVAR(medical,occludedMedications), []];
_occludedMedications pushBack [_partIndex, _classname];

BlueTheKing marked this conversation as resolved.
Show resolved Hide resolved
_patient setVariable [QACEGVAR(medical,occludedMedications), _occludedMedications, true];
};

Expand Down