Move low blood check to scheduler

The old low blood check runs every frame until server restart. Having it in the scheduler does almost the same with much less performance impact.
This commit is contained in:
A Man
2019-10-30 20:12:31 +01:00
parent 4828c087ce
commit 0c20805524
2 changed files with 35 additions and 17 deletions

View File

@@ -1144,7 +1144,7 @@ class FSM
init = /*%FSM<STATEINIT""">*/"if (_debug == 1) then {diag_log [diag_tickTime,'Initialize'];};" \n
"" \n
"//Medical" \n
"dayz_medicalH = [] execVM ""\z\addons\dayz_code\medical\init_medical.sqf""; //Medical Monitor Script (client only)" \n
"//dayz_medicalH = [] execVM ""\z\addons\dayz_code\medical\init_medical.sqf""; //Medical Monitor Script (client only)" \n
"[player] call fnc_usec_damageHandle;" \n
"" \n
"if (r_player_unconscious) then {" \n