mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
cdd7b6d81b
* Medical Treatment - Allow diagnosing death/CA * Update addons/medical_treatment/stringtable.xml Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com> * Update addons/medical_treatment/stringtable.xml Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>
33 lines
917 B
Plaintext
33 lines
917 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Glowbal
|
|
* Checks the response status of the patient.
|
|
*
|
|
* Arguments:
|
|
* 0: Medic <OBJECT>
|
|
* 1: Patient <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [player, cursorObject] call ace_medical_treatment_fnc_checkResponse
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_medic", "_patient"];
|
|
|
|
|
|
private _output = if (_patient call EFUNC(common,isAwake)) then {
|
|
LSTRING(Check_Response_Responsive)
|
|
} else {
|
|
if ((GVAR(advancedDiagnose) == 2) && {IN_CRDC_ARRST(_patient)}) exitWith { LSTRING(Check_Response_CardiacArrest) };
|
|
if ((GVAR(advancedDiagnose) == 2) && {!alive _patient}) exitWith { LSTRING(Check_Response_Dead) };
|
|
LSTRING(Check_Response_Unresponsive)
|
|
};
|
|
|
|
[[_output, _patient call EFUNC(common,getName)], 2] call EFUNC(common,displayTextStructured);
|
|
|
|
[_patient, "quick_view", _output, [[_patient, false, true] call EFUNC(common,getName)]] call FUNC(addToLog);
|