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

Pharma - Modify ace_medical_status_getBloodLoss for alpha action #512

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 @@ -18,7 +18,7 @@
params ["_unit"];

private _cardiacOutput = [_unit] call ACEFUNC(medical_status,getCardiacOutput);
private _alphaAction = _unit getVariable [QGVAR(alphaAction), 1];
private _alphaAction = _unit getVariable [QEGVAR(pharma,alphaAction), 1];
private _internalBleeding = 0;

if (_unit getVariable [QEGVAR(breathing,hemopneumothorax), false]) then {
Expand Down
3 changes: 3 additions & 0 deletions addons/pharma/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
[QACEGVAR(medical_gui,updateInjuryListPart), LINKFUNC(gui_updateInjuryListPart)] call CBA_fnc_addEventHandler;
[QACEGVAR(medical_gui,updateBodyImage), LINKFUNC(gui_updateBodyImage)] call CBA_fnc_addEventHandler;
[QACEGVAR(medical_treatment,fullHealLocalMod), LINKFUNC(fullHealLocal)] call CBA_fnc_addEventHandler;
[QACEGVAR(medical_status,getBloodLoss), {
_this set [1, _this#1 * (_this#0 getVariable [QGVAR(alphaAction), 1])];
}] call CBA_fnc_addEventHandler;
["ace_treatmentSucceded", {
params ["_medic", "_patient", "_bodyPart", "_classname"];
if (!(GVAR(staminaMedication)) || ACE_Player != _patient || !(alive _patient)) exitWith {};
Expand Down
Loading