mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
don't play scream by addPain function
This commit is contained in:
parent
fc079abd46
commit
1ea2a72f20
@ -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);
|
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user