mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
parent
9d0c034b72
commit
e2890b0699
@ -6,9 +6,9 @@ GVAR(heartBeatSounds_Fast) = ["ACE_heartbeat_fast_1", "ACE_heartbeat_fast_2", "A
|
||||
GVAR(heartBeatSounds_Normal) = ["ACE_heartbeat_norm_1", "ACE_heartbeat_norm_2"];
|
||||
GVAR(heartBeatSounds_Slow) = ["ACE_heartbeat_slow_1", "ACE_heartbeat_slow_2"];
|
||||
|
||||
["medical_propagateWound", FUNC(onPropagateWound)] call ace_common_fnc_addEventHandler;
|
||||
["medical_woundUpdateRequest", FUNC(onWoundUpdateRequest)] call ace_common_fnc_addEventHandler;
|
||||
["interactMenuClosed", {[objNull, false] call FUNC(displayPatientInformation); }] call ace_common_fnc_addEventHandler;
|
||||
["medical_propagateWound", FUNC(onPropagateWound)] call EFUNC(common,addEventHandler);
|
||||
["medical_woundUpdateRequest", FUNC(onWoundUpdateRequest)] call EFUNC(common,addEventHandler);
|
||||
["interactMenuClosed", {[objNull, false] call FUNC(displayPatientInformation); }] call EFUNC(common,addEventHandler);
|
||||
|
||||
["medical_onUnconscious", {
|
||||
if (local (_this select 0)) then {
|
||||
@ -30,7 +30,7 @@ GVAR(heartBeatSounds_Slow) = ["ACE_heartbeat_slow_1", "ACE_heartbeat_slow_2"];
|
||||
if (!isNil "acre_api_fnc_setGlobalVolume") then { [1] call acre_api_fnc_setGlobalVolume; };
|
||||
};
|
||||
};
|
||||
}] call ace_common_fnc_addEventHandler;
|
||||
}] call EFUNC(common,addEventHandler);
|
||||
|
||||
|
||||
// Initialize all effects
|
||||
|
@ -33,22 +33,23 @@ if ([_caller] call FUNC(isMedic)) then {
|
||||
} else {
|
||||
if (_bloodPressureHigh > 20) then {
|
||||
_output = LSTRING(Check_Bloodpressure_Output_2);
|
||||
_logOutPut = localize LSTRING(Check_Bloodpressure_Low);
|
||||
_logOutPut = LSTRING(Check_Bloodpressure_Low);
|
||||
if (_bloodPressureHigh > 100) then {
|
||||
_output = LSTRING(Check_Bloodpressure_Output_3);
|
||||
_logOutPut = localize LSTRING(Check_Bloodpressure_Normal);
|
||||
_logOutPut = LSTRING(Check_Bloodpressure_Normal);
|
||||
if (_bloodPressureHigh > 160) then {
|
||||
_output = LSTRING(Check_Bloodpressure_Output_4);
|
||||
_logOutPut = localize LSTRING(Check_Bloodpressure_High);
|
||||
_logOutPut = LSTRING(Check_Bloodpressure_High);
|
||||
};
|
||||
|
||||
};
|
||||
} else {
|
||||
if (random(10) > 3) then {
|
||||
_output = LSTRING(Check_Bloodpressure_Output_5);
|
||||
_logOutPut = localize LSTRING(Check_Bloodpressure_NoBloodpressure);
|
||||
_logOutPut = LSTRING(Check_Bloodpressure_NoBloodpressure);
|
||||
} else {
|
||||
_output = LSTRING(Check_Bloodpressure_Output_6);
|
||||
//Fail to find pressure, no logoutput
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -56,5 +57,5 @@ if ([_caller] call FUNC(isMedic)) then {
|
||||
["displayTextStructured", [_caller], [[_output, [_target] call EFUNC(common,getName), round(_bloodPressureHigh),round(_bloodPressureLow)], 1.75, _caller]] call EFUNC(common,targetEvent);
|
||||
|
||||
if (_logOutPut != "") then {
|
||||
[_target,"activity", localize LSTRING(Check_Bloodpressure_Log), [[_caller] call EFUNC(common,getName), _logOutPut]] call FUNC(addToLog);
|
||||
[_target,"activity", LSTRING(Check_Bloodpressure_Log), [[_caller] call EFUNC(common,getName), _logOutPut]] call FUNC(addToLog);
|
||||
};
|
||||
|
@ -24,7 +24,7 @@ if (!alive _unit) then {
|
||||
_heartRate = 0;
|
||||
};
|
||||
_heartRateOutput = LSTRING(Check_Pulse_Output_5);
|
||||
_logOutPut = localize LSTRING(Check_Pulse_None);
|
||||
_logOutPut = LSTRING(Check_Pulse_None);
|
||||
|
||||
if (_heartRate > 1.0) then {
|
||||
if ([_caller] call FUNC(isMedic)) then {
|
||||
@ -33,14 +33,14 @@ if (_heartRate > 1.0) then {
|
||||
} else {
|
||||
// non medical personel will only find a pulse/HR
|
||||
_heartRateOutput = LSTRING(Check_Pulse_Output_2);
|
||||
_logOutPut = localize LSTRING(Check_Pulse_Weak);
|
||||
_logOutPut = LSTRING(Check_Pulse_Weak);
|
||||
if (_heartRate > 60) then {
|
||||
if (_heartRate > 100) then {
|
||||
_heartRateOutput = LSTRING(Check_Pulse_Output_3);
|
||||
_logOutPut = localize LSTRING(Check_Pulse_Strong);
|
||||
_logOutPut = LSTRING(Check_Pulse_Strong);
|
||||
} else {
|
||||
_heartRateOutput = LSTRING(Check_Pulse_Output_4);
|
||||
_logOutPut = localize LSTRING(Check_Pulse_Normal);
|
||||
_logOutPut = LSTRING(Check_Pulse_Normal);
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -49,5 +49,5 @@ if (_heartRate > 1.0) then {
|
||||
["displayTextStructured", [_caller], [[_heartRateOutput, [_unit] call EFUNC(common,getName), round(_heartRate)], 1.5, _caller]] call EFUNC(common,targetEvent);
|
||||
|
||||
if (_logOutPut != "") then {
|
||||
[_unit,"activity", localize LSTRING(Check_Pulse_Log),[[_caller] call EFUNC(common,getName),_logOutPut]] call FUNC(addToLog);
|
||||
[_unit,"activity", LSTRING(Check_Pulse_Log),[[_caller] call EFUNC(common,getName),_logOutPut]] call FUNC(addToLog);
|
||||
};
|
||||
|
@ -25,4 +25,4 @@ _callBack = [_this, 3, {}, [{}]] call BIS_fnc_Param;
|
||||
_adjustment = _unit getvariable [QGVAR(heartRateAdjustments), []];
|
||||
_adjustment pushback [_value, _time, _callBack];
|
||||
_unit setvariable [QGVAR(heartRateAdjustments), _adjustment ];
|
||||
["Medical_onHeartRateAdjustmentAdded", [_unit, _value, _time]] call ace_common_fnc_localEvent;
|
||||
["Medical_onHeartRateAdjustmentAdded", [_unit, _value, _time]] call EFUNC(common,localEvent);
|
||||
|
@ -47,7 +47,7 @@ if (count _log >= 8) then {
|
||||
_log pushback [_message,_moment,_type, _arguments];
|
||||
|
||||
_unit setvariable [_logVarName, _log, true];
|
||||
["medical_onLogEntryAdded", [_unit, _type, _message, _arguments]] call ace_common_fnc_localEvent;
|
||||
["medical_onLogEntryAdded", [_unit, _type, _message, _arguments]] call EFUNC(common,localEvent);
|
||||
|
||||
_logs = _unit getvariable [QGVAR(allLogs), []];
|
||||
if !(_logVarName in _logs) then {
|
||||
|
@ -42,4 +42,4 @@ if (!_inList) then {
|
||||
_log pushback [_newItem, 1, ACE_time];
|
||||
};
|
||||
_unit setvariable [QGVAR(triageCard), _log, true];
|
||||
["Medical_onItemAddedToTriageCard", [_unit, _newItem, _amount]] call ace_common_fnc_localEvent;
|
||||
["Medical_onItemAddedToTriageCard", [_unit, _newItem, _amount]] call EFUNC(common,localEvent);
|
||||
|
@ -21,7 +21,7 @@ if (_unit getvariable [QGVAR(inCardiacArrest),false]) exitwith {};
|
||||
_unit setvariable [QGVAR(inCardiacArrest), true,true];
|
||||
_unit setvariable [QGVAR(heartRate), 0];
|
||||
|
||||
["Medical_onEnteredCardiacArrest", [_unit]] call ace_common_fnc_localEvent;
|
||||
["Medical_onEnteredCardiacArrest", [_unit]] call EFUNC(common,localEvent);
|
||||
|
||||
[_unit, true] call FUNC(setUnconscious);
|
||||
_timeInCardiacArrest = 120 + round(random(600));
|
||||
|
@ -1585,6 +1585,13 @@
|
||||
<Czech>%1 zkontroloval srdeční tep: %2</Czech>
|
||||
<Portuguese>%1 verificou a frequência cardíaca: %2</Portuguese>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_Check_Pulse_None">
|
||||
<English>None</English>
|
||||
<Russian>Нет</Russian>
|
||||
<Polish>Żadna</Polish>
|
||||
<Spanish>Nada</Spanish>
|
||||
<German>Keine</German>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Medical_Check_Pulse_Weak">
|
||||
<English>Weak</English>
|
||||
<German>Schwach</German>
|
||||
|
Loading…
Reference in New Issue
Block a user