Skip to content

Commit

Permalink
EACA and TXA changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cplhardcore committed Sep 11, 2024
1 parent 7c8e95e commit 96dc842
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions addons/pharma/ACE_Medical_Treatment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ class ACE_ADDON(Medical_Treatment) {
hrIncreaseLow[] = {0, 0};
hrIncreaseNormal[] = {0, 0};
hrIncreaseHigh[] = {0, 0};
timeInSystem = 120;
timeTillMaxEffect = 5;
timeInSystem = 240;
timeTillMaxEffect = 30;
maxDose = 3;
incompatibleMedication[] = {};
viscosityChange = 0;
Expand Down Expand Up @@ -242,7 +242,7 @@ class ACE_ADDON(Medical_Treatment) {
hrIncreaseNormal[] = {0, 0};
hrIncreaseHigh[] = {0, 0};
timeInSystem = 600;
timeTillMaxEffect = 15;
timeTillMaxEffect = 60;
maxDose = 10;
incompatibleMedication[] = {};
viscosityChange = 0;
Expand Down
8 changes: 4 additions & 4 deletions addons/pharma/functions/fnc_clotWound.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ private _fnc_clotWound = {

if (_amountOf * _bleeding > 0) exitWith {

if (_countTXA > 0 || _countEACA > 0) then {
if (_countTXA > 0.3 || _countEACA > 0.3) then {
_logString = LSTRING(coagulation_Bandaged_TXA);

if (_countEACA > 0 && _countTXA > 0) exitWith { // If TXA & EACA are in system at same time use EACA bandage
if (_countEACA > 0.3 && _countTXA > 0.3) exitWith { // If TXA & EACA are in system at same time use EACA bandage
_woundClotTime = round (_woundClotTime / 3 * 2);
_bandageToUse = _bandageToUse + "EACA";
};
Expand Down Expand Up @@ -113,8 +113,8 @@ private _fnc_clotWound = {
private _openWounds = _unit getVariable [VAR_OPEN_WOUNDS, createHashMap];
private _pulse = _unit getVariable [VAR_HEART_RATE, 80];
private _coagulationFactor = _unit getVariable [QGVAR(coagulationFactor), 30];
private _countTXA = [_unit, "TXA"] call ACEFUNC(medical_status,getMedicationCount);
private _countEACA = [_unit, "EACA"] call ACEFUNC(medical_status,getMedicationCount);
private _countTXA = [_unit, "TXA", false] call ACEFUNC(medical_status,getMedicationCount);
private _countEACA = [_unit, "EACA", false] call ACEFUNC(medical_status,getMedicationCount);
private _hasWoundToBandageArray = [];

if (_openWounds isEqualTo createHashMap) exitWith {}; // Exit when hashmap not initialized (Will not work when hashmap is set, cause ace only changes value of "woundCount" to 0)
Expand Down

0 comments on commit 96dc842

Please sign in to comment.