mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-12 03:02:56 +03:00
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:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -50,7 +50,7 @@ _cookedmeat = meatcooked;
|
||||
if (r_interrupt) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -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"];
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
@@ -22,7 +22,7 @@ _warn = {
|
||||
[_dog,"dog_growl",2,false] call dayz_zombieSpeak;
|
||||
};
|
||||
};
|
||||
sleep 2;
|
||||
uiSleep 2;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -36,7 +36,7 @@ while {r_doLoop} do {
|
||||
if (r_interrupt) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -146,7 +146,7 @@ while {_isOk} do {
|
||||
};
|
||||
};
|
||||
|
||||
sleep 0.5;
|
||||
uiSleep 0.5;
|
||||
|
||||
_location2 = [player] call FNC_GetPos;
|
||||
_objectHelperPos = [_objectHelper] call FNC_GetPos;
|
||||
|
||||
@@ -100,7 +100,7 @@ if(!_cancel) then {
|
||||
if (DZE_cancelBuilding) exitWith {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ while {r_doLoop} do {
|
||||
if (r_interrupt) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -77,7 +77,7 @@ if (count(_findNearestTree) >= 1) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -21,6 +21,6 @@ if (!isNull cursorTarget) then {
|
||||
[player,"hit",0,false] call dayz_zombieSpeak;
|
||||
|
||||
};
|
||||
sleep 1;
|
||||
uiSleep 1;
|
||||
player switchmove "";
|
||||
};
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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]];
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -119,7 +119,7 @@ while {_isOk} do {
|
||||
r_doLoop = false;
|
||||
};
|
||||
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ if (_section && _hasToolbox) then {
|
||||
if (r_interrupt) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ if (_hasToolbox) then {
|
||||
if (r_interrupt) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ while {r_doLoop} do {
|
||||
if (r_interrupt) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -61,7 +61,7 @@ if(_IsNearVehicle >= 1) then {
|
||||
if (r_interrupt) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ if(_inTow) then {
|
||||
if (r_interrupt) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ while {r_doLoop} do {
|
||||
if (r_interrupt) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ while {r_doLoop} do {
|
||||
if (r_interrupt) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ while {r_doLoop} do {
|
||||
if (r_interrupt) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ while {r_doLoop} do {
|
||||
if (r_interrupt) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ while {r_doLoop} do {
|
||||
if (r_interrupt) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {};
|
||||
};
|
||||
|
||||
@@ -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 {};
|
||||
};
|
||||
|
||||
@@ -98,7 +98,7 @@ while {r_doLoop} do {
|
||||
if (r_interrupt) then {
|
||||
r_doLoop = false;
|
||||
};
|
||||
sleep 0.1;
|
||||
uiSleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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"];
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user