don't play scream by addPain function

This commit is contained in:
commy2 2016-10-11 19:29:44 +02:00
parent fc079abd46
commit 1ea2a72f20
3 changed files with 2 additions and 2 deletions

View File

@ -24,5 +24,3 @@ private _pain = _unit getVariable [QEGVAR(medical,pain), 0];
_pain = _pain + _painToAdd * (1 - _pain); _pain = _pain + _painToAdd * (1 - _pain);
_unit setVariable [QEGVAR(medical,pain), _pain]; _unit setVariable [QEGVAR(medical,pain), _pain];
[_unit, "hit", PAIN_TO_SCREAM(_painToAdd)] call EFUNC(medical_engine,playInjuredSound);

View File

@ -67,5 +67,6 @@ if (count _woundsCreated > 0) then {
}; };
[_unit, _painToAdd] call EFUNC(medical,addPain); [_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); TRACE_5("exit",_unit, _painToAdd, _unit getVariable QEGVAR(medical,pain), _unit getVariable QEGVAR(medical,openWounds),_woundsCreated);

View File

@ -136,5 +136,6 @@ if (count _woundsCreated > 0) then {
}; };
[_unit, _painToAdd] call EFUNC(medical,addPain); [_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); TRACE_5("exit",_unit, _painToAdd, _unit getVariable QEGVAR(medical,pain), _unit getVariable QEGVAR(medical,openWounds),_woundsCreated);