From 1ea2a72f20c27f67d9baab6f071d90387d5f46a8 Mon Sep 17 00:00:00 2001 From: commy2 Date: Tue, 11 Oct 2016 19:29:44 +0200 Subject: [PATCH] don't play scream by addPain function --- addons/medical/functions/fnc_addPain.sqf | 2 -- addons/medical_damage/functions/fnc_woundsHandler.sqf | 1 + addons/medical_damage/functions/fnc_woundsHandlerSQF.sqf | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/medical/functions/fnc_addPain.sqf b/addons/medical/functions/fnc_addPain.sqf index e7582bb204..3becb97a98 100644 --- a/addons/medical/functions/fnc_addPain.sqf +++ b/addons/medical/functions/fnc_addPain.sqf @@ -24,5 +24,3 @@ private _pain = _unit getVariable [QEGVAR(medical,pain), 0]; _pain = _pain + _painToAdd * (1 - _pain); _unit setVariable [QEGVAR(medical,pain), _pain]; - -[_unit, "hit", PAIN_TO_SCREAM(_painToAdd)] call EFUNC(medical_engine,playInjuredSound); diff --git a/addons/medical_damage/functions/fnc_woundsHandler.sqf b/addons/medical_damage/functions/fnc_woundsHandler.sqf index af99f50b13..6fa35b1dcc 100644 --- a/addons/medical_damage/functions/fnc_woundsHandler.sqf +++ b/addons/medical_damage/functions/fnc_woundsHandler.sqf @@ -67,5 +67,6 @@ if (count _woundsCreated > 0) then { }; [_unit, _painToAdd] call EFUNC(medical,addPain); +[_unit, "hit", PAIN_TO_SCREAM(_painToAdd)] call EFUNC(medical_engine,playInjuredSound); TRACE_5("exit",_unit, _painToAdd, _unit getVariable QEGVAR(medical,pain), _unit getVariable QEGVAR(medical,openWounds),_woundsCreated); diff --git a/addons/medical_damage/functions/fnc_woundsHandlerSQF.sqf b/addons/medical_damage/functions/fnc_woundsHandlerSQF.sqf index ea7087d5ed..f8c94dbef4 100644 --- a/addons/medical_damage/functions/fnc_woundsHandlerSQF.sqf +++ b/addons/medical_damage/functions/fnc_woundsHandlerSQF.sqf @@ -136,5 +136,6 @@ if (count _woundsCreated > 0) then { }; [_unit, _painToAdd] call EFUNC(medical,addPain); +[_unit, "hit", PAIN_TO_SCREAM(_painToAdd)] call EFUNC(medical_engine,playInjuredSound); TRACE_5("exit",_unit, _painToAdd, _unit getVariable QEGVAR(medical,pain), _unit getVariable QEGVAR(medical,openWounds),_woundsCreated);