Reduce pain shake intensity and frequency

Vanilla commit:

4fb7bcbd5b
This commit is contained in:
ebayShopper
2017-02-19 19:31:01 -05:00
parent 4b1ecb4c3b
commit b786432526
2 changed files with 12 additions and 9 deletions

View File

@@ -335,12 +335,6 @@ while {1 == 1} do {
uiSleep 2;
//Pain Effects
if (r_player_inpain and !r_player_unconscious) then {
playSound "breath_1";
addCamShake [2, 1, 25];
};
_myPos = player getVariable["lastPos",[]];
if (count _myPos > 0) then {
player setVariable["lastPos",_mylastPos, true];

View File

@@ -125,9 +125,18 @@ sched_medical_effectsSlow = {
// every 10 seconds
HIDE_FSM_VARS
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;
addCamShake [2, 1, 25];
if (!r_player_unconscious && (r_player_infected or r_player_inpain)) then {
//Original pain shake was stronger [2, 1, 25]
//Low blood still uses strong shake in init_medical.sqf
addCamShake [1, 1, 20];
if (!r_player_infected) then {
playSound "breath_1"; //In pain
} else {
if (1 > random 2 && (speed player < 5 or {vehicle player != player})) then {
[player,"cough",1,false] call dayz_zombieSpeak;
};
};
};
objNull