mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix R3F Tired
This commit is contained in:
@@ -34,14 +34,16 @@ R3F_TIRED_FNCT_Overburdened = {
|
|||||||
while {R3F_TIRED_Accumulator > R3F_TIRED_BLACKOUT_LEVEL} do {
|
while {R3F_TIRED_Accumulator > R3F_TIRED_BLACKOUT_LEVEL} do {
|
||||||
if (vehicle player == player) then {
|
if (vehicle player == player) then {
|
||||||
_vel = velocity player;
|
_vel = velocity player;
|
||||||
//walk 6.7, slow walk 3.98, run 19.8, backwards run -13.16, sprint 23.15, fast swim 3.78, fast crouch 13.14, slow crouch 4.69, fast crawl 3.25, slow crawl 1.8, side strafe 9.8
|
if ((abs(_vel select 0)) > 2 || (abs(_vel select 1)) > 2) then {
|
||||||
if (speed player > 6.8) then {
|
|
||||||
player setVelocity [-(_vel select 0),-(_vel select 1),_vel select 2];
|
player setVelocity [-(_vel select 0),-(_vel select 1),_vel select 2];
|
||||||
|
player forceWalk true;
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
uiSleep 0.001;
|
uiSleep 0.001;
|
||||||
};
|
};
|
||||||
R3F_TIRED_ForceWalk = false;
|
R3F_TIRED_ForceWalk = false;
|
||||||
|
player forceWalk false;
|
||||||
cutText ["","PLAIN DOWN"]; // Clear overburdened message
|
cutText ["","PLAIN DOWN"]; // Clear overburdened message
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user