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

Medical - Adds the classname to the IV bag array #10551

Merged
merged 2 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if (!isNil {_unit getVariable QEGVAR(medical,ivBags)}) then {
if (_bagVolumeRemaining < 0.01) then {
[]
} else {
[_bagVolumeRemaining, _type, _bodyPart]
[_bagVolumeRemaining, _type, _bodyPart, _classname]
};
};

Expand Down
2 changes: 1 addition & 1 deletion addons/medical_treatment/functions/fnc_ivBagLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ private _type = GET_STRING(_ivConfig >> "type",getText (_defaultConfig >> "typ

// Add IV bag to patient's ivBags array
private _ivBags = _patient getVariable [QEGVAR(medical,ivBags), []];
_ivBags pushBack [_volume, _type, _partIndex];
_ivBags pushBack [_volume, _type, _partIndex, _classname];
_patient setVariable [QEGVAR(medical,ivBags), _ivBags, true];
Loading