mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-23 00:20:50 +03:00
Finish Medical and Sleep to UiSleep
This commit is contained in:
@@ -127,7 +127,7 @@ else
|
||||
deleteVehicle _v;
|
||||
_v =(_wreck) createvehicle _pos;
|
||||
{_x moveincargo _v} count _crw;
|
||||
//sleep 0.05;
|
||||
//uiSleep 0.05;
|
||||
_v setvelocity _vel;
|
||||
//_v setPos _pos;
|
||||
_v setvectordir (_dir);
|
||||
|
||||
@@ -278,7 +278,7 @@ if (isServer) then {
|
||||
|
||||
setWind [drn_DynamicWeather_WindX, drn_DynamicWeather_WindZ, true];
|
||||
|
||||
sleep 0.05;
|
||||
uiSleep 0.05;
|
||||
|
||||
publicVariable "drn_var_DynamicWeather_Rain";
|
||||
drn_var_DynamicWeather_ServerInitialized = true;
|
||||
@@ -307,8 +307,8 @@ if (isServer) then {
|
||||
_overcastLevel = 2;
|
||||
|
||||
while {1 == 1} do {
|
||||
// Sleep a while until next weather change
|
||||
sleep floor (_minTimeBetweenWeatherChangesMin * 60 + random ((_maxTimeBetweenWeatherChangesMin - _minTimeBetweenWeatherChangesMin) * 60));
|
||||
// uiSleep a while until next weather change
|
||||
uiSleep floor (_minTimeBetweenWeatherChangesMin * 60 + random ((_maxTimeBetweenWeatherChangesMin - _minTimeBetweenWeatherChangesMin) * 60));
|
||||
|
||||
if (_minimumFog == _maximumFog && _minimumOvercast != _maximumOvercast) then {
|
||||
_weatherType = "OVERCAST";
|
||||
@@ -435,7 +435,7 @@ if (isServer) then {
|
||||
|
||||
call drn_fnc_DynamicWeather_SetWeatherAllClients;
|
||||
|
||||
sleep _weatherChangeTimeSek;
|
||||
uiSleep _weatherChangeTimeSek;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -506,10 +506,10 @@ if (isServer) then {
|
||||
};
|
||||
|
||||
if (_debug) then {
|
||||
sleep 1;
|
||||
uisleep 1;
|
||||
}
|
||||
else {
|
||||
sleep 10;
|
||||
uisleep 10;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -538,7 +538,7 @@ drn_var_rainRoutine = [_rainIntervalRainProbability, _debug] spawn {
|
||||
};
|
||||
|
||||
0 setRain _rain;
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
|
||||
while {1 == 1} do {
|
||||
if (_rainIntervalRainProbability > 0) then {
|
||||
@@ -557,7 +557,7 @@ drn_var_rainRoutine = [_rainIntervalRainProbability, _debug] spawn {
|
||||
|
||||
3 setRain _rain;
|
||||
|
||||
sleep 3;
|
||||
uiSleep 3;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ _ShuffleArray = {
|
||||
_rand_array set [count _rand_array, _ar select _rand];
|
||||
_ar set [_rand, "randarray_del"];
|
||||
_ar = _ar - ["randarray_del"];
|
||||
sleep 0.001;
|
||||
uiSleep 0.001;
|
||||
};
|
||||
_rand_array;
|
||||
};
|
||||
@@ -52,7 +52,7 @@ _activeArray = [];
|
||||
_i = _i + 1;
|
||||
};
|
||||
_t = _t + 1;
|
||||
sleep 0.01;
|
||||
uiSleep 0.01;
|
||||
}count _infectedWaterHoles;
|
||||
//diag_log [ diag_tickTime, __FILE__, "Infectious waterholes Max,Spawned,Active:",_t,_i,_activeArray];
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -2021,7 +2021,7 @@ class FSM
|
||||
"_nearestCity = nearestLocations [getPos player, [""NameCityCapital"",""NameCity"",""NameVillage"",""NameLocal""],1000];" \n
|
||||
"Dayz_logonTown = ""Wilderness"";" \n
|
||||
"if (count _nearestCity > 0) then {Dayz_logonTown = text (_nearestCity select 0)};" \n
|
||||
"[_world,Dayz_logonTown,format[localize ""str_player_06"",dayz_Survived]] spawn { sleep 5; _this spawn BIS_fnc_infoText;};" \n
|
||||
"[_world,Dayz_logonTown,format[localize ""str_player_06"",dayz_Survived]] spawn { uiSleep 5; _this spawn BIS_fnc_infoText;};" \n
|
||||
"dayzGearSave = true;" \n
|
||||
"dayz_myPosition = getPosATL player;" \n
|
||||
"Dayz_loginCompleted = true;" \n
|
||||
|
||||
@@ -389,7 +389,7 @@ dayz_myLoad = (((count dayz_myBackpackMags) * 0.2) + (count dayz_myBackpackWpns)
|
||||
//setGroupIconsVisible [false,false];
|
||||
//clearGroupIcons group player;
|
||||
|
||||
sleep 2;
|
||||
uiSleep 2;
|
||||
|
||||
_myPos = player getVariable["lastPos",[]];
|
||||
if (count _myPos > 0) then {
|
||||
|
||||
@@ -6,7 +6,7 @@ _timeoutStart=diag_ticktime;
|
||||
while {true} do {
|
||||
if (diag_ticktime - _timeoutStart >= 120) exitWith {
|
||||
1 cutText [localize "str_player_login_timeout", "PLAIN DOWN"];
|
||||
sleep 5;
|
||||
uiSleep 5;
|
||||
endMission "END1";
|
||||
};
|
||||
if ((!isNil "Dayz_loginCompleted") and {(Dayz_loginCompleted)}) exitWith {
|
||||
@@ -20,7 +20,7 @@ while {true} do {
|
||||
_control2 = _display displayctrl 102;
|
||||
_control2 ctrlSetText format["%1",floor(diag_ticktime - _timeoutStart)];
|
||||
|
||||
sleep 0.2;
|
||||
uiSleep 0.2;
|
||||
//diag_log [ __FILE__, __LINE__, "Looping..."];
|
||||
};
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@ sched_medical_effectsSlow = {
|
||||
playSound "breath_1";
|
||||
|
||||
//Lets make sure the spawn ends 1 sec after the _duration timer this should provide a smooth transtion rather then a snap to focus.
|
||||
sleep _duration + 1;
|
||||
uiSleep _duration + 1;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
sched_plantHint = {
|
||||
{
|
||||
(getPosATL _x) spawn {
|
||||
sleep random 10;
|
||||
uiSleep random 10;
|
||||
_sound=format["Sound_Crickets%1",1+floor random 3];
|
||||
//diag_log [ _sound ];
|
||||
_x = createSoundSource [_sound, _this, [], 0];
|
||||
sleep 2;
|
||||
uiSleep 2;
|
||||
deleteVehicle _x;
|
||||
};
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user