Fix R3F Tired

This commit is contained in:
icomrade
2016-09-19 13:39:58 -04:00
parent 37a717fe3f
commit 5f33fd3ef5

View File

@@ -34,14 +34,16 @@ R3F_TIRED_FNCT_Overburdened = {
while {R3F_TIRED_Accumulator > R3F_TIRED_BLACKOUT_LEVEL} do {
if (vehicle player == player) then {
_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 (speed player > 6.8) then {
if ((abs(_vel select 0)) > 2 || (abs(_vel select 1)) > 2) then {
player setVelocity [-(_vel select 0),-(_vel select 1),_vel select 2];
player forceWalk true;
};
};
uiSleep 0.001;
};
R3F_TIRED_ForceWalk = false;
player forceWalk false;
cutText ["","PLAIN DOWN"]; // Clear overburdened message
};
};