Revert pain effect to original #1839

This commit is contained in:
ebaydayz
2017-01-07 14:09:46 -05:00
parent 0c4d77d2aa
commit fa89487f22
2 changed files with 9 additions and 10 deletions

View File

@@ -126,18 +126,16 @@ sched_medical_effectsSlow = {
HIDE_FSM_VARS
if ((r_player_inpain or dayz_thirst >= SleepWater) and !r_player_unconscious and (1 > random 9) and (0 == player getVariable["startcombattimer",0])) then {
_blurTask = [] spawn {
_strength = 0.5 + (random 1);
_duration = 8 + (random 10);
_duration = 10 + (random 10);
_blurTask = [1 + (random 2), _duration] spawn {
_strength = _this select 0;
_duration = _this select 1;
enableCamShake true;
//[posCoef, vertCoef, horzCoef, bankCoef, interpolation]
setCamShakeParams [0.02, 0.05, 0.1, 0.3, true];
addCamShake [_strength, _duration, 0.4];
//[posCoef, vertCoef, horzCoef, bankCoef, interpolation]
setCamShakeParams [0.02, 0.2, 1, 2, true];
addCamShake [3 * _strength, _duration, 0.4];
//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;
uiSleep _duration;
};
};