From ea64f8e63c3875d8b5a98a26b437cb9d62ed632b Mon Sep 17 00:00:00 2001 From: hizumi <> Date: Mon, 23 Dec 2024 00:01:43 -0600 Subject: [PATCH] Update fn_logRespawnButtonUse.sqf add triagelevel status to respawn message --- framework/client/functions/fn_logRespawnButtonUse.sqf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/client/functions/fn_logRespawnButtonUse.sqf b/framework/client/functions/fn_logRespawnButtonUse.sqf index 8d350a0..62331d7 100644 --- a/framework/client/functions/fn_logRespawnButtonUse.sqf +++ b/framework/client/functions/fn_logRespawnButtonUse.sqf @@ -8,6 +8,7 @@ if ( !hasInterface ) exitWith {}; if (not (local _unit)) exitWith {}; private _causeOfDeath = _unit getVariable ["ace_medical_causeOfDeath", "#scripted"]; + private _triageLevel = _unit call ace_medical_treatment_fnc_getTriageStatus; if (_causeOfDeath != "respawn_button") exitWith {}; private _timeWentUnconscious = _unit getVariable [QGVARMAIN(lastTimeKnockedOut), -1]; @@ -15,13 +16,13 @@ if ( !hasInterface ) exitWith {}; if (_timeWentUnconscious isEqualTo -1) exitWith {}; _durationSpentUnconscious = diag_tickTime - _timeWentUnconscious; - [ LEVEL_INFO, QUOTE(COMPONENT), "RESPAWNED WHILE UNCONSCIOUS", [_unit, [ - ["durationSpentUnconscious", _durationSpentUnconscious] + ["durationSpentUnconscious", _durationSpentUnconscious], + ["triageLevel", _triageLevel#1] ]] call EFUNC(common,addPlayerInfoToArray) ] remoteExec [QEFUNC(common,log), 2]; // format["%1 was unconscious then clicked the respawn button", name _unit] remoteExec["systemChat", 0];