Revert pain effect to pre-1.8 version #1839

Same as 1051

Vanilla commit:

9b6d3dcd9c
This commit is contained in:
ebaydayz
2017-01-07 16:51:48 -05:00
parent 503206cad8
commit e4d48cbf38
2 changed files with 2 additions and 15 deletions

View File

@@ -347,6 +347,7 @@ while {1 == 1} do {
//Pain Effects //Pain Effects
if (r_player_inpain and !r_player_unconscious) then { if (r_player_inpain and !r_player_unconscious) then {
playSound "breath_1"; playSound "breath_1";
addCamShake [2, 1, 25];
}; };
_myPos = player getVariable["lastPos",[]]; _myPos = player getVariable["lastPos",[]];

View File

@@ -122,23 +122,9 @@ sched_medical_effects = {
}; };
sched_medical_effectsSlow = { sched_medical_effectsSlow = {
// every 10 seconds: diziness using slow shakecam, to handle pain and lack of water // every 10 seconds
HIDE_FSM_VARS 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 {
_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.2, 1, 2, true];
addCamShake [3 * _strength, _duration, 0.4];
//playSound "breath_1";
uiSleep _duration;
};
};
if (r_player_infected and !r_player_unconscious and 1 > random 2 and ((vehicle player == player and speed player < 5) or (vehicle player != player))) then { if (r_player_infected and !r_player_unconscious and 1 > random 2 and ((vehicle player == player and speed player < 5) or (vehicle player != player))) then {
[player,"cough",1,false] call dayz_zombieSpeak; [player,"cough",1,false] call dayz_zombieSpeak;
addCamShake [2, 1, 25]; addCamShake [2, 1, 25];