Update pain sound effect

Vanilla commit:

https://github.com/DayZMod/DayZ/commit/7cdb2e67fde01bb1cff9be98eb76af199c7c065b
This commit is contained in:
ebaydayz
2016-12-03 13:25:31 -05:00
parent 43d14dbdba
commit 45159d81c2
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -348,6 +348,11 @@ while {1 == 1} do {
//clearGroupIcons group player;
uiSleep 2;
//Pain Effects
if (r_player_inpain and !r_player_unconscious) then {
playSound "breath_1";
};
_myPos = player getVariable["lastPos",[]];
if (count _myPos > 0) then {
@@ -140,7 +140,7 @@ sched_medical_effectsSlow = {
//[posCoef, vertCoef, horzCoef, bankCoef, interpolation]
setCamShakeParams [0.02, 0.05, 0.1, 0.3, true];
addCamShake [_strength, _duration, 0.4];
playSound "breath_1";
//playSound "breath_1";
//Lets make sure the spawn ends 1 sec after the _duration timer this should provide a smooth transtion rather then a snap to focus.
uiSleep _duration + 1;