Nametags - Only display talking waves when unit is alive and conscious (#10106)

Only display waves when unit is alive and conscious
This commit is contained in:
johnb432 2024-07-03 11:02:43 +02:00 committed by GitHub
parent ee0e947611
commit b714c8bce2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,14 +41,14 @@ switch (true) do {
INFO("ACRE Detected.");
DFUNC(isSpeaking) = {
params ["_unit"];
([_unit] call acre_api_fnc_isSpeaking) && {!(_unit getVariable ["ACE_isUnconscious", false])}
([_unit] call acre_api_fnc_isSpeaking) && {_unit call EFUNC(common,isAwake)}
};
};
case (["task_force_radio"] call EFUNC(common,isModLoaded)): {
INFO("TFAR Detected.");
DFUNC(isSpeaking) = {
params ["_unit"];
(_unit getVariable ["tf_isSpeaking", false]) && {!(_unit getVariable ["ACE_isUnconscious", false])}
(_unit getVariable ["tf_isSpeaking", false]) && {_unit call EFUNC(common,isAwake)}
};
};
default {
@ -65,7 +65,7 @@ switch (true) do {
DFUNC(isSpeaking) = {
params ["_unit"];
(_unit getVariable [QGVAR(isSpeakingInGame), false]) && {!(_unit getVariable ["ACE_isUnconscious", false])}
(_unit getVariable [QGVAR(isSpeakingInGame), false]) && {_unit call EFUNC(common,isAwake)}
};
};
};