Replace sleep with uiSleep

see the below links for more info. uiSleep is based off of a more
accurate method of tracking time, whereas sleep can fluctuate depending
on application performance since it is based on framerate.
https://community.bistudio.com/wiki/uiSleep
https://community.bistudio.com/wiki/sleep_vs_uiSleep
https://community.bistudio.com/wiki/sleep
This commit is contained in:
icomrade
2016-02-17 13:03:17 -05:00
parent acbe103ebd
commit c3ed4e49e1
134 changed files with 276 additions and 278 deletions

View File

@@ -86,7 +86,7 @@ class RscDisplayStart {
class RscDisplayGetReady;
class RscDisplayClientGetReady: RscDisplayGetReady {
// could probably add a check in the spawn but couldn't test with multiple players
onload = "private ['_dummy']; _dummy = [_this,'onload'] call compile preprocessfile '\ca\ui\scripts\server_interface.sqf'; _this spawn { while { !isNull (findDisplay 53) } do { ctrlActivate ((_this select 0) displayCtrl 1); sleep 0.1; }; };";
onload = "private ['_dummy']; _dummy = [_this,'onload'] call compile preprocessfile '\ca\ui\scripts\server_interface.sqf'; _this spawn { while { !isNull (findDisplay 53) } do { ctrlActivate ((_this select 0) displayCtrl 1); uiSleep 0.1; }; };";
};
class RscDisplayDebriefing: RscStandardDisplay {
onLoad = "ctrlActivate ((_this select 0) displayCtrl 2)";

View File

@@ -31,14 +31,14 @@ if (_hasbottleitem && _hastinitem) then {
_removed = _removed + ([player,"ItemWaterbottle",_qty] call BIS_fnc_invRemove);
[1,1] call dayz_HungerThirst;
player playActionNow "Medic";
sleep 1;
uiSleep 1;
_dis=10;
_sfx = "cook";
[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
sleep 5;
uiSleep 5;
// Add back only number of removed
for "_x" from 1 to _removed do {

View File

@@ -15,7 +15,7 @@ s_player_callzombies = 1;
[player,100,true,(getPosATL player)] spawn player_alertZombies;
// wait a bit
sleep 3;
uiSleep 3;
// allow menu again
s_player_callzombies = -1;

View File

@@ -50,7 +50,7 @@ _cookedmeat = meatcooked;
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -8,7 +8,7 @@ if(_whistle) then {
[nil,player,rSAY,["dog_callBack", 120]] call RE;
};
sleep 1;
uiSleep 1;
if (_dog distance player <= 900) then {
_handle setFSMVariable ["_command","return"];

View File

@@ -8,6 +8,6 @@ _watchDog = _handle getFSMVariable "_watchDog";
_anim = animationState _dog;
if (_anim == "Dog_SitDown" && _watchDog) then {
//[objNull, _dog, rSwitchMove,"Dog_SitUp"] call RE;
//sleep 0.5;
//uiSleep 0.5;
[objNull, _dog, rSwitchMove,"Dog_LieDown"] call RE;
};

View File

@@ -22,7 +22,7 @@ _warn = {
[_dog,"dog_growl",2,false] call dayz_zombieSpeak;
};
};
sleep 2;
uiSleep 2;
};
};

View File

@@ -76,7 +76,7 @@ if(_IsNearVehicle >= 1) then {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;
@@ -143,7 +143,7 @@ if(_IsNearVehicle >= 1) then {
};
if(_abort) exitWith {};
sleep 1;
uiSleep 1;
};
} else {

View File

@@ -36,7 +36,7 @@ while {r_doLoop} do {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -8,7 +8,7 @@ if (_isOk) then {
_classname = "Land_Fire";
[1,1] call dayz_HungerThirst;
player playActionNow "Medic";
sleep 6;
uiSleep 6;
dayz_hasFire = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
dayz_hasFire setDir _dir;
player reveal dayz_hasFire;

View File

@@ -5,7 +5,7 @@ player removeAction s_player_fireout;
s_player_fireout = 1;
[1,1] call dayz_HungerThirst;
player playActionNow "Medic";
sleep 6;
uiSleep 6;
if(_obj isKindOf "Land_fire") then {
dayz_hasFire = objNull;
deleteVehicle _obj;

View File

@@ -1,7 +1,7 @@
private ["_flare","_text"];
_flare = _this select 3;
player playActionNow "PutDown";
sleep 2;
uiSleep 2;
_flare attachTo [player,[0,0,0],"granat2"];
[_flare, -90, -10] call object_setpitchbank;
[_flare] call FNC_GetSetPos;
@@ -15,7 +15,7 @@ _text = getText (configFile >> "CfgAmmo" >> (typeOf _flare) >> "displayName");
s_player_dropflare = player addAction [format[localize "str_actions_medical_16",_text], "\z\addons\dayz_code\actions\flare_drop.sqf",_flare, 1, false, true, "", ""];
while {(alive _flare) && dayz_hasLight} do {
sleep 0.1;
uiSleep 0.1;
};
if (dayz_hasLight) then {
dayz_hasLight = false;

View File

@@ -44,7 +44,7 @@ if ((_hasKnife || _hasKnifeBlunt) && !_hasHarvested) then {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -45,7 +45,7 @@ if ((_hasKnife || _hasKnifeBlunt) && !_hasHarvested) then {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -2,7 +2,7 @@ DZE_myHaloVehicle removeAction s_halo_action;
s_halo_action = -1;
player action [ "eject", (vehicle player)];
sleep 1;
uiSleep 1;
player spawn BIS_fnc_halo;
player setvelocity [0,120*0.8,0];
player setdir 0;

View File

@@ -55,7 +55,7 @@ _qty = count _fuelCans;
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;
@@ -82,7 +82,7 @@ _qty = count _fuelCans;
};
};
sleep 1;
uiSleep 1;
if(_abort) exitWith {};
} count _fuelCans;

View File

@@ -3,7 +3,7 @@ _array = _this select 3;
_object = _array select 0;
_type = TypeOf(_object);
player playActionNow "Medic";
sleep 8;
uiSleep 8;
player addBackpack format["%1_US_Bag_EP1",_type];
deleteVehicle _object;
r_action = false;

View File

@@ -313,7 +313,7 @@ if (_hasrequireditem) then {
};
sleep 0.5;
uiSleep 0.5;
_location2 = getPosATL player;
@@ -434,7 +434,7 @@ if (_hasrequireditem) then {
if (DZE_cancelBuilding) exitWith {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -146,7 +146,7 @@ while {_isOk} do {
};
};
sleep 0.5;
uiSleep 0.5;
_location2 = [player] call FNC_GetPos;
_objectHelperPos = [_objectHelper] call FNC_GetPos;

View File

@@ -100,7 +100,7 @@ if(!_cancel) then {
if (DZE_cancelBuilding) exitWith {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -49,7 +49,7 @@ while {r_doLoop} do {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -47,7 +47,7 @@ if ((typeOf (unitBackPack player)) != "") then {
ctrlActivate (_dialog displayCtrl 157);
if (gear_done) then {
waitUntil {ctrlShown (_dialog displayCtrl 159)};
sleep 0.001;
uiSleep 0.001;
};
for "_i" from 5000 to (5000 + _count) do {
@@ -66,5 +66,5 @@ if ((typeOf (unitBackPack player)) != "") then {
};
(findDisplay 106) closeDisplay 0;
if (gear_done) then {sleep 0.001;};
if (gear_done) then {uiSleep 0.001;};
_magazineArray

View File

@@ -145,7 +145,7 @@ if (_canDo) then {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;
@@ -252,7 +252,7 @@ if (_canDo) then {
// Add crafted item
cutText [format[(localize "str_epoch_player_150"),_textCreate,_countOut], "PLAIN DOWN"];
// sleep here
sleep 1;
uiSleep 1;
} forEach _selectedRecipeOutput;
_tradeComplete = _tradeComplete+1;

View File

@@ -32,7 +32,7 @@ if (vehicle player != player) then {
_invehicle = true;
};
sleep 1;
uiSleep 1;
if (["ItemWaterbottle",_itemorignal] call fnc_inString) then {
//low alert && sound radius
@@ -53,7 +53,7 @@ if (_hasoutput) then {
_itemtodrop = drink_output select (drink_with_output find _itemorignal);
if (!_invehicle) then {
sleep 3;
uiSleep 3;
_nearByPile = nearestObjects [(getPosATL player), ["WeaponHolder","WeaponHolderBase"],2];
if (count _nearByPile == 0) then {
_iPos = getPosATL player;
@@ -65,7 +65,7 @@ if (_hasoutput) then {
};
_item addMagazineCargoGlobal [_itemtodrop,1];
} else {
sleep 2;
uiSleep 2;
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
};
};

View File

@@ -35,7 +35,7 @@ if (vehicle player != player) then {
_invehicle = true;
};
sleep 1;
uiSleep 1;
_dis=6;
_sfx = "eat";
@@ -53,7 +53,7 @@ if (_hasoutput) then {
_itemtodrop = food_output select (food_with_output find _itemorignal);
if (!_invehicle) then {
sleep 3;
uiSleep 3;
_nearByPile = nearestObjects [(getPosATL player), ["WeaponHolder","WeaponHolderBase"],2];
if (count _nearByPile == 0) then {
_iPos = getPosATL player;
@@ -65,7 +65,7 @@ if (_hasoutput) then {
};
_item addMagazineCargoGlobal [_itemtodrop,1];
} else {
sleep 2;
uiSleep 2;
(vehicle player) addMagazineCargoGlobal [_itemtodrop,1];
};
};

View File

@@ -5,18 +5,18 @@ _object = _this select 3;
//Standup
//player playMove "amovpercmstpsraswrfldnon_amovpknlmstpslowwrfldnon";
//sleep 1;
//uiSleep 1;
//waitUntil { animationState player != "amovpercmstpsraswrfldnon_amovpknlmstpslowwrfldnon"};
//Kneel Down
player playMove "amovpknlmstpslowwrfldnon_amovpercmstpsraswrfldnon";
waitUntil { animationState player != "amovpknlmstpslowwrfldnon_amovpercmstpsraswrfldnon"};
sleep 2;
uiSleep 2;
//_object setpos _position;
_object setvectorup [0,0,1];
[player,"scream",0,true] call dayz_zombieSpeak;
[player,20,true,(getPosATL player)] spawn player_alertZombies;
sleep 3;
uiSleep 3;
//Other possibilities

View File

@@ -36,7 +36,7 @@ while {_isOk} do {
cutText [(localize "str_epoch_player_68"), "PLAIN DOWN"];
} else {
sleep 2;
uiSleep 2;
_rnd = 50;
@@ -75,7 +75,7 @@ while {_isOk} do {
_counter = _counter + 1;
if(_counter == 10) then {
_isOk = false;
sleep 2;
uiSleep 2;
cutText [(localize "str_epoch_player_71"), "PLAIN DOWN"];
};
};

View File

@@ -77,7 +77,7 @@ if (count(_findNearestTree) >= 1) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};

View File

@@ -60,7 +60,7 @@ while {r_doLoop} do {
if (r_interrupt || _moved || (typeName _attached == "OBJECT") || (typeName _hasAttached == "OBJECT")) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -38,7 +38,7 @@ player addMagazine "bulk_empty";
[1,1] call dayz_HungerThirst;
// Change to optional wait to complete
player playActionNow "Medic";
sleep 6;
uiSleep 6;
_b0x1337 = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
_b0x1337 setDir _dir;

View File

@@ -14,7 +14,7 @@ if (_hasWood) then {
_classname = "Land_Fire_DZ";
[1,1] call dayz_HungerThirst;
player playActionNow "Medic";
sleep 6;
uiSleep 6;
_fire = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
_fire setDir _dir;
player reveal _fire;

View File

@@ -19,7 +19,7 @@ player removeMagazine _item;
_location = getPosATL player;
player playActionNow "PutDown";
sleep 1;
uiSleep 1;
_object = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
_dir = getDir player;

View File

@@ -4,43 +4,43 @@ player playMove "amovpsitmstpsraswrfldnon_smoking"; // - Sitting smoking
waitUntil { animationState player != "amovpsitmstpsraswrfldnon_smoking"};
sleep 5;
uiSleep 5;
player playMove "amovpsitmstpsraswrfldnon_weaponcheck1"; // - Sitting checking weapon
waitUntil { animationState player != "amovpsitmstpsraswrfldnon_weaponcheck1"};
sleep 5;
uiSleep 5;
player playMove "AidlPpneMstpSnonWnonDnon_SleepC_layDown";
waitUntil { animationState player != "AidlPpneMstpSnonWnonDnon_SleepC_layDown"};
sleep 5;
uiSleep 5;
player playMove "AidlPpneMstpSnonWnonDnon_SleepC_lookAround";
waitUntil { animationState player != "AidlPpneMstpSnonWnonDnon_SleepC_lookAround"};
sleep 5;
uiSleep 5;
player playMove "AidlPpneMstpSnonWnonDnon_SleepC_scratch";
waitUntil { animationState player != "AidlPpneMstpSnonWnonDnon_SleepC_scratch"};
sleep 5;
uiSleep 5;
player playMove "AidlPpneMstpSnonWnonDnon_SleepC_sleep";
waitUntil { animationState player != "AidlPpneMstpSnonWnonDnon_SleepC_sleep"};
sleep 5;
uiSleep 5;
player playMove "AidlPpneMstpSnonWnonDnon_SleepC_sleep0";
waitUntil { animationState player != "AidlPpneMstpSnonWnonDnon_SleepC_sleep0"};
sleep 5;
uiSleep 5;
player playMove "AidlPpneMstpSnonWnonDnon_SleepC_standUp";

View File

@@ -21,6 +21,6 @@ if (!isNull cursorTarget) then {
[player,"hit",0,false] call dayz_zombieSpeak;
};
sleep 1;
uiSleep 1;
player switchmove "";
};

View File

@@ -13,7 +13,7 @@ if(!(alive _item)) then {
_move = "ZombieFeed" + str(_rnd);
player playMoveNow _move;
sleep 1;
uiSleep 1;
// player playActionNow "PutDown";
[player,50,true,(getPosATL player)] spawn player_alertZombies;
@@ -22,7 +22,7 @@ if(!(alive _item)) then {
_item setVariable["meatHarvested",true,true];
sleep 1;
uiSleep 1;
_regen = 200;

View File

@@ -50,7 +50,7 @@ while { aperture < _oldAperture } do
{
aperture = aperture + 0.0005;
setAperture aperture;
sleep 0.001;
uiSleep 0.001;
};
player setVariable ["NV", ["ON", _oldAperture]];

View File

@@ -71,7 +71,7 @@ _availableCans = ["ItemJerrycan","ItemFuelBarrel"];
if (vehicle player != player) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;
@@ -86,7 +86,7 @@ _availableCans = ["ItemJerrycan","ItemFuelBarrel"];
} else {
// Alternate method in water make sure player stays in one spot for 6 seconds
_location1 = getPosATL player;
sleep 6;
uiSleep 6;
_location2 = getPosATL player;
if(_location1 distance _location2 < 3) then {
_finished = true;
@@ -122,7 +122,7 @@ _availableCans = ["ItemJerrycan","ItemFuelBarrel"];
call fnc_usec_medic_removeActions;
r_action = false;
sleep 1;
uiSleep 1;
} else {
_abort = true;
};

View File

@@ -119,7 +119,7 @@ while {_isOk} do {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};

View File

@@ -49,7 +49,7 @@ if (_section && _hasToolbox) then {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -50,7 +50,7 @@ if (_hasToolbox) then {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -77,7 +77,7 @@ _availableCansEmpty = ["ItemJerrycanEmpty","ItemFuelBarrelEmpty"];
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;
@@ -92,7 +92,7 @@ _availableCansEmpty = ["ItemJerrycanEmpty","ItemFuelBarrelEmpty"];
} else {
// Alternate method in water make sure player stays in one spot for 6 seconds
_location1 = getPosATL player;
sleep 6;
uiSleep 6;
_location2 = getPosATL player;
if(_location1 distance _location2 < 3) then {
_finished = true;
@@ -128,7 +128,7 @@ _availableCansEmpty = ["ItemJerrycanEmpty","ItemFuelBarrelEmpty"];
call fnc_usec_medic_removeActions;
r_action = false;
sleep 1;
uiSleep 1;
} else {
_abort = true;
};

View File

@@ -115,7 +115,7 @@ fnc_snapDistanceCheck = {
_objectHelper setPosATL _distClosestPointFoundPos;
};
_objectHelper setDir _distClosestPointFoundDir;
waitUntil {sleep 0.1; !helperDetach};
waitUntil {uiSleep 0.1; !helperDetach};
};
} else {
_distClosestAttached = objNull; _distCheckAttached = 0; _distClosest = 10; _distClosestAttachedFoundPos = [];
@@ -151,11 +151,11 @@ fnc_snapDistanceCheck = {
_objectHelper setPosATL _distClosestPointFoundPos;
};
_objectHelper setDir _distClosestPointFoundDir;
waitUntil {sleep 0.1; !helperDetach};
waitUntil {uiSleep 0.1; !helperDetach};
};
};
};
sleep 0.1;
uiSleep 0.1;
};
};
@@ -183,7 +183,7 @@ fnc_initSnapTutorial = {
//Delete on init
800 cutRsc ["Default", "PLAIN"];
sleep 0.1;
uiSleep 0.1;
//Init Tutorial text
if (_bldTxtEnable) then {
@@ -232,7 +232,7 @@ switch (snapActionState) do {
[] spawn {
while {true} do {
if(!DZE_ActionInProgress || DZE_cancelBuilding) exitWith {call fnc_initSnapPointsCleanup;[0,0,0] call fnc_snapActionCleanup; ["",false] call fnc_initSnapTutorial; snapActionState = "OFF";};
sleep 2;
uiSleep 2;
};
};
};
@@ -242,7 +242,7 @@ switch (snapActionState) do {
[1,1,0] call fnc_snapActionCleanup;
call fnc_initSnapPoints;
call fnc_initSnapPointsNearby;
sleep 0.25;
uiSleep 0.25;
call fnc_snapDistanceCheck;
};

View File

@@ -36,7 +36,7 @@ while {r_doLoop} do {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -43,7 +43,7 @@ if(_removed == _countIn) then {
_animalID = _dog getVariable "fsm_handle";
_animalID setFSMVariable ["_isTamed", true];
sleep 1;
uiSleep 1;
//diag_log format["DEBUG: %1, id: %2 [%3]",_dog,_animalID,completedFSM _animalID];
if (!moveToCompleted _dog) then {
_dog moveTo ([_dog] call FNC_GetPos);

View File

@@ -41,7 +41,7 @@ if (!_isOk) then {
[1,1] call dayz_HungerThirst;
//wait a bit
player playActionNow "Medic";
sleep 1;
uiSleep 1;
_dis=20;
_sfx = "tentunpack";
@@ -50,7 +50,7 @@ if (!_isOk) then {
_classname = getText (configFile >> "CfgMagazines" >> _item >> "ItemActions" >> "Pitch" >> "create");
sleep 5;
uiSleep 5;
//place tent (local)
_object = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
_object setdir _dir;

View File

@@ -61,7 +61,7 @@ if(_IsNearVehicle >= 1) then {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -50,7 +50,7 @@ if(_inTow) then {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -50,7 +50,7 @@ while {r_doLoop} do {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -56,7 +56,7 @@ if (_qty >= _qty_in) then {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -50,7 +50,7 @@ while {r_doLoop} do {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -57,7 +57,7 @@ if (_qty >= _qty_in) then {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -50,7 +50,7 @@ while {r_doLoop} do {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -50,7 +50,7 @@ while {r_doLoop} do {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -61,7 +61,7 @@ if (_qty >= _qty_in) then {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -47,7 +47,7 @@ while {r_doLoop} do {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -55,7 +55,7 @@ if (_qty >= _qty_in) then {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -88,7 +88,7 @@ while {r_autoTrade} do {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;
@@ -144,7 +144,7 @@ while {r_autoTrade} do {
};
if(_abort) exitWith {r_autoTrade = false};
sleep 1;
uiSleep 1;
};
DZE_ActionInProgress = false;

View File

@@ -78,7 +78,7 @@ for "_x" from 1 to _total_trades do {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;
@@ -144,7 +144,7 @@ for "_x" from 1 to _total_trades do {
};
};
sleep 1;
uiSleep 1;
if(_abort) exitWith {};
};

View File

@@ -63,7 +63,7 @@ for "_x" from 1 to _total_trades do {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;
@@ -113,7 +113,7 @@ for "_x" from 1 to _total_trades do {
cutText [format[(localize "str_epoch_player_184"),_needed,_textPartIn] , "PLAIN DOWN"];
};
sleep 1;
uiSleep 1;
if(_abort) exitWith {};
};

View File

@@ -98,7 +98,7 @@ while {r_doLoop} do {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -56,7 +56,7 @@ if (_qty >= _qty_in) then {
if (r_interrupt) then {
r_doLoop = false;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

View File

@@ -6,7 +6,7 @@ _dir = getDir player;
_classname = _array select 0;
removeBackpack player;
player playActionNow "Medic";
sleep 8;
uiSleep 8;
player removeAction r_player_action_bag;
r_action_bag = false;
_weapon = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];

View File

@@ -53,16 +53,16 @@ while {_isOk} do {
if(_counter == 0) then {
cutText [(localize "str_epoch_player_109"), "PLAIN DOWN"];
sleep 5;
uiSleep 5;
_location1 = getPosATL player;
sleep 5;
uiSleep 5;
_location2 = getPosATL player;
if(_location1 distance _location2 < 0.1) exitWith {
cutText [(localize "str_epoch_player_109"), "PLAIN DOWN"];
_location3 = getPosATL player;
sleep 5;
uiSleep 5;
_location4 = getPosATL player;
if(_location3 distance _location4 > 0.1) exitWith {
@@ -123,7 +123,7 @@ if(!_cancel) then {
[1,1] call dayz_HungerThirst;
//wait a bit
player playActionNow "Medic";
sleep 1;
uiSleep 1;
[player,"tentunpack",0,false] call dayz_zombieSpeak;
[player,50,true,(getPosATL player)] spawn player_alertZombies;
@@ -140,7 +140,7 @@ if(!_cancel) then {
_location = player modelToWorld [_offset_x,_offset_y,_offset_z];
};
sleep 5;
uiSleep 5;
//place tent (local)
_tent = createVehicle ["VaultStorageLocked", _location, [], 0, "CAN_COLLIDE"];
_tent setdir _dir;

View File

@@ -16,7 +16,7 @@ switch _action do {
case "MoveToPilot": {
if (((_vehicle emptyPositions "Driver") == 0) && (!alive _driver)) then {
_driver action ["EJECT", _vehicle];
sleep 0.5; //wait for ejection
uiSleep 0.5; //wait for ejection
};
if ((_vehicle emptyPositions "Driver") > 0) then {
player action [_action, _vehicle];

View File

@@ -1,5 +1,5 @@
scriptName "modules_e\Functions\objects\fn_HALO.sqf";
sleep 0.01;
uiSleep 0.01;
//--- HALO -------------------------------------------------------------------------------------------------------------------------------------
if (typename _this == typename objnull) then {
@@ -165,7 +165,7 @@ if (typename _this == typename objnull) then {
bis_fnc_halo_ppRadialBlur ppEffectAdjust [0.02,0.02,0.3 - (bis_fnc_halo_vel/7)/_fpsCoef,0.3 - (bis_fnc_halo_vel/7)/_fpsCoef];
bis_fnc_halo_ppRadialBlur ppEffectCommit 0.01;
*/
sleep 0.01;
uiSleep 0.01;
};
//--- End
player removeaction bis_fnc_halo_action;
@@ -207,7 +207,7 @@ if (typename _this == typename objnull) then {
(_vel select 2)
];
};
sleep 0.01;
uiSleep 0.01;
};
//--- Open
@@ -334,7 +334,7 @@ if (typename _this == typename []) then {
bis_fnc_halo_para_mousemoving_eh = (finddisplay 46) displayaddeventhandler ["mousemoving","_this call bis_fnc_halo_para_loop;"];
bis_fnc_halo_para_mouseholding_eh = (finddisplay 46) displayaddeventhandler ["mouseholding","_this call bis_fnc_halo_para_loop;"];
sleep 4;
uiSleep 4;
// ppeffectdestroy bis_fnc_halo_DynamicBlur;
bis_fnc_halo_para_keydown_eh = (finddisplay 46) displayaddeventhandler ["keydown","_this call bis_fnc_halo_para_keydown;"];

View File

@@ -100,7 +100,7 @@ _nrTLs= _twrPos nearObjects ["#lightpoint",20];
}else{
deleteVehicle _x;
};
sleep .2;
uiSleep 0.2;
}count _nrTLs;
}else{
@@ -112,7 +112,7 @@ _nrTLs= _twrPos nearObjects ["#lightpoint",20];
_a = (_twrPos select 0)+(_rad * cos(_ang));
_b = (_twrPos select 1)+(_rad * sin(_ang));
[_lCol,_lbrt,_lamb,[_a,_b,(_twrPos select 2) + 26],_ang,[0,0,-1]] call axe_newLightPoint;
sleep .4;
uiSleep 0.4;
};
};
};

View File

@@ -18,12 +18,12 @@ if ((!r_player_handler1) && (r_handlerCount == 0)) then {
"colorCorrections" ppEffectEnable true;"colorCorrections" ppEffectEnable true;"colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 0.1], [1, 1, 1, 0.0]];"colorCorrections" ppEffectCommit 0;
0 fadeSound 0.05;
disableUserInput true;
_disableHdlr = [] spawn { sleep 2; disableUserInput true; r_player_unconsciousInputDisabled = true; };
_disableHdlr = [] spawn { uiSleep 2; disableUserInput true; r_player_unconsciousInputDisabled = true; };
while {r_player_unconscious} do {
_ctrl1 ctrlSetPosition [(_ctrl1Pos select 0),(_ctrl1Pos select 1),(_ctrl1Pos select 2),((0.136829 * safezoneH) * (1 -(r_player_timeout / _totalTimeout)))];
_ctrl1 ctrlCommit 1;
playSound "heartbeat_1";
sleep 1;
uiSleep 1;
_bloodLow = ((r_player_blood/r_player_bloodTotal) < 0.5);
if(_timeout == 0) then {

View File

@@ -15,7 +15,7 @@ if (local _animalbody) then {
_body = _this select 1;
_pos = getPosATL _body;
while {(count magazines _body >0) && (time - _timer < 300) } do {
sleep 5;
uiSleep 5;
};
hideBody _body;
@@ -30,7 +30,7 @@ if (local _animalbody) then {
};
} count _inRange;
sleep 5;
uiSleep 5;
deleteVehicle _body;
true;
};

View File

@@ -11,7 +11,7 @@ if (local _zombiebody) then {
_body = _this select 1;
_pos = getPosATL _body;
while {(count magazines _body >0) && (time - _timer < 300) } do {
sleep 5;
uiSleep 5;
};
hideBody _body;
@@ -25,7 +25,7 @@ if (local _zombiebody) then {
};
} count _inRange;
sleep 5;
uiSleep 5;
deleteVehicle _body;
true;
};

View File

@@ -95,7 +95,7 @@ if(!isNil "_objHouse")then{
};
_brtns = [_plyr,_x] call axe_lightBrightness;
while{true}do{sleep .1;if (_x animationPhase "Lights_1"==1) exitWith {};};
while{true}do{uiSleep 0.1;if (_x animationPhase "Lights_1"==1) exitWith {};};
//axeDiagLog = format["HL:NEW HOUSE LIT:%1",_x];
//publicVariable "axeDiagLog";

View File

@@ -103,7 +103,7 @@ if(!isDedicated)then{
//};
_plyPos = [Player] call FNC_getPos;
};
sleep _slpTime;
uiSleep _slpTime;
};
};
//Attempt a server cleanup - Not detectable..
@@ -121,7 +121,7 @@ if(isServer)then{
{
if (local _x) then {
_x call dayz_perform_purge;
sleep 0.025;
uiSleep 0.025;
_delQtyLights = _delQtyLights + 1;
} else {
if (!alive _x) then {
@@ -130,13 +130,13 @@ if(isServer)then{
_nearby = {(isPlayer _x) && (alive _x)} count (_pos nearEntities [["CAManBase","AllVehicles"], 420]);//Use calculated range here.
if (_nearby==0) then {
_x call dayz_perform_purge;
sleep 0.025;
uiSleep 0.025;
_delQtyLights = _delQtyLights + 1;
};
};
};
};
sleep 0.001;
uiSleep 0.001;
} forEach _missonLights;
if (_delQtyLights > 0) then {
_qty = count _missonLights;
@@ -147,7 +147,7 @@ if(isServer)then{
while{true}do{
[] spawn server_spawnCleanLightpoints;
sleep 30;
uiSleep 30;
};
};
*/

View File

@@ -31,7 +31,7 @@ _objHouses = nearestObjects [_nrstTrig, ["House"], _hsRange];
_objHouse animate ["Lights_1",1];
};
_sleeptime=(random 100)/100;
sleep _sleeptime;
uiSleep _sleeptime;
};
if(_hasLight)then{deleteVehicle _animlightpoint;};
_objHouse animate ["Lights_1",0];

View File

@@ -83,7 +83,7 @@ if ((_isVehicle || _isStorage || _isnewstorage) && (!_isMan) && (!(isNull (findD
_freeSlots = [] call _countFreeSlots;
[] call _setControlText;
sleep 0.01;
uiSleep 0.01;
};
};
};

View File

@@ -23,7 +23,7 @@ if (!isNull _flare) then {
while {alive _flare} do {
_lightArea setLightAmbient [((random 0.2) + 0.2),0.01,0.01];
//_lightArea setLightColor [((random 0.1) + 0.1),0.005,0.005];
sleep (random 0.1);
uiSleep (random 0.1);
};
deleteVehicle _lightArea;
deleteVehicle _lightSpark;

View File

@@ -35,11 +35,11 @@ if ((count _list) < dayz_maxAnimals) then {
if (((player distance _Pos) < dayz_animalDistance) && {!(surfaceIsWater _Pos)} && {(count _list) <= 1}) then {
if (_type == "DZ_Pastor") then { _agent = createAgent [_type, _Pos, [], 0, "NONE"]; } else { _agent = createAgent [_type, _Pos, [], 0, "FORM"]; };
sleep 0.001;
uiSleep 0.001;
_agent setPos _Pos;
_id = [_pos,_agent] execFSM "\z\addons\dayz_code\system\animal_agent.fsm";
PVDZE_zed_Spawn = [_agent];
publicVariableServer "PVDZE_zed_Spawn";
};
sleep 1;
uiSleep 1;
};

View File

@@ -45,7 +45,7 @@ if (_anim4 == "aswm") then {
player playActionNow "stop";
};
// This sleep was much needed
sleep 5;
uiSleep 5;
dayz_isSwimming = false;
};

View File

@@ -21,7 +21,7 @@ if (_magazine == "Quiver") then {
while {alive _projectile} do {
_endPos = getPosATL _projectile;
_vUp = vectorUp _projectile;
sleep 0.01;
uiSleep 0.01;
};
_distance = _unit distance _endPos;
@@ -41,7 +41,7 @@ if (_height < 100) then {
if (count _hitArray > 0) then {_doLoop = false};
if (_countr > 50) then {_doLoop = false};
_countr = _countr + 1;
sleep 0.1;
uiSleep 0.1;
};
if (count _hitArray > 0) then {

View File

@@ -29,7 +29,7 @@ publicVariableServer "PVDZE_plr_Died";
_id = [player,20,true,getPosATL player] call player_alertZombies;
sleep 0.5;
uiSleep 0.5;
player setDamage 1;
0.1 fadeSound 0;
@@ -85,7 +85,7 @@ r_player_dead = true;
//Player is Dead!
3 fadeSound 0;
sleep 1;
uiSleep 1;
dayz_originalPlayer enableSimulation true;
@@ -103,7 +103,7 @@ selectPlayer dayz_originalPlayer;
_body setVariable["combattimeout", 0, true];
//["dayzFlies",player] call broadcastRpcCallAll;
sleep 2;
uiSleep 2;
1 cutRsc ["DeathScreen","BLACK OUT",3];
@@ -112,11 +112,11 @@ playMusic "dayz_track_death_1";
"dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;
"colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 1], [1, 1, 1, 1]];"colorCorrections" ppEffectCommit 5;
sleep 2;
uiSleep 2;
for "_x" from 5 to 1 step -1 do {
titleText [format[localize "str_return_lobby", _x], "PLAIN DOWN", 1];
sleep 1;
uiSleep 1;
};
PVDZE_Server_Simulation = [_body, false];

View File

@@ -15,7 +15,7 @@ if (_object == player) then {
};
player setVariable ["freeTarget",true,true];
//_timeStart = time;
sleep _wait;
uiSleep _wait;
player setVariable ["freeTarget",false,true];
} else {

View File

@@ -99,7 +99,7 @@ player addWeapon "Flare";
call dayz_meleeMagazineCheck;
};
sleep 0.1;
uiSleep 0.1;
if (!isNull _old) then {
// this should not be needed as player is deleted in player_switchModel?

View File

@@ -21,9 +21,9 @@ _text = getText (configFile >> "CfgVehicles" >> _objType >> "displayName");
if(isNull _obj) exitWith { DZE_ActionInProgress = false; };
[1,1] call dayz_HungerThirst;
player playActionNow "Medic";
sleep 1;
uiSleep 1;
[player,"tentpack",0,false] call dayz_zombieSpeak;
sleep 5;
uiSleep 5;
_playerNear = _obj call dze_isnearest_player;
if(_playerNear) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_11") , "PLAIN DOWN"]; };

View File

@@ -7,5 +7,5 @@ while {!r_player_dead} do {
if (!r_player_unconscious && !r_pitchWhine) then {
playMusic _sound;
};
sleep _pause;
uiSleep _pause;
};

View File

@@ -55,7 +55,7 @@ while {!isNull _display} do {
_sleep = 1;
};
};
sleep _sleep;
uiSleep _sleep;
_timeOut = diag_tickTime;
};
cutText ["", "PLAIN DOWN"];

View File

@@ -37,7 +37,7 @@ _sfx = "tentpack";
[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
sleep 3;
uiSleep 3;
_classname = getText (configFile >> "CfgVehicles" >> (typeOf _obj) >> "create");

View File

@@ -38,9 +38,9 @@ if (_alreadyPacking == 1) exitWith {DZE_ActionInProgress = false; s_player_packv
_obj setVariable["packing",1];
cutText [format[(localize "str_epoch_player_121"),_text], "PLAIN DOWN"];
sleep 1;
uiSleep 1;
_location1 = getPosATL player;
sleep 5;
uiSleep 5;
_location2 = getPosATL player;
if(_location1 distance _location2 > 0.1) exitWith {
@@ -59,7 +59,7 @@ if(!isNull _obj && alive _obj) then {
[1,1] call dayz_HungerThirst;
player playActionNow "Medic";
[player,"tentpack",0,false] call dayz_zombieSpeak;
sleep 3;
uiSleep 3;
_weapons = getWeaponCargo _obj;
_magazines = getMagazineCargo _obj;

View File

@@ -17,7 +17,7 @@ while {(alive _projectile) && !(isNull _projectile) && _callCount < 85;} do {
_projectilespeed = Speed _projectile;
_projectflight = (((_projectilespeed / 60) * 1000));
if (_projectflight > 0) then {
sleep (12 / (_projectflight));
uiSleep (12 / (_projectflight));
};
if (alive _projectile && !(isNull _projectile)) then {_currentNear = ([_projectile] call FNC_GetPos) nearEntities [["CAManBase","AllVehicles"],15];};
_listNear = _listNear + _currentNear;

View File

@@ -129,9 +129,9 @@ if (!isNil "_newBackpackType") then {
_backpackWpnQtys = _backpackWpn select 1;
};
[] call _switchUnit;
if (gear_done) then {sleep 0.001;};
if (gear_done) then {uiSleep 0.001;};
["1"] call gearDialog_create;
if (gear_done) then {sleep 0.001;};
if (gear_done) then {uiSleep 0.001;};
//magazines
_countr = 0;
{
@@ -152,7 +152,7 @@ if (!isNil "_newBackpackType") then {
};
} count _backpackMag;
(findDisplay 106) closeDisplay 0;
if (gear_done) then {sleep 0.001; disableUserInput false;};
if (gear_done) then {uiSleep 0.001; disableUserInput false;};
_countr = 0;
{
(unitBackpack player) addWeaponCargoGlobal [_x,(_backpackWpnQtys select _countr)];

View File

@@ -14,7 +14,7 @@ while {_doWait} do {
if (!(alive _projectile)) then {_doWait = false};
if (_vel < 0.1) then {_doWait = false};
_endPos = getPosATL _projectile;
sleep 0.01;
uiSleep 0.01;
};
_distance = parseNumber format["%1",(getArray (configFile >> "CfgAmmo" >> _ammo >> "soundHit") select 3)];

View File

@@ -183,7 +183,7 @@ TraderDialogShowPrices = {
private ["_index", "_item"];
_index = _this select 0;
if (_index < 0) exitWith {};
while {count TraderItemList < 1} do { sleep 1; };
while {count TraderItemList < 1} do { uiSleep 1; };
_item = TraderItemList select _index;
_qty = {_x == (_item select 3)} count magazines player;

View File

@@ -171,7 +171,7 @@ TraderDialogShowPrices = {
private ["_index", "_item"];
_index = _this select 0;
if (_index < 0) exitWith {};
while {count TraderItemList < 1} do { sleep 1; };
while {count TraderItemList < 1} do { uiSleep 1; };
_item = TraderItemList select _index;
_qty = {_x == (_item select 3)} count magazines player;

View File

@@ -67,9 +67,9 @@ if ((_ownerID == dayz_combination) || (_ownerID == dayz_playerUID)) then {
_magazines = _obj getVariable["MagazineCargo",[]];
_backpacks = _obj getVariable["BackpackCargo",[]];
player playActionNow "Medic";
sleep 1;
uiSleep 1;
[player,"tentpack",0,false] call dayz_zombieSpeak;
sleep 5;
uiSleep 5;
_holder = createVehicle [_unlockedClass,_pos,[], 0, "CAN_COLLIDE"];
// Remove locked vault
@@ -128,10 +128,10 @@ if ((_ownerID == dayz_combination) || (_ownerID == dayz_playerUID)) then {
} else {
[10,10] call dayz_HungerThirst;
player playActionNow "Medic";
sleep 1;
uiSleep 1;
[player,"repair",0,false] call dayz_zombieSpeak;
[player,25,true,(getPosATL player)] spawn player_alertZombies;
sleep 5;
uiSleep 5;
cutText [format[(localize "str_epoch_player_126"),_text], "PLAIN DOWN"];
};
s_player_unlockvault = -1;

View File

@@ -41,7 +41,7 @@ if (local _unit) then {
};
//Wait
sleep 0.3;
uiSleep 0.3;
if (_vehicle != player) then {
_hpList = _vehicle call vehicle_getHitpoints;

View File

@@ -22,7 +22,7 @@ _dog = _this select 3;
player removeMagazine "FoodSteakRaw";
_animalID = _dog getVariable "fsm_handle";
_animalID setFSMVariable ["_isTamed", true];
sleep 1;
uiSleep 1;
// diag_log format["DEBUG: %1, id: %2 [%3]",_dog,_animalID,completedFSM _animalID];
if (!moveToCompleted _dog) then {
_dog moveTo ([_dog] call FNC_GetPos);

View File

@@ -76,7 +76,7 @@ if ((dayz_spawnZombies < _maxControlledZombies) && (dayz_CurrentNearByZombies <
if (surfaceIsWater _position) exitwith { };
_agent = createAgent [_type, _position, [], _radius, _method];
sleep 0.001;
uiSleep 0.001;
//add to global counter
dayz_spawnZombies = dayz_spawnZombies + 1;
@@ -122,15 +122,15 @@ if ((dayz_spawnZombies < _maxControlledZombies) && (dayz_CurrentNearByZombies <
_agtPos = getPosASL _agent;
_agtPos set [2, -3];
_agent setPosASL _agtPos;
sleep 0.001;
uiSleep 0.001;
_agtPos = +(_position);
_agtPos set [2, -3];
_agent setPosASL _agtPos;
sleep 0.001;
uiSleep 0.001;
*/
_agent setDir random 360;
//_agent setPosATL _position;
sleep 0.001;
uiSleep 0.001;
_position = getPosATL _agent;

View File

@@ -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;
@@ -308,7 +308,7 @@ if (isServer) then {
while {true} do {
// Sleep a while until next weather change
sleep floor (_minTimeBetweenWeatherChangesMin * 60 + random ((_maxTimeBetweenWeatherChangesMin - _minTimeBetweenWeatherChangesMin) * 60));
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 @@ if (isServer) then {
};
0 setRain _rain;
sleep 0.1;
uiSleep 0.1;
while {true} do {
if (_rainIntervalRainProbability > 0) then {
@@ -557,7 +557,7 @@ if (isServer) then {
3 setRain _rain;
sleep 3;
uiSleep 3;
};
};

View File

@@ -25,7 +25,7 @@ _s call FNC_PrintToRPT;
R3F_TIRED_Accumulator = 0;
R3F_TIRED_vitesse_de_mon_joueur = 0;
sleep 1;
uiSleep 1;
_level = 1;
while {true} do {
@@ -123,7 +123,7 @@ while {true} do {
R3F_TIRED_Counter_Time = 0;
};
sleep 1;
uiSleep 1;
_n = _n + 1;
};

View File

@@ -22,7 +22,7 @@ _initial_text = "";
_n = 0;
while {true} do
{
sleep R3F_WEIGHT_SHORT_DELAY;
uiSleep R3F_WEIGHT_SHORT_DELAY;
#ifdef R3F_WEIGHT_SHOW_WEIGHT
_display = findDisplay ARMA2_RSCDISPLAYGEARBOX;

View File

@@ -312,28 +312,28 @@ if (!isDedicated) then {
};
openMap false;
closeDialog 0;
if (gear_done) then {sleep 0.001;};
if (gear_done) then {uiSleep 0.001;};
player action ["Gear", player];
if (gear_done) then {sleep 0.001;};
if (gear_done) then {uiSleep 0.001;};
_dialog = findDisplay 106;
_i = 0;
while {isNull _dialog} do {//DO NOT CHANGE TO A FOR LOOP!
_i = _i + 1;
_dialog = findDisplay 106;
if (gear_done) then {sleep 0.001;};
if (gear_done) then {uiSleep 0.001;};
if (_i in [100,200,299]) then {
closeDialog 0;
player action ["Gear", player];
};
if (_i > 300) exitWith {};
};
if (gear_done) then {sleep 0.001;};
if (gear_done) then {uiSleep 0.001;};
_dialog = findDisplay 106;
if ((parseNumber(_this select 0)) != 0) then {
ctrlActivate (_dialog displayCtrl 157);
if (gear_done) then {
waitUntil {ctrlShown (_dialog displayCtrl 159)};
sleep 0.001;
uiSleep 0.001;
};
};
_dialog
@@ -475,12 +475,12 @@ if (!isDedicated) then {
if (_timeOut >= 12000) then {
1 cutText [localize "str_player_login_timeout", "PLAIN DOWN"];
sleep 10;
uiSleep 10;
endLoadingScreen;
endMission "END1";
};
sleep 0.01;
uiSleep 0.01;
};
};

View File

@@ -50,7 +50,7 @@ actionMonitor = {
_timeout = 0;
_run = false;
};
sleep _timeout;
uiSleep _timeout;
};
};

View File

@@ -36,11 +36,11 @@ while {r_doLoop} do {
r_doLoop = false;
};
if (vehicle player != player) then {
sleep 3;
uiSleep 3;
r_doLoop = false;
_finished = true;
};
sleep 0.1;
uiSleep 0.1;
};
r_doLoop = false;

Some files were not shown because too many files have changed in this diff Show More