mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user