From 68da397c522ff201238cc3558b36cc4a8c560213 Mon Sep 17 00:00:00 2001 From: icomrade Date: Sat, 5 Mar 2016 22:34:09 -0500 Subject: [PATCH] Finish Medical and Sleep to UiSleep --- SQF/dayz_code/actions/boil.sqf | 2 +- SQF/dayz_code/actions/detonate_bomb.sqf | 2 +- SQF/dayz_code/actions/fire_pack.sqf | 2 +- SQF/dayz_code/actions/object_build.sqf | 2 +- SQF/dayz_code/actions/object_disassembly.sqf | 2 +- SQF/dayz_code/actions/object_dismantle.sqf | 4 +- SQF/dayz_code/actions/object_maintenance.sqf | 2 +- SQF/dayz_code/actions/object_pickup.sqf | 2 +- .../actions/object_upgradeFireplace.sqf | 4 +- .../actions/object_upgradeStorage.sqf | 4 +- .../actions/player_Constructionitem.sqf | 2 +- SQF/dayz_code/actions/player_attach_bomb.sqf | 2 +- SQF/dayz_code/actions/player_breakin.sqf | 12 +- .../actions/player_build_vanilla.sqf | 2 +- SQF/dayz_code/actions/player_chopWood.sqf | 4 +- SQF/dayz_code/actions/player_combineMags.sqf | 2 +- SQF/dayz_code/actions/player_consume.sqf | 2 +- .../actions/player_craftItem_vanilla.sqf | 12 +- SQF/dayz_code/actions/player_craftitemGUI.sqf | 8 +- SQF/dayz_code/actions/player_createstash.sqf | 4 +- SQF/dayz_code/actions/player_fixBottle.sqf | 2 +- SQF/dayz_code/actions/player_fixTools.sqf | 2 +- .../actions/player_goFishing_vanilla.sqf | 4 +- SQF/dayz_code/actions/player_makefire.sqf | 4 +- SQF/dayz_code/actions/player_mineStone.sqf | 4 +- .../actions/player_recombineMagazine.sqf | 2 +- SQF/dayz_code/actions/player_setTrap.sqf | 2 +- SQF/dayz_code/actions/player_sleep.sqf | 2 +- SQF/dayz_code/actions/player_tearClothes.sqf | 4 +- SQF/dayz_code/actions/player_useAttchment.sqf | 2 +- SQF/dayz_code/actions/salvage.sqf | 2 +- SQF/dayz_code/actions/siphonFuel.sqf | 6 +- SQF/dayz_code/compile/client_plantSpawner.sqf | 2 +- SQF/dayz_code/compile/fn_damageActions.sqf | 2 +- SQF/dayz_code/compile/fn_damageHandler.sqf | 4 +- SQF/dayz_code/compile/fn_niceSpot.sqf | 6 +- SQF/dayz_code/compile/fn_unconscious.sqf | 6 +- SQF/dayz_code/compile/player_fired.sqf | 4 +- .../compile/player_humanityChange.sqf | 2 +- SQF/dayz_code/compile/player_zombieAttack.sqf | 4 +- .../compile/player_zombieSwarmAttack.sqf | 2 +- SQF/dayz_code/compile/stream_locationDel.sqf | 4 +- SQF/dayz_code/compile/stream_locationFill.sqf | 6 +- SQF/dayz_code/compile/veh_handleDam.sqf | 2 +- SQF/dayz_code/compile/zombie_generate.sqf | 6 +- SQF/dayz_code/init/compiles.sqf | 2 +- SQF/dayz_code/init/publicEH.sqf | 7 +- SQF/dayz_code/medical/antibiotics.sqf | 57 +- SQF/dayz_code/medical/bandage.sqf | 59 +- SQF/dayz_code/medical/blood_test.sqf | 14 +- SQF/dayz_code/medical/brokeBones.sqf | 4 +- SQF/dayz_code/medical/carry.sqf | 47 +- SQF/dayz_code/medical/carry_old.sqf | 99 ++-- SQF/dayz_code/medical/drag.sqf | 74 ++- SQF/dayz_code/medical/drop_body.sqf | 16 +- SQF/dayz_code/medical/epinephrine.sqf | 2 +- SQF/dayz_code/medical/fillBloodBag.sqf | 52 +- SQF/dayz_code/medical/init_medical.sqf | 71 +-- SQF/dayz_code/medical/load/load_act.sqf | 28 +- SQF/dayz_code/medical/load/load_wounded.sqf | 37 +- SQF/dayz_code/medical/load/unLoad_act.sqf | 27 +- SQF/dayz_code/medical/load_wounded.sqf | 12 +- SQF/dayz_code/medical/morphine.sqf | 50 +- SQF/dayz_code/medical/painkiller.sqf | 54 +- .../medical/publicEH/medBandaged.sqf | 10 +- .../medical/publicEH/medBreakLegs.sqf | 61 -- SQF/dayz_code/medical/publicEH/medEpi.sqf | 26 +- .../medical/publicEH/medMorphine.sqf | 18 +- .../medical/publicEH/medPainkiller.sqf | 6 +- SQF/dayz_code/medical/pulse.sqf | 14 +- SQF/dayz_code/medical/self_transfusion.sqf | 2 +- SQF/dayz_code/medical/selfbloodbag.sqf | 16 +- SQF/dayz_code/medical/setup_functions_med.sqf | 529 +++++++++++------ SQF/dayz_code/medical/transfusion.sqf | 230 ++++++-- SQF/dayz_code/medical/wipes.sqf | 4 +- .../system/BIS_Effects/airdestruction.sqf | 2 +- .../system/DynamicWeatherEffects.sqf | 16 +- .../chernarus/infectiousWaterholes/init.sqf | 4 +- .../system/mission/chernarus/poi/Twains.sqf | 538 +++++++++--------- SQF/dayz_code/system/player_monitor.fsm | 2 +- SQF/dayz_code/system/player_spawn_2.sqf | 2 +- SQF/dayz_code/system/progress_monitor.sqf | 4 +- .../system/scheduler/sched_medical.sqf | 2 +- .../system/scheduler/sched_planthint.sqf | 4 +- SQF/dayz_code/traps/functions/setup.sqf | 2 +- SQF/dayz_code/util/Util.hpp | 2 +- .../eventHandlers/server_sendToClient.sqf | 8 +- 87 files changed, 1320 insertions(+), 1056 deletions(-) delete mode 100644 SQF/dayz_code/medical/publicEH/medBreakLegs.sqf diff --git a/SQF/dayz_code/actions/boil.sqf b/SQF/dayz_code/actions/boil.sqf index 3a5f71a74..0af93ee8d 100644 --- a/SQF/dayz_code/actions/boil.sqf +++ b/SQF/dayz_code/actions/boil.sqf @@ -38,7 +38,7 @@ if (_hasbottleitem and _hastinitem) then { _qty = _qty + ({_x == "ItemWaterBottleSafe"} count magazines player); player playActionNow "Medic"; - sleep 1; + uiSleep 1; _dis=10; _sfx = "cook"; [player,_sfx,0,false,_dis] call dayz_zombieSpeak; diff --git a/SQF/dayz_code/actions/detonate_bomb.sqf b/SQF/dayz_code/actions/detonate_bomb.sqf index 3287202ef..d39aad2d5 100644 --- a/SQF/dayz_code/actions/detonate_bomb.sqf +++ b/SQF/dayz_code/actions/detonate_bomb.sqf @@ -8,7 +8,7 @@ _vehicle setVariable ["hasBomb",true,true]; _vehicle addEventHandler ["GetIn",{ //diag_log str(_this); - sleep 2; + uiSleep 2; _bombCar = _this select 0; _bomb = createVehicle ["Bo_GBU12_lgb",getPosATL _bombCar, [], 0, "NONE"]; }]; \ No newline at end of file diff --git a/SQF/dayz_code/actions/fire_pack.sqf b/SQF/dayz_code/actions/fire_pack.sqf index fb6a5e0fd..8f452e94c 100644 --- a/SQF/dayz_code/actions/fire_pack.sqf +++ b/SQF/dayz_code/actions/fire_pack.sqf @@ -1,7 +1,7 @@ private["_obj"]; _obj = _this select 3; player playActionNow "Medic"; -sleep 6; +uiSleep 6; if(_obj isKindOf "Land_fire") then { dayz_hasFire = objNull; deleteVehicle _obj; diff --git a/SQF/dayz_code/actions/object_build.sqf b/SQF/dayz_code/actions/object_build.sqf index 6b7da41f8..48baa0e9f 100644 --- a/SQF/dayz_code/actions/object_build.sqf +++ b/SQF/dayz_code/actions/object_build.sqf @@ -35,7 +35,7 @@ if (_build) then { [player,_dis,true,(getPosATL player)] call player_alertZombies; ["Working",0,[20,40,15,0]] call dayz_NutritionSystem; // Added Nutrition-Factor for work player playActionNow "Medic"; - sleep 5; + uiSleep 5; _object setPosATL _location; player reveal _object; diff --git a/SQF/dayz_code/actions/object_disassembly.sqf b/SQF/dayz_code/actions/object_disassembly.sqf index dd8e82d57..458865aea 100644 --- a/SQF/dayz_code/actions/object_disassembly.sqf +++ b/SQF/dayz_code/actions/object_disassembly.sqf @@ -120,7 +120,7 @@ for "_i" from 1 to 20 do { _cursorTarget setPosATL _pos; }; - sleep 1.5; + uiSleep 1.5; if (r_interrupt) exitwith { diag_log [diag_ticktime, __FILE__, "Operation interrupted, last building deleted is:", _upgrade]; diff --git a/SQF/dayz_code/actions/object_dismantle.sqf b/SQF/dayz_code/actions/object_dismantle.sqf index 561ed4c1a..b92a81b15 100644 --- a/SQF/dayz_code/actions/object_dismantle.sqf +++ b/SQF/dayz_code/actions/object_dismantle.sqf @@ -104,7 +104,7 @@ while {_isOk} do { r_doLoop = false; _finished = false; }; - sleep 0.1; + uiSleep 0.1; }; r_doLoop = false; @@ -144,7 +144,7 @@ while {_isOk} do { }; titleText [format["Dismantle attempt (%1 of %2).", _counter,_limit], "PLAIN DOWN"]; - sleep 0.10; + uiSleep 0.10; }; //Completed and successful diff --git a/SQF/dayz_code/actions/object_maintenance.sqf b/SQF/dayz_code/actions/object_maintenance.sqf index f35ba7f1f..761510628 100644 --- a/SQF/dayz_code/actions/object_maintenance.sqf +++ b/SQF/dayz_code/actions/object_maintenance.sqf @@ -91,7 +91,7 @@ if (_startMaintenance) then { r_doLoop = false; _finished = true; }; - sleep 0.1; + uiSleep 0.1; }; r_doLoop = false; diff --git a/SQF/dayz_code/actions/object_pickup.sqf b/SQF/dayz_code/actions/object_pickup.sqf index f88f44db4..79da7c8bf 100644 --- a/SQF/dayz_code/actions/object_pickup.sqf +++ b/SQF/dayz_code/actions/object_pickup.sqf @@ -48,7 +48,7 @@ if(_classname == "WoodenArrow") then { if (_broken) exitWith {DZE_CanPickup = true; deleteVehicle _holder; cutText [localize "str_broken_arrow", "PLAIN DOWN"]; }; -sleep 0.25; //Why are we waiting? Animation +uiSleep 0.25; //Why are we waiting? Animation _claimedBy = _holder getVariable["claimed","0"]; diff --git a/SQF/dayz_code/actions/object_upgradeFireplace.sqf b/SQF/dayz_code/actions/object_upgradeFireplace.sqf index 9bc6ba726..19120b810 100644 --- a/SQF/dayz_code/actions/object_upgradeFireplace.sqf +++ b/SQF/dayz_code/actions/object_upgradeFireplace.sqf @@ -151,7 +151,7 @@ if ((_startUpgrade) AND (isClass(_upgradeConfig))) then { _cursorTarget setVariable["alreadyupgrading",1]; - sleep 0.03; + uiSleep 0.03; //Get location and direction of old item _dir = round getDir _cursorTarget; @@ -201,7 +201,7 @@ if ((_startUpgrade) AND (isClass(_upgradeConfig))) then { _countr = _countr + 1; } count _objWpnTypes; - sleep 3; + uiSleep 3; //Light fire [_object,true] call dayz_inflame; diff --git a/SQF/dayz_code/actions/object_upgradeStorage.sqf b/SQF/dayz_code/actions/object_upgradeStorage.sqf index b13af9ef0..28491d89a 100644 --- a/SQF/dayz_code/actions/object_upgradeStorage.sqf +++ b/SQF/dayz_code/actions/object_upgradeStorage.sqf @@ -145,7 +145,7 @@ if ((_startUpgrade) AND (isClass(_upgradeConfig))) then { _cursorTarget setVariable["alreadyupgrading",1]; - sleep 0.03; + uiSleep 0.03; //Get location and direction of old item _dir = round getDir _cursorTarget; @@ -225,7 +225,7 @@ if ((_startUpgrade) AND (isClass(_upgradeConfig))) then { _countr = _countr + 1; } count _objWpnTypes; - sleep 3; + uiSleep 3; //publish new tent PVDZE_obj_Publish = [dayz_characterID,_object,[_dir, _pos],[_weapons,_magazines,_backpacks]]; diff --git a/SQF/dayz_code/actions/player_Constructionitem.sqf b/SQF/dayz_code/actions/player_Constructionitem.sqf index 4984d963f..97761fff9 100644 --- a/SQF/dayz_code/actions/player_Constructionitem.sqf +++ b/SQF/dayz_code/actions/player_Constructionitem.sqf @@ -66,7 +66,7 @@ if (_hasInput) then { } forEach _input; _availabeSpace = true; - //sleep 1; + //uiSleep 1; if (_availabeSpace) then { player playActionNow "PutDown"; diff --git a/SQF/dayz_code/actions/player_attach_bomb.sqf b/SQF/dayz_code/actions/player_attach_bomb.sqf index 2840963a7..22513c131 100644 --- a/SQF/dayz_code/actions/player_attach_bomb.sqf +++ b/SQF/dayz_code/actions/player_attach_bomb.sqf @@ -21,7 +21,7 @@ player removeMagazine "ItemCarBomb"; //wait a bit player playActionNow "Medic"; -sleep 1; +uiSleep 1; //DO Animation _dis=20; diff --git a/SQF/dayz_code/actions/player_breakin.sqf b/SQF/dayz_code/actions/player_breakin.sqf index 10574bc8f..cdb36ae18 100644 --- a/SQF/dayz_code/actions/player_breakin.sqf +++ b/SQF/dayz_code/actions/player_breakin.sqf @@ -10,12 +10,12 @@ _hasCrowbar = "ItemCrowbar" in items player; if (!_hasSledgeHammer) exitWith { titleText ["You need a SledgeHammer to break into this compound" , "PLAIN DOWN"]; - sleep 1; + uiSleep 1; }; if (!_hasCrowbar) exitWith { titleText ["You need a crowbar to break into this compound." , "PLAIN DOWN"]; - sleep 1; + uiSleep 1; }; _isOk = true; @@ -31,13 +31,13 @@ while {_isOk} do { if (!_hasSledgeHammer) exitWith { _proceed = nil; titleText ["You need a sledge hammer to break into a gate." , "PLAIN DOWN"]; - sleep 1; + uiSleep 1; }; if (!_hasCrowbar) exitWith { _proceed = nil; titleText ["You need a crowbar to break into a gate." , "PLAIN DOWN"]; - sleep 1; + uiSleep 1; }; //Run animation @@ -71,7 +71,7 @@ while {_isOk} do { r_doLoop = false; _finished = false; }; - sleep 0.1; + uiSleep 0.1; }; r_doLoop = false; @@ -121,7 +121,7 @@ while {_isOk} do { }; titleText [format["Breaking into compound, attempt (%1 of %2).", _counter,_limit], "PLAIN DOWN"]; - sleep 0.03; + uiSleep 0.03; }; //Tool issues if (isnil "_proceed") exitwith {}; diff --git a/SQF/dayz_code/actions/player_build_vanilla.sqf b/SQF/dayz_code/actions/player_build_vanilla.sqf index c07f18364..50d4051dd 100644 --- a/SQF/dayz_code/actions/player_build_vanilla.sqf +++ b/SQF/dayz_code/actions/player_build_vanilla.sqf @@ -387,7 +387,7 @@ while {r_action_count != 0 and Dayz_constructionContext select 4} do { }; }; }; - sleep 0.03; + uiSleep 0.03; }; if (!_actionBuildHidden) then { // player can't build until all is fine diff --git a/SQF/dayz_code/actions/player_chopWood.sqf b/SQF/dayz_code/actions/player_chopWood.sqf index 9005d9af8..bcce46478 100644 --- a/SQF/dayz_code/actions/player_chopWood.sqf +++ b/SQF/dayz_code/actions/player_chopWood.sqf @@ -92,7 +92,7 @@ if (_woodCutting) then { r_doLoop = false; }; - sleep 0.1; + uiSleep 0.1; }; if(!_finished) exitWith { @@ -134,7 +134,7 @@ if (_woodCutting) then { }; _isOk = false; _proceed = true; - sleep 1; + uisleep 1; }; cutText [format [localize "str_player_24_progress", _counter,_countOut], "PLAIN DOWN"]; }; diff --git a/SQF/dayz_code/actions/player_combineMags.sqf b/SQF/dayz_code/actions/player_combineMags.sqf index 0622d1380..41aa41d72 100644 --- a/SQF/dayz_code/actions/player_combineMags.sqf +++ b/SQF/dayz_code/actions/player_combineMags.sqf @@ -82,5 +82,5 @@ switch true do { }; }; -sleep 1; +uiSleep 1; r_action_count = 0; \ No newline at end of file diff --git a/SQF/dayz_code/actions/player_consume.sqf b/SQF/dayz_code/actions/player_consume.sqf index 4842c0a63..fafb75d42 100644 --- a/SQF/dayz_code/actions/player_consume.sqf +++ b/SQF/dayz_code/actions/player_consume.sqf @@ -131,7 +131,7 @@ if (_output != "") then if (vehicle player == player) then { //wait a while before dropping the output item - sleep 3; + uiSleep 3; //Drop Item to ground _output call fn_dropItem; }; diff --git a/SQF/dayz_code/actions/player_craftItem_vanilla.sqf b/SQF/dayz_code/actions/player_craftItem_vanilla.sqf index 0b6c70e16..0e9313dc7 100644 --- a/SQF/dayz_code/actions/player_craftItem_vanilla.sqf +++ b/SQF/dayz_code/actions/player_craftItem_vanilla.sqf @@ -118,14 +118,14 @@ if(!r_drag_sqf and !r_player_unconscious and !_onLadder) then { }; }; } forEach _output; - //sleep 1; + //uiSleep 1; if (_availabeSpace) then { //player playActionNow "PutDown"; call gear_ui_init; closeDialog 1; player playActionNow "Medic"; - sleep 2; + uiSleep 2; //setup alert and speak _dis=20; _sfx = "chopwood"; @@ -147,10 +147,10 @@ if(!r_drag_sqf and !r_player_unconscious and !_onLadder) then { player removeMagazine _item; }; }; - //sleep 0.1; + //uiSleep 0.1; }; } forEach _input; - sleep 3; + uiSleep 3; { _item = _x select 0; _selection = _x select 1; @@ -173,10 +173,10 @@ if(!r_drag_sqf and !r_player_unconscious and !_onLadder) then { }; }; cutText [format [localize "str_crafting_success",_itemName], "PLAIN DOWN"]; - //sleep 2; + //uiSleep 2; } else { cutText [format [localize "str_crafting_failed",_itemName], "PLAIN DOWN"]; - //sleep 2; + //uiSleep 2; }; }; } forEach _output; diff --git a/SQF/dayz_code/actions/player_craftitemGUI.sqf b/SQF/dayz_code/actions/player_craftitemGUI.sqf index 9832c6b21..3268db33c 100644 --- a/SQF/dayz_code/actions/player_craftitemGUI.sqf +++ b/SQF/dayz_code/actions/player_craftitemGUI.sqf @@ -109,7 +109,7 @@ if (count _nearByPile > 0) then { }; }; } forEach _output; - //sleep 1; + //uiSleep 1; if (_availabeSpace) then { player playActionNow "PutDown"; @@ -128,7 +128,7 @@ if (count _nearByPile > 0) then { player removeMagazine _item; }; }; - //sleep 0.1; + //uiSleep 0.1; }; } forEach _input; @@ -154,10 +154,10 @@ if (count _nearByPile > 0) then { }; }; cutText [format [localize "str_crafting_success",_itemName], "PLAIN DOWN"]; - //sleep 2; + //uiSleep 2; } else { cutText [format [localize "str_crafting_failed",_itemName], "PLAIN DOWN"]; - //sleep 2; + //uiSleep 2; }; }; } forEach _output; diff --git a/SQF/dayz_code/actions/player_createstash.sqf b/SQF/dayz_code/actions/player_createstash.sqf index 181e889e1..cc76cef98 100644 --- a/SQF/dayz_code/actions/player_createstash.sqf +++ b/SQF/dayz_code/actions/player_createstash.sqf @@ -46,14 +46,14 @@ if ((count _worldspace) == 2) then { //wait a bit player playActionNow "Medic"; - sleep 1; + uiSleep 1; _dis=20; _sfx = "tentunpack"; [player,_sfx,0,false,_dis] call dayz_zombieSpeak; [player,_dis,true,(getPosATL player)] call player_alertZombies; - sleep 5; + uiSleep 5; //place tent (local) _stash = createVehicle [_stashtype, _location, [], 0, "CAN_COLLIDE"]; _stash setdir _dir; diff --git a/SQF/dayz_code/actions/player_fixBottle.sqf b/SQF/dayz_code/actions/player_fixBottle.sqf index ae083b4f5..435aa019d 100644 --- a/SQF/dayz_code/actions/player_fixBottle.sqf +++ b/SQF/dayz_code/actions/player_fixBottle.sqf @@ -11,7 +11,7 @@ if (_tape in magazines player) then { //Fix the bottle player playActionNow "Medic"; [player,"bandage",0,false] call dayz_zombieSpeak; - sleep 6; + uiSleep 6; player removeMagazine _bottle; player removeMagazine _tape; player addMagazine _fixedBottle; diff --git a/SQF/dayz_code/actions/player_fixTools.sqf b/SQF/dayz_code/actions/player_fixTools.sqf index bdd2389f9..e0b1ea129 100644 --- a/SQF/dayz_code/actions/player_fixTools.sqf +++ b/SQF/dayz_code/actions/player_fixTools.sqf @@ -20,7 +20,7 @@ if ((_tape in magazines player) && (_handle in magazines player)) then { //Fix the tool player playActionNow "Medic"; [player,"bandage",0,false] call dayz_zombieSpeak; - sleep 6; + uiSleep 6; player removeWeapon _tool; player removeMagazine _tape; player removeMagazine _handle; diff --git a/SQF/dayz_code/actions/player_goFishing_vanilla.sqf b/SQF/dayz_code/actions/player_goFishing_vanilla.sqf index d3cab952f..edeb430fa 100644 --- a/SQF/dayz_code/actions/player_goFishing_vanilla.sqf +++ b/SQF/dayz_code/actions/player_goFishing_vanilla.sqf @@ -89,7 +89,7 @@ while {_isOk} do { //make sure the player isnt swimming // wait for animation - sleep 2; + uiSleep 2; // check if player is in boat _vehicle = vehicle player; @@ -151,7 +151,7 @@ while {_isOk} do { if(_counter == 12) then { _isOk = false; - sleep 1; + uisleep 1; cutText [localize "str_fishing_failed", "PLAIN DOWN"]; }; }; diff --git a/SQF/dayz_code/actions/player_makefire.sqf b/SQF/dayz_code/actions/player_makefire.sqf index 05e31897b..c3236bcc2 100644 --- a/SQF/dayz_code/actions/player_makefire.sqf +++ b/SQF/dayz_code/actions/player_makefire.sqf @@ -35,7 +35,7 @@ if ((count _worldspace) == 2) then { _location = _worldspace select 1; player playActionNow "Medic"; - sleep 1; + uiSleep 1; // fireplace location may not be in front of player (but in 99% time it should) player setDir _dir; player setPosATL (getPosATL player); @@ -46,7 +46,7 @@ if ((count _worldspace) == 2) then { // Added Nutrition-Factor for work ["Working",0,[20,40,15,0]] call dayz_NutritionSystem; - sleep 5; + uiSleep 5; _fire = createVehicle ["Land_Fire_DZ", getMarkerpos "respawn_west", [], 0, "CAN_COLLIDE"]; _fire setDir _dir; diff --git a/SQF/dayz_code/actions/player_mineStone.sqf b/SQF/dayz_code/actions/player_mineStone.sqf index d4b270ada..4f7a34bad 100644 --- a/SQF/dayz_code/actions/player_mineStone.sqf +++ b/SQF/dayz_code/actions/player_mineStone.sqf @@ -78,7 +78,7 @@ if (!isNull _findNearestRock) then { r_doLoop = false; }; - sleep 0.1; + uiSleep 0.1; }; if(!_finished) exitWith { @@ -121,7 +121,7 @@ if (!isNull _findNearestRock) then { }; _isOk = false; _proceed = true; - sleep 1; + uisleep 1; }; cutText [format[localize "str_mining_progress", _counter,(_countOut - _counter)], "PLAIN DOWN"]; }; diff --git a/SQF/dayz_code/actions/player_recombineMagazine.sqf b/SQF/dayz_code/actions/player_recombineMagazine.sqf index 5dc1dc15b..cd51b388e 100644 --- a/SQF/dayz_code/actions/player_recombineMagazine.sqf +++ b/SQF/dayz_code/actions/player_recombineMagazine.sqf @@ -116,5 +116,5 @@ for "_i" from 1 to _qtynew_create_mags_full do { if (_qtynew_create_ammo_rest != 0) then { player addMagazine [_create,_qtynew_create_ammo_rest]; }; -sleep 1; +uiSleep 1; r_action_count = 0; \ No newline at end of file diff --git a/SQF/dayz_code/actions/player_setTrap.sqf b/SQF/dayz_code/actions/player_setTrap.sqf index 3d74a7b8a..a2365ff9d 100644 --- a/SQF/dayz_code/actions/player_setTrap.sqf +++ b/SQF/dayz_code/actions/player_setTrap.sqf @@ -22,7 +22,7 @@ player removeMagazine _item; _location = getPosATL player; player playActionNow "PutDown"; -sleep 1; +uiSleep 1; _object = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"]; _object setDir (getDir player); diff --git a/SQF/dayz_code/actions/player_sleep.sqf b/SQF/dayz_code/actions/player_sleep.sqf index 1e4d2819b..f4547f2a8 100644 --- a/SQF/dayz_code/actions/player_sleep.sqf +++ b/SQF/dayz_code/actions/player_sleep.sqf @@ -90,7 +90,7 @@ while {r_doLoop} do { if (r_interrupt ) then { r_doLoop = false; }; - sleep 0.1; + uiSleep 0.1; }; }; diff --git a/SQF/dayz_code/actions/player_tearClothes.sqf b/SQF/dayz_code/actions/player_tearClothes.sqf index 65da3db1e..b6a15c2fa 100644 --- a/SQF/dayz_code/actions/player_tearClothes.sqf +++ b/SQF/dayz_code/actions/player_tearClothes.sqf @@ -13,7 +13,7 @@ _infoText = ""; //Tear the clothes player playActionNow "Medic"; [player,"bandage",0,false] call dayz_zombieSpeak; -sleep 6; +uiSleep 6; player removeMagazine _skin; switch (_rounded) do { @@ -39,7 +39,7 @@ while {_i < _rounded} do { if (_rnd < 0.5) then { [player,"equip_string"] call BIS_fnc_invAdd; }; - sleep 0.03; + uiSleep 0.03; if (!_result) then { systemchat (localize ("str_tear_clothes_noroom")); diff --git a/SQF/dayz_code/actions/player_useAttchment.sqf b/SQF/dayz_code/actions/player_useAttchment.sqf index 551458c8a..2162ae770 100644 --- a/SQF/dayz_code/actions/player_useAttchment.sqf +++ b/SQF/dayz_code/actions/player_useAttchment.sqf @@ -32,6 +32,6 @@ if (_removeWeapon in (weapons player)) then { }; } else { closedialog 0; - sleep 0.2; + uiSleep 0.2; cutText [format[ localize "str_missingweapon", _text, _removeWeapon] , "PLAIN DOWN"] }; \ No newline at end of file diff --git a/SQF/dayz_code/actions/salvage.sqf b/SQF/dayz_code/actions/salvage.sqf index 382f5e7ff..7c0dad8f7 100644 --- a/SQF/dayz_code/actions/salvage.sqf +++ b/SQF/dayz_code/actions/salvage.sqf @@ -43,7 +43,7 @@ if (_hasToolbox) then { if (_isMedic) then { _started = true; }; if (_started and !_isMedic) then { r_doLoop = false; _finished = true; }; if (r_interrupt) then { r_doLoop = false; }; - sleep 0.1; + uiSleep 0.1; }; r_doLoop = false; diff --git a/SQF/dayz_code/actions/siphonFuel.sqf b/SQF/dayz_code/actions/siphonFuel.sqf index 05aeff566..997c5e087 100644 --- a/SQF/dayz_code/actions/siphonFuel.sqf +++ b/SQF/dayz_code/actions/siphonFuel.sqf @@ -77,7 +77,7 @@ if (_isMan or _isAnimal or _isZombie) exitWith { cutText [localize "str_siphon_n if (r_interrupt) then { r_doLoop = false; }; - sleep 0.1; + uiSleep 0.1; }; r_doLoop = false; @@ -91,7 +91,7 @@ if (_isMan or _isAnimal or _isZombie) exitWith { cutText [localize "str_siphon_n } 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; @@ -133,7 +133,7 @@ if (_isMan or _isAnimal or _isZombie) exitWith { cutText [localize "str_siphon_n call fnc_usec_medic_removeActions; r_action = false; - sleep 1; + uiSleep 1; } else { _abort = true; }; diff --git a/SQF/dayz_code/compile/client_plantSpawner.sqf b/SQF/dayz_code/compile/client_plantSpawner.sqf index 9669d34f8..c8783c936 100644 --- a/SQF/dayz_code/compile/client_plantSpawner.sqf +++ b/SQF/dayz_code/compile/client_plantSpawner.sqf @@ -15,7 +15,7 @@ _c = PVCDZ_plr_plantSpawner select 2; // random generator for plant type 0..2 a _blacklist = PVCDZ_plr_plantSpawner select 3; _plantcount = 0; _maxperspot = ceil (dayz_maxGlobalPlants / 2048 * 5); -[] spawn { sleep 90; dayz_plantSpawner_done = 2; }; // force dayz_plantSpawner_done to unlock player on login page +[] spawn { uiSleep 90; dayz_plantSpawner_done = 2; }; // force dayz_plantSpawner_done to unlock player on login page //diag_log [ diag_tickTime, __FILE__, "Starting plantmax/a/b/c/blacklist/_maxperspot: ", dayz_maxGlobalPlants, _a, _b, _c, _blacklist , _maxperspot]; _insideloop = { diff --git a/SQF/dayz_code/compile/fn_damageActions.sqf b/SQF/dayz_code/compile/fn_damageActions.sqf index 2cde87c1c..0d23043f6 100644 --- a/SQF/dayz_code/compile/fn_damageActions.sqf +++ b/SQF/dayz_code/compile/fn_damageActions.sqf @@ -160,7 +160,7 @@ if (isPlayer cursorTarget) then { _y = _y + 1; _vehicle = (_vehClose select _y); _vehType = getText (configFile >> "CfgVehicles" >> typeOf _unit >> "displayName"); - sleep 0.001; + uiSleep 0.001; }; _action = _unit addAction [format[localize "str_actions_medical_03",_vehType], "\z\addons\dayz_code\medical\load\load_act.sqf",[player,_vehicle,_unit], 0, true, true]; r_player_actions set [count r_player_actions,_action]; diff --git a/SQF/dayz_code/compile/fn_damageHandler.sqf b/SQF/dayz_code/compile/fn_damageHandler.sqf index 71063c332..4e33f49d6 100644 --- a/SQF/dayz_code/compile/fn_damageHandler.sqf +++ b/SQF/dayz_code/compile/fn_damageHandler.sqf @@ -85,9 +85,9 @@ if (_unit == player) then _unit = _this select 0; cutText [localize "str_player_tranquilized", "PLAIN DOWN"]; //systemChat format ["YOU HAVE BEEN TRANQUILISED"]; - //sleep 2; + //uiSleep 2; // 0 fadeSound 0.05; - //sleep 5; + //uiSleep 5; [_unit,0.01] call fnc_usec_damageUnconscious; _unit setVariable ["NORRN_unconscious", true, true]; r_player_timeout = round(random 60); diff --git a/SQF/dayz_code/compile/fn_niceSpot.sqf b/SQF/dayz_code/compile/fn_niceSpot.sqf index b8a887db6..47bdec102 100644 --- a/SQF/dayz_code/compile/fn_niceSpot.sqf +++ b/SQF/dayz_code/compile/fn_niceSpot.sqf @@ -98,7 +98,7 @@ switch _class do { _dir = if (_isPlayer) then {getDir(_pos)} else {0}; _obj = _class createVehicleLocal (getMarkerpos "respawn_west"); -sleep 0.01; +uiSleep 0.01; _size = _obj call _realSize; if (_isPlayer) then { _size = _size + (_pos call _realSize); }; @@ -110,7 +110,7 @@ _new set [2, 0]; // place a temporary object (not colliding or can colliding) if (_noCollision) then { deleteVehicle _obj; - sleep 0.01; + uiSleep 0.01; _obj = _class createVehicleLocal _new; // get non colliding position _new = getPosATL _obj; @@ -131,7 +131,7 @@ if (_testBuilding) then { // let's proceed to the "something or its operator in }; deleteVehicle _obj; -sleep 0.01; +uiSleep 0.01; if (_testPond) then { // let's proceed to the "object in the pond" test (not dirty) _testPond = false; diff --git a/SQF/dayz_code/compile/fn_unconscious.sqf b/SQF/dayz_code/compile/fn_unconscious.sqf index 5dcc872d7..9543896bc 100644 --- a/SQF/dayz_code/compile/fn_unconscious.sqf +++ b/SQF/dayz_code/compile/fn_unconscious.sqf @@ -63,7 +63,7 @@ _sandLevel = ctrlPosition ((uiNamespace getVariable 'DAYZ_GUI_waiting') displayC //diag_log [(diag_tickTime - _start) < _timeout , !r_player_unconscious , alive player ]; // delay so that the character does not stop before falling: -_disableHdlr = [] spawn { sleep 2; disableUserInput true; r_player_unconsciousInputDisabled = true; }; +_disableHdlr = [] spawn { uiSleep 2; disableUserInput true; r_player_unconsciousInputDisabled = true; }; player playAction "CanNotMove"; "dynamicBlur" ppEffectEnable true;"dynamicBlur" ppEffectAdjust [2]; "dynamicBlur" ppEffectCommit 0; @@ -87,12 +87,12 @@ while { (diag_tickTime - _start) < _timeout and r_player_unconscious and alive p } else { player action ["eject", _veh]; player leaveVehicle _veh; - [] spawn { sleep 0.1; player switchmove "amovppnemstpsnonwnondnon"; }; // instant prone + [] spawn { uiSleep 0.1; player switchmove "amovppnemstpsnonwnondnon"; }; // instant prone }; }; if (player == _veh) then { player setVelocity [0,0,0]; }; - sleep 0.1; + uiSleep 0.1; _count = _count + 1; }; diff --git a/SQF/dayz_code/compile/player_fired.sqf b/SQF/dayz_code/compile/player_fired.sqf index 79a64fec1..53f6e3ef5 100644 --- a/SQF/dayz_code/compile/player_fired.sqf +++ b/SQF/dayz_code/compile/player_fired.sqf @@ -42,7 +42,7 @@ if ((_ammo isKindOf "SmokeShell") or (_ammo isKindOf "GrenadeHandTimedWest") or if (_ammo isKindOf "SmokeShell") then { while { ((getPosATL _projectile) select 2) >= 1 } do { _pos = getPosATL _projectile; - sleep 0.01; + uiSleep 0.01; }; _listTalk = _pos nearEntities ["zZombie_Base",50]; @@ -74,7 +74,7 @@ if ((_ammo isKindOf "SmokeShell") or (_ammo isKindOf "GrenadeHandTimedWest") or } else { while { alive _projectile } do { _pos = getPosATL _projectile; - sleep 0.01; + uiSleep 0.01; }; _listTalk = _pos nearEntities ["zZombie_Base",50]; diff --git a/SQF/dayz_code/compile/player_humanityChange.sqf b/SQF/dayz_code/compile/player_humanityChange.sqf index 24c46e3af..62ebed284 100644 --- a/SQF/dayz_code/compile/player_humanityChange.sqf +++ b/SQF/dayz_code/compile/player_humanityChange.sqf @@ -16,7 +16,7 @@ if (_object == player) then { private ["_endtime","_wait"]; _wait = _this select 0; _endTime = diag_tickTime + _wait; - waitUntil { sleep 1; diag_tickTime > _endTime }; + waitUntil { uisleep 1; diag_tickTime > _endTime }; player setVariable ["FTcounter",((player getVariable ["FTcounter",0]) - _wait)]; if ((player getVariable ["FTcounter",0]) <= 0) then { player setVariable ["FTcounter",0]; diff --git a/SQF/dayz_code/compile/player_zombieAttack.sqf b/SQF/dayz_code/compile/player_zombieAttack.sqf index 0642808cb..bb5357c60 100644 --- a/SQF/dayz_code/compile/player_zombieAttack.sqf +++ b/SQF/dayz_code/compile/player_zombieAttack.sqf @@ -253,7 +253,7 @@ if (_isVehicle) then { while { _i < 5 } do { player setDir ((getDir player) + _step); _i = _i + 1; - sleep 0.01; + uiSleep 0.01; }; }; @@ -273,7 +273,7 @@ if (_isVehicle) then { while { _i < 5 } do { player setDir ((getDir player) - _step); _i = _i + 1; - sleep 0.01; + uiSleep 0.01; }; }; diff --git a/SQF/dayz_code/compile/player_zombieSwarmAttack.sqf b/SQF/dayz_code/compile/player_zombieSwarmAttack.sqf index eef1658a9..16ae81a51 100644 --- a/SQF/dayz_code/compile/player_zombieSwarmAttack.sqf +++ b/SQF/dayz_code/compile/player_zombieSwarmAttack.sqf @@ -19,7 +19,7 @@ _unit setDir _dir; [objNull, _unit, rPlayMove, _move] call RE; //Wait -sleep 0.3; +uiSleep 0.3; if (_vehicle != player) then { _hpList = _vehicle call vehicle_getHitpoints; diff --git a/SQF/dayz_code/compile/stream_locationDel.sqf b/SQF/dayz_code/compile/stream_locationDel.sqf index f0eb9accc..77d2d78f7 100644 --- a/SQF/dayz_code/compile/stream_locationDel.sqf +++ b/SQF/dayz_code/compile/stream_locationDel.sqf @@ -9,8 +9,8 @@ for "_i" from ((count _list) - 1) to 0 step -1 do _position = getArray (_config >> "position"); _object = nearestObject [_position,_type]; deleteVehicle _object; - if ((_i % 25) == 0) then { sleep 0.01; }; + if ((_i % 25) == 0) then { uiSleep 0.01; }; }; - sleep 0.001; + uiSleep 0.001; }; //diag_log ("CLEAR: " + str(_this)); diff --git a/SQF/dayz_code/compile/stream_locationFill.sqf b/SQF/dayz_code/compile/stream_locationFill.sqf index 6be154252..0acc7262f 100644 --- a/SQF/dayz_code/compile/stream_locationFill.sqf +++ b/SQF/dayz_code/compile/stream_locationFill.sqf @@ -19,7 +19,7 @@ for "_i" from ((count _list) - 1) to 0 step -1 do _object setPosATL _position; _object allowDamage false; _object setVariable ["", true]; // SV used by player_spawnCheck - //if (_w8 AND {((_i % 25) == 0)}) then { sleep 0.01; }; + //if (_w8 AND {((_i % 25) == 0)}) then { uiSleep 0.01; }; } else { if (!_inVehicle) then { @@ -29,11 +29,11 @@ for "_i" from ((count _list) - 1) to 0 step -1 do _object setPosATL _position; _object allowDamage false; _object setVariable ["", true]; // SV used by player_spawnCheck - if (_w8 AND {((_i % 25) == 0)}) then { sleep 0.01; }; + if (_w8 AND {((_i % 25) == 0)}) then { uiSleep 0.01; }; }; }; }; -//sleep 0.001; +//uiSleep 0.001; }; //diag_log ("FILL: " + str(_list)); diff --git a/SQF/dayz_code/compile/veh_handleDam.sqf b/SQF/dayz_code/compile/veh_handleDam.sqf index 8813406c5..34fa31dbc 100644 --- a/SQF/dayz_code/compile/veh_handleDam.sqf +++ b/SQF/dayz_code/compile/veh_handleDam.sqf @@ -6,7 +6,7 @@ /*********************************************************** ASSIGN DAMAGE TO A UNIT. Called by "HandleDamage" vehicle Event Handler -or by "PVCDZ_veh_SH" PV +or by "PVCDZE_veh_SH" PV or by zombie_attack - Function fnc_veh_handleDam diff --git a/SQF/dayz_code/compile/zombie_generate.sqf b/SQF/dayz_code/compile/zombie_generate.sqf index c62e3c399..d189d1dee 100644 --- a/SQF/dayz_code/compile/zombie_generate.sqf +++ b/SQF/dayz_code/compile/zombie_generate.sqf @@ -52,7 +52,7 @@ _cantSee = { }; }; if (!_isok) exitWith {false}; - sleep 0.001; + uiSleep 0.001; } forEach playableUnits; _isok @@ -91,7 +91,7 @@ if ((_maxlocalspawned < _maxControlledZombies) and (dayz_CurrentNearByZombies < }; _agent = createAgent [_type, _position, [], _radius, _method]; - sleep 0.03; + uiSleep 0.03; //add to global counter dayz_spawnZombies = dayz_spawnZombies + 1; @@ -119,7 +119,7 @@ if ((_maxlocalspawned < _maxControlledZombies) and (dayz_CurrentNearByZombies < if (!isNull _agent) then { _agent setDir random 360; - sleep 0.03; + uiSleep 0.03; _position = getPosATL _agent; diff --git a/SQF/dayz_code/init/compiles.sqf b/SQF/dayz_code/init/compiles.sqf index a981815ab..79c6090fe 100644 --- a/SQF/dayz_code/init/compiles.sqf +++ b/SQF/dayz_code/init/compiles.sqf @@ -590,7 +590,7 @@ if (!isDedicated) then { private "_delay"; _delay = ((10000 + _humanity) / 5500) + 0.3; playSound "heartbeat_1"; - sleep _delay; + uiSleep _delay; }; dayz_heartBeat = false; }; diff --git a/SQF/dayz_code/init/publicEH.sqf b/SQF/dayz_code/init/publicEH.sqf index c050b3725..30855a7e3 100644 --- a/SQF/dayz_code/init/publicEH.sqf +++ b/SQF/dayz_code/init/publicEH.sqf @@ -2,7 +2,7 @@ "norrnRaLW" addPublicVariableEventHandler {(_this select 1) execVM "\z\addons\dayz_code\medical\publicEH\load_wounded.sqf"}; "norrnRLact" addPublicVariableEventHandler {(_this select 1) execVM "\z\addons\dayz_code\medical\load\load_wounded.sqf"}; "norrnRDead" addPublicVariableEventHandler {[_this select 1] execVM "\z\addons\dayz_code\medical\publicEH\deadState.sqf"}; -"usecBleed" addPublicVariableEventHandler {_id = (_this select 1) spawn fnc_usec_damageBleed}; +//"usecBleed" addPublicVariableEventHandler {_id = (_this select 1) spawn fnc_usec_damageBleed}; //"usecBandage" addPublicVariableEventHandler {(_this select 1) call player_medBandage}; "usecInject" addPublicVariableEventHandler {(_this select 1) call player_medInject}; //"usecEpi" addPublicVariableEventHandler {(_this select 1) call player_medEpi}; @@ -12,6 +12,11 @@ "PVDZE_plr_Hit" addPublicVariableEventHandler {(_this select 1) call fnc_usec_damageHandler}; "PVDZE_plr_HitV" addPublicVariableEventHandler {(_this select 1) call fnc_usec_damageVehicle}; //"usecBreakLegs" addPublicVariableEventHandler {(_this select 1) call player_breaklegs}; +"PVDZ_hlt_Bleed" addPublicVariableEventHandler {(_this select 1) spawn fnc_usec_damageBleed}; +"PVDZ_veh_SF" addPublicVariableEventHandler {(_this select 1) call fnc_veh_handleRepair}; // repair a part from a vehicle +"PVCDZ_obj_HideBody" addPublicVariableEventHandler {hideBody (_this select 1)}; +"PVCDZ_obj_GutBody" addPublicVariableEventHandler {(_this select 1) spawn local_gutObject}; +"PVCDZ_veh_SetFuel" addPublicVariableEventHandler {(_this select 1) spawn local_setFuel}; //Both "PVCDZE_veh_SetFuel" addPublicVariableEventHandler {(_this select 1) spawn local_setFuel}; diff --git a/SQF/dayz_code/medical/antibiotics.sqf b/SQF/dayz_code/medical/antibiotics.sqf index 601b6aeaa..e02b8d630 100644 --- a/SQF/dayz_code/medical/antibiotics.sqf +++ b/SQF/dayz_code/medical/antibiotics.sqf @@ -1,13 +1,46 @@ -private ["_hasMeds","_med"]; -_med = "ItemAntibiotic"; -_hasMeds = _med in magazines player; -if (_hasMeds) then { - player removeMagazine _med; -}; -//remove option -// player removeAction s_player_antiobiotic; -//s_player_antiobiotic = -1; +#include "\z\addons\dayz_code\util\array.hpp"; -//remove infection -r_player_infected = false; -player setVariable["USEC_infected",false,true]; \ No newline at end of file +private ["_msg","_antibiotics","_hasAntibiotics","_id","_hasMeds","_unit"]; + +_unit = _this select 0; +_medsUsed = _this select 1; +_antibiotics =["ItemAntibiotic","ItemAntibiotic1","ItemAntibiotic2","ItemAntibiotic3","ItemAntibiotic4","ItemAntibiotic5","ItemAntibiotic6"]; + +_hasAntibiotics = Array_Any(magazines player, {_this in _antibiotics}); + +_msg = "You seem to have misplaced your antibiotics."; + +if (_hasAntibiotics) then { + //Remove one table from the box. + [_medsUsed,"medical"] call dayz_reduceItems; + + //remove infection + r_player_infected = false; + _unit setVariable["USEC_infected",false,true]; + + //remove option + call fnc_usec_medic_removeActions; + r_action = false; + + //player removeAction s_player_antiobiotic; + //s_player_antiobiotic = -1; + + if ((_unit == player) or (vehicle player != player)) then { + //Self Healing + _id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medAntibiotics.sqf"; + + _msg = "You have taken antibiotics."; + } else { + //Send request to other player + PVDZE_send = [_unit,"Antibiotics",[_unit,player]]; + publicVariableServer "PVDZE_send"; + + //Give humnaity for good deeds + [player,20] call player_humanityChange; + + _msg = "You gave antibiotics."; + }; +}; + + +_msg call dayz_rollingMessages; \ No newline at end of file diff --git a/SQF/dayz_code/medical/bandage.sqf b/SQF/dayz_code/medical/bandage.sqf index eeb4046be..f19c9c987 100644 --- a/SQF/dayz_code/medical/bandage.sqf +++ b/SQF/dayz_code/medical/bandage.sqf @@ -1,10 +1,10 @@ -// bleed.sqf - -private ["_started","_finished","_animState","_isMedic","_id","_unit","_display"]; - -disableserialization; +private ["_started","_finished","_animState","_isMedic","_id","_unit","_item"]; _unit = (_this select 3) select 0; +_item = (_this select 3) select 1; + +player removeMagazine _item; +closedialog 0; call fnc_usec_medic_removeActions; r_action = false; @@ -14,21 +14,20 @@ if (vehicle player == player) then { player playActionNow "Medic"; }; -[1,1] call dayz_HungerThirst; - r_interrupt = false; _animState = animationState player; r_doLoop = true; _started = false; _finished = false; [player,"bandage",0,false] call dayz_zombieSpeak; + while {r_doLoop} do { _animState = animationState player; _isMedic = ["medic",_animState] call fnc_inString; if (_isMedic) then { _started = true; }; - if (_started && !_isMedic) then { + if (_started and !_isMedic) then { r_doLoop = false; _finished = true; }; @@ -40,39 +39,27 @@ while {r_doLoop} do { r_doLoop = false; _finished = true; }; - uiSleep 0.1; + uisleep 0.1; }; r_doLoop = false; if (_finished) then { - - _num_removed = ([player,"ItemBandage"] call BIS_fnc_invRemove); - if(_num_removed == 1) then { - - if (vehicle player != player) then { - _display = findDisplay 106; - _display closeDisplay 0; - }; - - if ((_unit == player) || (vehicle player != player)) then { - //Self Healing - _id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medBandaged.sqf"; - dayz_sourceBleeding = objNull; - } else { - /* PVS/PVC - Skaronator */ - PVDZE_send = [_unit,"Bandage",[_unit,player]]; - publicVariableServer "PVDZE_send"; - [player,20] call player_humanityChange; + if ((_unit == player) or (vehicle player != player)) then { + //Self Healing + _id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medBandaged.sqf"; + if (_item=="ItemSepsisBandage") then { + r_player_Sepsis = [false, 0]; + player setVariable ["USEC_Sepsis", false, true]; + player setVariable ["sepsisStarted", nil]; }; - - {_unit setVariable[_x,false,true];} count USEC_typeOfWounds; - _unit setVariable ["USEC_injured",false,true]; - + } else { + PVDZE_send = [_unit,"Bandage",[_unit,player]]; + publicVariableServer "PVDZE_send"; + [player,20] call player_humanityChange; }; } else { r_interrupt = false; - if (vehicle player == player) then { - [objNull, player, rSwitchMove,""] call RE; - player playActionNow "stop"; - }; -}; + [objNull, player, rSwitchMove,""] call RE; + player playActionNow "stop"; + player addMagazine _item; +}; \ No newline at end of file diff --git a/SQF/dayz_code/medical/blood_test.sqf b/SQF/dayz_code/medical/blood_test.sqf index 4ff83815e..3fa07c7b6 100644 --- a/SQF/dayz_code/medical/blood_test.sqf +++ b/SQF/dayz_code/medical/blood_test.sqf @@ -39,7 +39,7 @@ if (!_hasTester) exitWith {}; _dialog = createDialog "bloodTest"; -sleep 0.02; +uiSleep 0.02; _display = uiNamespace getVariable 'DayZ_Blood_Test'; _resultsCard_hidden = _display displayCtrl 1288; @@ -210,7 +210,7 @@ if (_allClicked == 4) then { switch (_type) do { case "A" : { if (!_allDisplayed) then { - sleep 2; + uiSleep 2; if (r_antiA_done and !_antiA_displayed) then { _antiA ctrlSetText (_aglutArray select _rnd1); _antiA_displayed = true; @@ -232,7 +232,7 @@ if (_allClicked == 4) then { }; case "B" : { if (!_allDisplayed) then { - sleep 2; + uiSleep 2; if (r_antiA_done and !_antiA_displayed) then { _antiA ctrlSetText (_wholeArray select _rnd1); _antiA_displayed = true; @@ -254,7 +254,7 @@ if (_allClicked == 4) then { }; case "AB" : { if (!_allDisplayed) then { - sleep 2; + uiSleep 2; if (r_antiA_done and !_antiA_displayed) then { _antiA ctrlSetText (_aglutArray select _rnd1); _antiA_displayed = true; @@ -276,7 +276,7 @@ if (_allClicked == 4) then { }; case "O" : { if (!_allDisplayed) then { - sleep 2; + uiSleep 2; if (r_antiA_done and !_antiA_displayed) then { _antiA ctrlSetText (_wholeArray select _rnd1); _antiA_displayed = true; @@ -310,10 +310,10 @@ if (_allClicked == 4) then { r_doLoop = false; _isDone = true; [] spawn { - sleep 7; + uiSleep 7; player setVariable["blood_testDone",true,true]; player setVariable["medForceUpdate",true]; }; }; - sleep 0.01; + uiSleep 0.01; }; \ No newline at end of file diff --git a/SQF/dayz_code/medical/brokeBones.sqf b/SQF/dayz_code/medical/brokeBones.sqf index 5955b60c8..752fe929d 100644 --- a/SQF/dayz_code/medical/brokeBones.sqf +++ b/SQF/dayz_code/medical/brokeBones.sqf @@ -32,11 +32,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; diff --git a/SQF/dayz_code/medical/carry.sqf b/SQF/dayz_code/medical/carry.sqf index d40eb835e..2e0c017a0 100644 --- a/SQF/dayz_code/medical/carry.sqf +++ b/SQF/dayz_code/medical/carry.sqf @@ -1,56 +1,59 @@ /* + CARRY BODY SCRIPT - Allows players to carry unconscious bodies + + Allows players to carry unconscious bodies + JULY 2010 - norrin ***************************************************************************************************************************** Start carry.sqf */ -private ["_unit","_dragee","_anim_name","_can_be_revived","_can_be_revived_2"]; -_dragee = _this select 3; -_can_be_revived = NORRN_revive_array select 20; +private ["_unit","_dragee","_pos","_dir"]; +_dragee = _this select 3; +_can_be_revived = NORRN_revive_array select 20; _can_be_revived_2 = NORRN_revive_array select 21; -_unit = player; -r_carry_sqf = true; -r_drag_sqf = false; +_unit = player; +r_carry_sqf = true; +r_drag_sqf = false; _unit removeAction Norrn_carryAction; -if (isNull _dragee) exitWith {}; -_dragee setVariable ["NORRN_unit_dragged", true, true]; +if (isNull _dragee) exitWith {}; +_dragee setVariable ["NORRN_unit_dragged", true, true]; detach _dragee; uiSleep 1.5; // public EH -//DayZ CE: PublicVariables are removed in DayZ CE -> Could we also do here - Commit by Skaronator -norrnRACarUp = _dragee; -publicVariable "norrnRACarUp"; -_dragee switchMove "ainjpfalmstpsnonwrfldnon_carried_up"; -norrnRAPicUp = _unit; -publicVariable "norrnRAPicUp"; +//PVDZ_drg_RACarUp = _dragee; // not used +//publicVariable "PVDZ_drg_RACarUp"; // not used +//_dragee switchMove "ainjpfalmstpsnonwrfldnon_carried_up"; +//PVDZ_drg_RAPicUp = _unit; // not used +//publicVariable "PVDZ_drg_RAPicUp"; // not used _unit switchMove "acinpknlmstpsraswrfldnon_acinpercmrunsraswrfldnon"; uiSleep 10; _dragee switchmove "ainjpfalmstpsnonwrfldnon_carried_still"; _dragee attachto [_unit,[-0.2, 0.2, 0]]; -while {r_carry_sqf} do +while {r_carry_sqf} do { - _anim_name = animationstate _unit; + _anim_name = animationstate _unit; if (!(_dragee getVariable "NORRN_unconscious")) exitWith - { + { detach _dragee; _unit switchMove ""; player removeAction Norrn_dropAction; r_carry_sqf = false; - }; + }; //check that dragged unit still exists - if (!alive _unit || _anim_name != "acinpknlmstpsraswrfldnon_acinpercmrunsraswrfldnon" && _anim_name != "acinpercmstpsraswrfldnon" && _anim_name != "acinpercmrunsraswrfldf") exitWith - { + if (!alive _unit || _anim_name != "acinpknlmstpsraswrfldnon_acinpercmrunsraswrfldnon" && _anim_name != "acinpercmstpsraswrfldnon" && _anim_name != "acinpercmrunsraswrfldf") exitWith + { player removeAction NORRN_dropAction; detach _dragee; _unit switchMove ""; r_carry_sqf = false; - }; + }; uiSleep 0.1; }; +if (true) exitWith {}; diff --git a/SQF/dayz_code/medical/carry_old.sqf b/SQF/dayz_code/medical/carry_old.sqf index 25768b783..b08b0ee78 100644 --- a/SQF/dayz_code/medical/carry_old.sqf +++ b/SQF/dayz_code/medical/carry_old.sqf @@ -2,58 +2,59 @@ CARRY BODY SCRIPT - Allows players to carry unconscious bodies + Allows players to carry unconscious bodies JULY 2010 - norrin ***************************************************************************************************************************** Start carry.sqf */ -private ["_unit","_dragee","_anim_name","_can_be_revived","_can_be_revived_2"]; -_dragee = _this select 3; -_can_be_revived = NORRN_revive_array select 20; -_can_be_revived_2 = NORRN_revive_array select 21; -_unit = player; -r_carry_sqf = true; -r_drag_sqf = false; - -_unit removeAction Norrn_carryAction; -if (isNull _dragee) exitWith {}; -_dragee setVariable ["NORRN_unit_dragged", true, true]; -detach _dragee; -uiSleep 1.5; -// public EH -norrnRACarUp = _dragee; -publicVariable "norrnRACarUp"; -_dragee switchMove "ainjpfalmstpsnonwrfldnon_carried_up"; -norrnRAPicUp = _unit; -publicVariable "norrnRAPicUp"; -_unit switchMove "acinpknlmstpsraswrfldnon_acinpercmrunsraswrfldnon"; -uiSleep 10; -_dragee switchmove "ainjpfalmstpsnonwrfldnon_carried_still"; -_dragee attachto [_unit,[-0.2, 0.2, 0]]; - - -while {r_carry_sqf} do -{ - _anim_name = animationstate _unit; - if (!(_dragee getVariable "NORRN_unconscious")) exitWith - { - detach _dragee; - _unit switchMove ""; - player removeAction Norrn_dropAction; - r_carry_sqf = false; - }; - - //check that dragged unit still exists - if (!alive _unit || _anim_name != "acinpknlmstpsraswrfldnon_acinpercmrunsraswrfldnon" && _anim_name != "acinpercmstpsraswrfldnon" && _anim_name != "acinpercmrunsraswrfldf") exitWith - { - player removeAction NORRN_dropAction; - detach _dragee; - _unit switchMove ""; - r_carry_sqf = false; - }; - uiSleep 0.1; -}; -_dragee playActionNow "Die"; - +// private ["_unit","_dragee","_pos","_dir"]; +// _dragee = _this select 3; +// _can_be_revived = NORRN_revive_array select 20; +// _can_be_revived_2 = NORRN_revive_array select 21; +// _unit = player; +// r_carry_sqf = true; +// r_drag_sqf = false; +// +// _unit removeAction Norrn_carryAction; +// if (isNull _dragee) exitWith {}; +// _dragee setVariable ["NORRN_unit_dragged", true, true]; +// detach _dragee; +// uiSleep 1.5; +// // public EH +// PVDZ_drg_RACarUp = _dragee; +// publicVariable "PVDZ_drg_RACarUp"; +// _dragee switchMove "ainjpfalmstpsnonwrfldnon_carried_up"; +// PVDZ_drg_RAPicUp = _unit; +// publicVariable "PVDZ_drg_RAPicUp"; +// _unit switchMove "acinpknlmstpsraswrfldnon_acinpercmrunsraswrfldnon"; +// uiSleep 10; +// _dragee switchmove "ainjpfalmstpsnonwrfldnon_carried_still"; +// _dragee attachto [_unit,[-0.2, 0.2, 0]]; +// +// +// while {r_carry_sqf} do +// { +// _anim_name = animationstate _unit; +// if (!(_dragee getVariable "NORRN_unconscious")) exitWith +// { +// detach _dragee; +// _unit switchMove ""; +// player removeAction Norrn_dropAction; +// r_carry_sqf = false; +// }; +// +// //check that dragged unit still exists +// if (!alive _unit || _anim_name != "acinpknlmstpsraswrfldnon_acinpercmrunsraswrfldnon" && _anim_name != "acinpercmstpsraswrfldnon" && _anim_name != "acinpercmrunsraswrfldf") exitWith +// { +// player removeAction NORRN_dropAction; +// detach _dragee; +// _unit switchMove ""; +// r_carry_sqf = false; +// }; +// uiSleep 0.1; +// }; +// _dragee playActionNow "Die"; +// if (true) exitWith {}; +// diff --git a/SQF/dayz_code/medical/drag.sqf b/SQF/dayz_code/medical/drag.sqf index 9c42bc6d5..7092115b7 100644 --- a/SQF/dayz_code/medical/drag.sqf +++ b/SQF/dayz_code/medical/drag.sqf @@ -2,43 +2,63 @@ DRAG BODY SCRIPT - Allows players to drag unconscious bodies + Allows players to drag unconscious bodies JULY 2010 - norrin ***************************************************************************************************************************** Start drag.sqf */ -private ["_unit","_dragee","_unconscious"]; -_dragee = _this select 3; -_unit = player; -_unconscious = _dragee getVariable ["NORRN_unconscious", false]; +private ["_unit","_dragee","_pos","_dir","_addAction"]; +_dragee = _this select 3; +_unit = player; +_unconscious = _dragee getVariable ["NORRN_unconscious", false]; +_addAction = false; -if (isNull _dragee) exitWith {}; -if (!_unconscious) exitWith {}; +if (isNull _dragee) exitWith {}; +if (!_unconscious) exitWith {}; //player assumes dragging posture -_dragee setVariable ["NORRN_unit_dragged", true, true]; -_unit playActionNow "grabDrag"; -uiSleep 2; +r_drag_sqf = true; -//unconscious unit assumes dragging posture -//public EH -//["norrnRaDrag",_dragee] call broadcastRpcCallAll; - norrnRaDrag = [_dragee]; - publicVariable "norrnRaDrag"; -_dragee attachto [_unit,[0.1, 1.01, 0]]; -uiSleep 0.02; +while {r_drag_sqf} do { + if (!_addAction) then { + _dragee setVariable ["NORRN_unit_dragged", true, true]; -//rotate wounded units so that it is facing the correct direction -norrnR180 = _dragee; -publicVariable "norrnR180"; -_dragee setDir 180; -r_drag_sqf = true; + _unit playActionNow "grabDrag"; + uiSleep 2; -//Uneccesary actions removed & drop body added -call fnc_usec_medic_removeActions; + //unconscious unit assumes dragging posture + //public EH + //PVDZ_drg_RaDrag = _dragee; + PVDZ_drg_RaDrag = [_dragee]; + publicVariable "PVDZ_drg_RaDrag"; + //_dragee switchmove "ainjppnemstpsnonwrfldb_still"; + _dragee attachto [_unit,[0.1, 1.01, 0]]; + uiSleep 0.02; -NORRN_dropAction = player addAction ["Drop body", "\z\addons\dayz_code\medical\drop_body.sqf",_dragee, 0, false, true]; -//NORRN_carryAction = player addAction ["Carry body", "\z\addons\dayz_code\medical\carry.sqf",_dragee, 0, false, true]; -uiSleep 1; + //rotate wounded units so that it is facing the correct direction + //PVDZ_drg_R180 = _dragee; // not used + //publicVariable "PVDZ_drg_R180"; // not used + _dragee setDir 180; + + //Uneccesary actions removed & drop body added + call fnc_usec_medic_removeActions; + + NORRN_dropAction = player addAction [localize "str_actions_medical_dropbody", "\z\addons\dayz_code\medical\drop_body.sqf",_dragee, 0, false, true]; + //NORRN_carryAction = player addAction ["Carry body", "\z\addons\dayz_code\medical\carry.sqf",_dragee, 0, false, true]; + uiSleep 1; + _addAction = true; + }; + + if (force_dropBody) then { + [cursorTarget, _unit, _unconscious, _dragee] execVM "\z\addons\dayz_code\medical\drop_body.sqf"; + }; + + if (vehicle player != player) then { + player action ["eject", vehicle player]; + cutText [localize "str_actions_medical_dragbody_veh","PLAIN DOWN"]; + [cursorTarget, _unit, _unconscious, _dragee] execVM "\z\addons\dayz_code\medical\drop_body.sqf"; + }; + if (!r_drag_sqf) exitWith {}; +}; diff --git a/SQF/dayz_code/medical/drop_body.sqf b/SQF/dayz_code/medical/drop_body.sqf index 1d60abaec..12a2ef21a 100644 --- a/SQF/dayz_code/medical/drop_body.sqf +++ b/SQF/dayz_code/medical/drop_body.sqf @@ -8,12 +8,11 @@ Start drop_body.sqf */ -private ["_dragee","_unit"]; -_dragee = _this select 3; +_dragee = _this select 3; player removeAction NORRN_dropAction; -player removeAction NORRN_carryAction; -NORRN_remove_drag = true; +//player removeAction NORRN_carryAction; +NORRN_remove_drag = true; r_drag_sqf = false; r_carry_sqf = false; r_action = false; @@ -24,9 +23,12 @@ detach _dragee; _unit switchMove ""; _dragee switchMove ""; NORRN_Dragged_body = objNull; -_dragee setVariable ["NORRN_unit_dragged", false, true]; +_dragee setVariable ["NORRN_unit_dragged", false, true]; //lie on back _dragee playMoveNow "ainjppnemstpsnonwrfldnon"; -norrnRalie = _dragee; -publicVariable "norrnRalie"; \ No newline at end of file +//PVDZ_drg_Ralie = _dragee; // not used +//publicVariable "PVDZ_drg_Ralie"; // not used +force_dropBody = false; + +if (true) exitWith {}; \ No newline at end of file diff --git a/SQF/dayz_code/medical/epinephrine.sqf b/SQF/dayz_code/medical/epinephrine.sqf index 06fb001f8..ed6494522 100644 --- a/SQF/dayz_code/medical/epinephrine.sqf +++ b/SQF/dayz_code/medical/epinephrine.sqf @@ -4,7 +4,7 @@ private ["_unit","_isDead"]; _unit = (_this select 3) select 0; _isDead = _unit getVariable["USEC_isDead",false]; call fnc_usec_medic_removeActions; -[1,1] call dayz_HungerThirst; + player playActionNow "Medic"; player removeMagazine "ItemEpinephrine"; diff --git a/SQF/dayz_code/medical/fillBloodBag.sqf b/SQF/dayz_code/medical/fillBloodBag.sqf index 2d0fc87b3..e73c6eeff 100644 --- a/SQF/dayz_code/medical/fillBloodBag.sqf +++ b/SQF/dayz_code/medical/fillBloodBag.sqf @@ -90,36 +90,40 @@ r_interrupt = false; }; if (_complete) then { - switch (_bloodType) do { - case "A" : { - if (_rh) then { - player addMagazine "wholeBloodBagAPOS"; - } else { - player addMagazine "wholeBloodBagANEG"; + if (!DZE_UseBloodTypes) then { + player addMagazine "ItemBloodbag"; + } else { + switch (_bloodType) do { + case "A" : { + if (_rh) then { + player addMagazine "wholeBloodBagAPOS"; + } else { + player addMagazine "wholeBloodBagANEG"; + }; }; - }; - case "B" : { - if (_rh) then { - player addMagazine "wholeBloodBagBPOS"; - } else { - player addMagazine "wholeBloodBagBNEG"; + case "B" : { + if (_rh) then { + player addMagazine "wholeBloodBagBPOS"; + } else { + player addMagazine "wholeBloodBagBNEG"; + }; }; - }; - case "AB" : { - if (_rh) then { - player addMagazine "wholeBloodBagABPOS"; - } else { - player addMagazine "wholeBloodBagABNEG"; + case "AB" : { + if (_rh) then { + player addMagazine "wholeBloodBagABPOS"; + } else { + player addMagazine "wholeBloodBagABNEG"; + }; }; - }; - case "O" : { - if (_rh) then { - player addMagazine "wholeBloodBagOPOS"; - } else { - player addMagazine "wholeBloodBagONEG"; + case "O" : { + if (_rh) then { + player addMagazine "wholeBloodBagOPOS"; + } else { + player addMagazine "wholeBloodBagONEG"; + }; }; }; }; diff --git a/SQF/dayz_code/medical/init_medical.sqf b/SQF/dayz_code/medical/init_medical.sqf index d318abfe9..f36fc086e 100644 --- a/SQF/dayz_code/medical/init_medical.sqf +++ b/SQF/dayz_code/medical/init_medical.sqf @@ -1,66 +1,6 @@ -// init_related_scripts.sqf ArmA2 revive -// � AUGUST 2010 - norrin +// moved to dayz_code/system/scheduler/sched_medical.sqf -// Functions - -// Added pvEH - scripts modified to remove the need for sending long strings via setVehicleInit to reduce network traffic && JIP load - 04072010 - -// INCLUDE REQUIRED GAME CODES -#include "\ca\editor\Data\Scripts\dikCodes.h" - -//Settings - -private ["_id","_rnd","_lowBlood"]; -usec_bandage_recovery = 5; //time to recover after bandaging - -//"colorCorrections" ppEffectEnable true; -//"dynamicBlur" ppEffectEnable true; - -//[man2] call fnc_usec_damageHandle; -//[player] call fnc_usec_damageHandle; - -//random morphine chance -//Epi pen not working chance -//Water Unconscious handling -// localize "CLIENT: Medical System Initiated"; - -while {true} do { - //hintSilent format["Injured: %1\nUnconscious: %2 (%7)\nBlood: %5\nPain: %6\nMust Evac: %8\nHandler: %3\nAction: %4\nLeg Damage: %9\nArm Damage: %10\nInfected: %11",r_player_injured,r_player_unconscious,r_player_handler,r_action,r_player_blood,r_player_inpain,r_player_timeout,r_player_dead, player getVariable ["hit_legs",0], player getVariable ["hit_arms",0],r_player_infected]; - - if (r_player_blood <= 0) then { - [player,900] call fnc_usec_damageUnconscious; - _id = [dayz_sourceBleeding,"bled"] spawn player_death; - }; - - if ((r_player_blood <= 3000) && !r_player_unconscious) then { - _rnd = random 100; - if (_rnd > 99) then { - [player,((random 0.1) + 0.2)] call fnc_usec_damageUnconscious; - }; - }; - - //Handle Unconscious player - if ((r_player_unconscious) && (!r_player_handler1)) then { - //localize "CLIENT: Start Unconscious Function"; - [] spawn fnc_usec_unconscious; - }; - - //Handle player bleeding - if ((r_player_injured) && (!r_player_handler)) then { - r_player_handler = true; - uiSleep 1; - //localize "CLIENT: Start Player Bleeding"; - [] spawn fnc_usec_playerBleed; //publicizes the blood value at regular intervals - [] spawn fnc_med_publicBlood; - }; - - //Handle player infection - if ((r_player_infected) && (!r_player_handler)) then { - r_player_handler = true; - uiSleep 1; - [] spawn fnc_med_publicBlood; - }; - +while {1==1} do { //Low Blood Effects if (!r_player_unconscious) then { if (((r_player_blood/r_player_bloodTotal) < 0.35)) then { @@ -77,11 +17,10 @@ while {true} do { }; uiSleep 0.5; _lowBlood = player getVariable ["USEC_lowBlood", false]; - if ((r_player_blood < r_player_bloodTotal) && !_lowBlood) then { + if ((r_player_blood < r_player_bloodTotal) and !_lowBlood) then { player setVariable["USEC_lowBlood",true,true]; }; }; }; - uiSleep 1; -}; -endLoadingScreen; \ No newline at end of file + +}; \ No newline at end of file diff --git a/SQF/dayz_code/medical/load/load_act.sqf b/SQF/dayz_code/medical/load/load_act.sqf index 7119a0d30..414253b25 100644 --- a/SQF/dayz_code/medical/load/load_act.sqf +++ b/SQF/dayz_code/medical/load/load_act.sqf @@ -3,29 +3,29 @@ private ["_args","_dragger","_vcl","_wounded"]; -_args = _this select 3; -_dragger = _args select 0; -_vcl = _args select 1; -_wounded = _args select 2; -r_drag_sqf = false; +_args = _this select 3; +_dragger = _args select 0; +_vcl = _args select 1; +_wounded = _args select 2; +r_drag_sqf = false; r_action = false; r_action_load = false; call fnc_usec_medic_removeActions; -//_dragger removeAction NORRN_loadWoundedAction; - +_dragger removeAction NORRN_loadWoundedAction; + if ((_vcl emptyPositions "cargo") > 0) then -{ +{ detach _wounded; - _dragger switchMove ""; + _dragger switchMove ""; _wounded setVariable ["NORRN_LoadVcl", _vcl, true]; uiSleep 1; //["norrnRLact",_wounded] call broadcastRpcCallAll; - norrnRLact = [_wounded]; + [_wounded] execVM "\z\addons\dayz_code\medical\load\load_wounded.sqf"; + norrnRLact = _wounded; publicVariable "norrnRLact"; player removeAction NORRN_dropAction; -}else{ - - hint "No space left in vehicle"; +} else { + cutText [localize "str_dragnospace", "PLAIN DOWN"];//hint "No space left in vehicle"; }; -NORRN_load_wounded_action = true; \ No newline at end of file +NORRN_load_wounded_action = true; diff --git a/SQF/dayz_code/medical/load/load_wounded.sqf b/SQF/dayz_code/medical/load/load_wounded.sqf index e549ba054..4a050f32a 100644 --- a/SQF/dayz_code/medical/load/load_wounded.sqf +++ b/SQF/dayz_code/medical/load/load_wounded.sqf @@ -1,9 +1,9 @@ // Load_wounded.sqf // OCTOBER 2010 - norrin -private ["_wounded","_vcl"]; +private ["_wounded","_vcl","_group"]; -_wounded = _this select 0; +_wounded = _this select 0; if (!local _wounded) exitWith {}; @@ -11,21 +11,22 @@ uiSleep 1; _vcl = _wounded getVariable "NORRN_loadVcl"; _wounded setVariable ["NORRN_unit_dragged", true, true]; -_wounded assignAsCargo _vcl; +_wounded assignAsCargo _vcl; _wounded moveInCargo _vcl; uiSleep 1; -//["norrnRALW",_wounded] call broadcastRpcCallAll; - norrnRALW = [_wounded]; - publicVariable "norrnRALW"; +//["norrnRaLW",_wounded] call broadcastRpcCallAll; + norrnRaLW = _wounded; + publicVariable "norrnRaLW"; + _wounded switchMove "kia_hmmwv_driver"; -if (local _wounded) then -{ +if (local _wounded) then +{ waitUntil {!(_wounded getVariable "NORRN_unconscious")|| !alive _wounded || vehicle _wounded == _wounded || (assignedVehicleRole _wounded) select 0 != "Cargo"}; - - if (vehicle _wounded == _wounded || (assignedVehicleRole _wounded) select 0 != "Cargo") exitWith + + if ((vehicle _wounded == _wounded) || (assignedVehicleRole _wounded) select 0 != "Cargo") exitWith { if (_wounded getVariable "NORRN_AIunconscious") then - { + { if (vehicle _wounded != _wounded) then { unassignVehicle _wounded; @@ -33,17 +34,19 @@ if (local _wounded) then _wounded action ["EJECT", _vcl]; uiSleep 1; }; - norrinRAlie = _wounded; - publicVariable "norrinRAlie"; +// PVDZ_drg_RAlie = _wounded; // not used +// publicVariable "PVDZ_drg_RAlie"; // not used _wounded switchMove "ainjppnemstpsnonwrfldnon"; _wounded setVariable ["NORRN_unit_dragged", false, true]; uiSleep 1; }; }; - + if (vehicle _wounded != _wounded && alive _wounded) then - { - _wounded playMove "BasicDriver"; + { + _wounded playMove "BasicDriver"; }; }; -uiSleep 0.01; \ No newline at end of file +uiSleep 0.01; + +if (true) exitWith {}; \ No newline at end of file diff --git a/SQF/dayz_code/medical/load/unLoad_act.sqf b/SQF/dayz_code/medical/load/unLoad_act.sqf index 7486c5720..094f3cc0e 100644 --- a/SQF/dayz_code/medical/load/unLoad_act.sqf +++ b/SQF/dayz_code/medical/load/unLoad_act.sqf @@ -1,18 +1,18 @@ // unLoad_act.sqf // AUGUST 2010 - norrin -private ["_args","_vcl","_loop","_unit","_name","_crewVcl"]; +private ["_args","_dragger","_vcl","_wounded"]; -_args = _this select 3; -_name = _args select 0; -_vcl = _args select 1; -_crewVcl = crew _vcl; +_args = _this select 3; +_name = _args select 0; +_vcl = _args select 1; +_crewVcl = crew _vcl; -_name removeAction (_this select 2); +//_name removeAction NORRN_pullOutAction; // NORRN_pullOutAction is defined anywhere for [{ _loop = 0 },{ _loop < count _crewVcl },{ _loop = _loop + 1}] do { - _unit = _crewVcl select _loop; + _unit = _crewVcl select _loop; if (_unit getVariable "NORRN_unconscious") then { @@ -20,11 +20,18 @@ for [{ _loop = 0 },{ _loop < count _crewVcl },{ _loop = _loop + 1}] do uiSleep 0.05; _unit action ["EJECT", _vcl]; uiSleep 1; + _position = getPosATL _unit; + _isOnDeck = getPosASL _unit in LHA_Deck; + if (_isOnDeck) then { + _unit setPosAsl [(_position select 0), (_position select 1), (LHA_height+1)]; + }; _unit switchMove ""; _unit switchMove "ainjppnemstpsnonwrfldnon"; uiSleep 0.2; - norrnRalie = _unit; - publicVariable "norrnRalie"; +// PVDZ_drg_Ralie = _unit; // not used +// publicVariable "PVDZ_drg_Ralie"; // not used }; uiSleep 0.1; -}; \ No newline at end of file +}; + +if (true) exitWith {}; \ No newline at end of file diff --git a/SQF/dayz_code/medical/load_wounded.sqf b/SQF/dayz_code/medical/load_wounded.sqf index 4a8093323..020b66c19 100644 --- a/SQF/dayz_code/medical/load_wounded.sqf +++ b/SQF/dayz_code/medical/load_wounded.sqf @@ -9,13 +9,13 @@ if (!local _wounded) exitWith {}; r_action = false; -sleep 1; +uiSleep 1; _vcl = _wounded getVariable "NORRN_loadVcl"; _wounded setVariable ["NORRN_unit_dragged", true, true]; _wounded assignAsCargo _vcl; _wounded moveInCargo _vcl; -sleep 1; +uiSleep 1; //["PVDZ_drg_RaLW",_wounded] call broadcastRpcCallAll; norrnRaLW = _wounded; publicVariable "norrnRaLW"; @@ -31,15 +31,15 @@ if (local _wounded) then if (vehicle _wounded != _wounded) then { unassignVehicle _wounded; - sleep 0.05; + uiSleep 0.05; _wounded action ["EJECT", _vcl]; - sleep 1; + uiSleep 1; }; // PVDZ_drg_RAlie = _wounded; // not used // publicVariable "PVDZ_drg_RAlie"; // not used _wounded switchMove "ainjppnemstpsnonwrfldnon"; _wounded setVariable ["NORRN_unit_dragged", false, true]; - sleep 1; + uiSleep 1; }; }; @@ -48,5 +48,5 @@ if (local _wounded) then _wounded playMove "BasicDriver"; }; }; -sleep 0.01; +uiSleep 0.01; if (true) exitWith {}; \ No newline at end of file diff --git a/SQF/dayz_code/medical/morphine.sqf b/SQF/dayz_code/medical/morphine.sqf index a52ac50d1..96c9e6278 100644 --- a/SQF/dayz_code/medical/morphine.sqf +++ b/SQF/dayz_code/medical/morphine.sqf @@ -1,17 +1,14 @@ -// bleed.sqf - -private ["_started","_finished","_animState","_isMedic","_id","_num_removed","_unit"]; - -disableserialization; - +private ["_started","_finished","_animState","_isMedic","_id","_unit"]; _unit = (_this select 3) select 0; +player removeMagazine "ItemMorphine"; + _unit setVariable ["hit_legs",0]; _unit setVariable ["hit_hands",0]; call fnc_usec_medic_removeActions; r_action = false; -[1,1] call dayz_HungerThirst; + if (vehicle player == player) then { //not in a vehicle player playActionNow "Medic"; @@ -27,7 +24,7 @@ while {r_doLoop} do { if (_isMedic) then { _started = true; }; - if (_started && !_isMedic) then { + if (_started and !_isMedic) then { r_doLoop = false; _finished = true; }; @@ -44,29 +41,22 @@ while {r_doLoop} do { r_doLoop = false; if (_finished) then { - _num_removed = ([player,"ItemMorphine"] call BIS_fnc_invRemove); - if(_num_removed == 1) then { - - if (vehicle player != player) then { - _display = findDisplay 106; - _display closeDisplay 0; - }; - - if ((_unit == player) || (vehicle player != player)) then { - //Self Healing - _id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medMorphine.sqf"; - } else { - [player,50] call player_humanityChange; - }; - - /* PVS/PVC - Skaronator */ - PVDZE_send = [_unit,"Morphine",[_unit,player]]; - publicVariableServer "PVDZE_send"; +if ((_unit == player) or (vehicle player != player)) then { + //Self Healing + _id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medMorphine.sqf"; + } else { + //PVCDZ_plr_Humanity = [player,50]; + [player,50] call player_humanityChange; }; + + //["PVCDZ_hlt_Morphine",[_unit,player]] call broadcastRpcCallAll; + //PVCDZ_hlt_Morphine = [_unit,player]; + //publicVariable "PVCDZ_hlt_Morphine"; + PVDZE_send = [_unit,"Morphine",[_unit,player]]; + publicVariableServer "PVDZE_send"; } else { + player addMagazine "ItemMorphine"; r_interrupt = false; - if (vehicle player == player) then { - [objNull, player, rSwitchMove,""] call RE; - player playActionNow "stop"; - }; + [objNull, player, rSwitchMove,""] call RE; + player playActionNow "stop"; }; \ No newline at end of file diff --git a/SQF/dayz_code/medical/painkiller.sqf b/SQF/dayz_code/medical/painkiller.sqf index d35e2ff24..da5d75cd3 100644 --- a/SQF/dayz_code/medical/painkiller.sqf +++ b/SQF/dayz_code/medical/painkiller.sqf @@ -1,39 +1,27 @@ -// bleed.sqf - -private ["_id","_unit","_num_removed"]; - -disableserialization; - +private ["_id","_unit"]; _unit = (_this select 3) select 0; +_unit setVariable ["USEC_inPain", false, true]; + call fnc_usec_medic_removeActions; r_action = false; -_num_removed = ([player,"ItemPainkiller"] call BIS_fnc_invRemove); -if(_num_removed == 1) then { - - if (vehicle player != player) then { - _display = findDisplay 106; - _display closeDisplay 0; - }; - - _unit setVariable ["USEC_inPain", false, true]; - - if (vehicle player == player) then { - //not in a vehicle - player playActionNow "Gear"; - }; - - if ((_unit == player) || (vehicle player != player)) then { - //Self Healing - _id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medPainkiller.sqf"; - } else { - [player,20] call player_humanityChange; - }; - - uiSleep 1; - //clear the healed player's vision - /* PVS/PVC - Skaronator */ - PVDZE_send = [_unit,"Painkiller",[_unit,player]]; - publicVariableServer "PVDZE_send"; +if (vehicle player == player) then { + //not in a vehicle + player playActionNow "Gear"; }; + +if ((_unit == player) or (vehicle player != player)) then { + //Self Healing + _id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medPainkiller.sqf"; +} else { + //PVCDZ_plr_Humanity = [player,20]; + [player,20] call player_humanityChange; +}; + +player removeMagazine "ItemPainkiller"; + +uiSleep 1; + +PVDZE_send = [_unit,"Painkiller",[_unit,player]]; +publicVariableServer "PVDZE_send"; \ No newline at end of file diff --git a/SQF/dayz_code/medical/publicEH/medBandaged.sqf b/SQF/dayz_code/medical/publicEH/medBandaged.sqf index 1db59f763..f75324ffd 100644 --- a/SQF/dayz_code/medical/publicEH/medBandaged.sqf +++ b/SQF/dayz_code/medical/publicEH/medBandaged.sqf @@ -5,15 +5,19 @@ _array = _this; //_this select 0; _unit = _array select 0; _medic = _array select 1; -if ((_unit == player) || (vehicle player != player)) then { +if ((_unit == player) or (vehicle player != player)) then { r_player_injured = false; - "dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5; r_player_handler = false; + if (r_player_blood == r_player_bloodTotal) then { player setVariable["USEC_lowBlood",false,true]; }; + + dayz_sourceBleeding = objNull; + call fnc_usec_resetWoundPoints; + //Ensure Control is visible _display = uiNamespace getVariable 'DAYZ_GUI_display'; - _control = _display displayCtrl 1303; + _control = _display displayCtrl 1303; _control ctrlShow false; }; \ No newline at end of file diff --git a/SQF/dayz_code/medical/publicEH/medBreakLegs.sqf b/SQF/dayz_code/medical/publicEH/medBreakLegs.sqf deleted file mode 100644 index 46573ea30..000000000 --- a/SQF/dayz_code/medical/publicEH/medBreakLegs.sqf +++ /dev/null @@ -1,61 +0,0 @@ -// medBreakLegs.sqf -private ["_array","_unit","_attacker","_cnt","_index","_hit","_damage","_wound","_isInjured","_lowBlood"]; -disableserialization; -_array = _this; //_this select 0; -_unit = _array select 0; -_attacker = _array select 1; - -if (_unit == player && player distance _attacker < 5) then { - player setVariable["startcombattimer", 1]; - // Make bleed - if (random 2 < 1) then { - // Find hit - _cnt = count (DAYZ_woundHit_ok select 1); - _index = floor (random _cnt); - _index = (DAYZ_woundHit_ok select 1) select _index; - _hit = (DAYZ_woundHit_ok select 0) select _index; - - _damage = 0.1 + random (1.2); - - //Record Damage to Minor parts (legs, arms) - if (_hit in USEC_MinorWounds) then { - [_unit,_hit,_damage] call object_processHit; - }; - - player setVariable["medForceUpdate",true,true]; - - 1 call fnc_usec_bulletHit; - - _wound = _hit call fnc_usec_damageGetWound; - - //Create Wound - _unit setVariable[_wound,true,true]; - [_unit,_wound,_hit] spawn fnc_usec_damageBleed; - usecBleed = [_unit,_wound,_hit]; - publicVariable "usecBleed"; //Not sure if this can used over a PVS way, maybe with a rangeCheck like in gutObject.sqf? - - //Set Injured if not already - _isInjured = _unit getVariable["USEC_injured",false]; - if (!_isInjured) then { - _unit setVariable["USEC_injured",true,true]; - dayz_sourceBleeding = _attacker; - }; - //Set ability to give blood - _lowBlood = _unit getVariable["USEC_lowBlood",false]; - if (!_lowBlood) then { - _unit setVariable["USEC_lowBlood",true,true]; - }; - r_player_injured = true; - - // reduce blood - r_player_blood = r_player_blood - 50; - - // Make player infected - if (random 5 < 1) then { - r_player_infected = true; - player setVariable["USEC_infected",true,true]; - }; - }; - - [_unit,"hit",2,false] call dayz_zombieSpeak; -}; \ No newline at end of file diff --git a/SQF/dayz_code/medical/publicEH/medEpi.sqf b/SQF/dayz_code/medical/publicEH/medEpi.sqf index c8ed6a984..058676a76 100644 --- a/SQF/dayz_code/medical/publicEH/medEpi.sqf +++ b/SQF/dayz_code/medical/publicEH/medEpi.sqf @@ -1,23 +1,15 @@ -// animHealed.sqf - -private ["_array","_unit","_medic","_isDead"]; +// called by PublicVariableEventHandler "PVCDZ_hlt_Epi", received from the server, +// because another player sent a PVDZ_send = [_unit,"Epinephrine",[_unit,player,"ItemEpinephrine"]]; _array = _this; //_this select 0; -_unit = _array select 0; -_medic = _array select 1; +_unit = _array select 0; // healed +_medic = _array select 1; // healer _isDead = _unit getVariable["USEC_isDead",false]; -if (local _unit) then {_unit setCaptive false}; +//if (local _unit) then {_unit setCaptive false}; // captive ???? -if (!_isDead) then { - _unit switchMove "AmovPpneMstpSnonWnonDnon_healed"; - //no need to public broadcast the variables since this runs on every peer - _unit setVariable ["NORRN_unconscious", false, false]; - _unit setVariable ["USEC_isCardiac",false, false]; - if (_unit == player) then { - r_player_unconscious = false; - disableUserInput false; - r_player_cardiac = false; - r_player_handler1 = false; - }; +if (_unit == player and !(_unit getVariable["USEC_isDead",false]) and _medic != _unit and _medic distance _unit < 5) then { + _unit setVariable ["NORRN_unconscious", false, false]; r_player_unconscious = false; + _unit setVariable ["USEC_isCardiac",false, false]; r_player_cardiac = false; + //AmovPpneMstpSnonWnonDnon_healed }; \ No newline at end of file diff --git a/SQF/dayz_code/medical/publicEH/medMorphine.sqf b/SQF/dayz_code/medical/publicEH/medMorphine.sqf index 018ac87b9..4c6b591c5 100644 --- a/SQF/dayz_code/medical/publicEH/medMorphine.sqf +++ b/SQF/dayz_code/medical/publicEH/medMorphine.sqf @@ -1,20 +1,22 @@ -// animHealed.sqf -private ["_array","_unit","_medic","_display","_control","_id"]; +private ["_array","_unit","_medic","_display","_control"]; disableserialization; _array = _this; //_this select 0; _unit = _array select 0; _medic = _array select 1; -if ((_unit == player) || (vehicle player != player)) then { +if ((_unit == player) or (vehicle player != player)) then { r_fracture_legs = false; r_fracture_arms = false; _unit setHit["legs",0]; _unit setHit["hands",0]; - + //Ensure Control is visible _display = uiNamespace getVariable 'DAYZ_GUI_display'; - _control = _display displayCtrl 1203; + _control = _display displayCtrl 1203; _control ctrlShow false; - - // _id = false spawn dayz_disableRespawn; -}; \ No newline at end of file + + //_id = false spawn dayz_disableRespawn; +}; + +_unit setVariable ["hit_legs",0,true]; +_unit setVariable ["hit_hands",0,true]; \ No newline at end of file diff --git a/SQF/dayz_code/medical/publicEH/medPainkiller.sqf b/SQF/dayz_code/medical/publicEH/medPainkiller.sqf index 397edcd87..6a9c9c273 100644 --- a/SQF/dayz_code/medical/publicEH/medPainkiller.sqf +++ b/SQF/dayz_code/medical/publicEH/medPainkiller.sqf @@ -1,12 +1,8 @@ -// animHealed.sqf - private ["_array","_unit","_medic"]; _array = _this; //_this select 0; _unit = _array select 0; _medic = _array select 1; -if ((_unit == player) || (vehicle player != player)) then { +if ((_unit == player) or (vehicle player != player)) then { r_player_inpain = false; - R3F_TIRED_Accumulator = 0; - "dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5; }; \ No newline at end of file diff --git a/SQF/dayz_code/medical/pulse.sqf b/SQF/dayz_code/medical/pulse.sqf index dd716c36d..459d18d24 100644 --- a/SQF/dayz_code/medical/pulse.sqf +++ b/SQF/dayz_code/medical/pulse.sqf @@ -1,19 +1,15 @@ -// bleed.sqf - -private ["_unit","_isDead","_isCardiac"]; -_unit = (_this select 3); +private["_unit","_isDead","_isCardiac"]; +_unit = _this select 3; _isDead = _unit getVariable["USEC_isDead",false]; _isCardiac = _unit getVariable["USEC_isCardiac",false]; uiSleep 1; if (_isDead) then { - TitleText[(localize "str_epoch_player_3"),"PLAIN DOWN",3]; + cutText [localize "str_pulse_extremely_weak","PLAIN DOWN"]; } else { if (_isCardiac) then { - TitleText[(localize "str_epoch_player_4"),"PLAIN DOWN",3]; + cutText [localize "str_pulse_weak","PLAIN DOWN"]; } else { - TitleText[(localize "str_epoch_player_5"),"PLAIN DOWN",3]; + cutText [localize "str_pulse_strong","PLAIN DOWN"]; }; }; - -//r_action = false; \ No newline at end of file diff --git a/SQF/dayz_code/medical/self_transfusion.sqf b/SQF/dayz_code/medical/self_transfusion.sqf index 46887adea..1318316dd 100644 --- a/SQF/dayz_code/medical/self_transfusion.sqf +++ b/SQF/dayz_code/medical/self_transfusion.sqf @@ -11,7 +11,7 @@ r_action = false; if (vehicle player == player) then { player playActionNow "Medic"; }; -[1,1] call dayz_HungerThirst; + r_interrupt = false; _animState = animationState player; r_doLoop = true; diff --git a/SQF/dayz_code/medical/selfbloodbag.sqf b/SQF/dayz_code/medical/selfbloodbag.sqf index 6f4755a8f..11975b076 100644 --- a/SQF/dayz_code/medical/selfbloodbag.sqf +++ b/SQF/dayz_code/medical/selfbloodbag.sqf @@ -7,7 +7,10 @@ _blood = _unit getVariable ["USEC_BloodQty", 0]; _lowBlood = _unit getVariable ["USEC_lowBlood", false]; _injured = _unit getVariable ["USEC_injured", false]; _inPain = _unit getVariable ["USEC_inPain", false]; -_lastused = _unit getVariable ["LastTransfusion", time]; +//_lastused = _unit getVariable ["LastTransfusion", time]; +_lastused = selfTransfusionTime; +_timeout = (DZE_selfTransfuse_Values select 2); +if ((round(time - _lastused)) <= _timeout) exitWith {cutText [format[(localize "str_actions_medical_18"),(_timeout - (round(time - _lastused)))] , "PLAIN DOWN"]}; call gear_ui_init; closeDialog 0; @@ -66,7 +69,7 @@ while {r_doLoop and (_i < 12)} do { if (_isMedic and !_started) then { closeDialog 0; - diag_log format ["TRANSFUSION: starting blood transfusion (%1 > %2)", name player, name _unit]; + //diag_log format ["TRANSFUSION: starting blood transfusion (%1 > %2)", name player, name _unit]; if (_badBag) then { for "_r" from 0 to 15 do { _bagToRemove = _bagUsed; @@ -119,7 +122,9 @@ while {r_doLoop and (_i < 12)} do { _blood = _unit getVariable ["USEC_BloodQty", 0]; if (((_blood >= r_player_bloodTotal) and !_badBag and _bagFound) or (_i == 12)) then { - diag_log format ["TRANSFUSION: completed blood transfusion successfully (_i = %1)", _i]; + //diag_log format ["TRANSFUSION: completed blood transfusion successfully (_i = %1)", _i]; + selfTransfusionTime = time; + [_unit, DZE_selfTransfuse_Values] call player_medTransfuse; cutText [localize "str_actions_medical_transfusion_successful", "PLAIN DOWN"]; [player,_unit,"loc",rTITLETEXT,localize "str_actions_medical_transfusion_successful","PLAIN DOWN"] call RE; [player,25] call player_humanityChange; @@ -129,13 +134,12 @@ while {r_doLoop and (_i < 12)} do { _isClose = ((player distance _unit) < ((sizeOf typeOf _unit) / 2)); if (r_interrupt or !_isClose or _forceClose) then { - diag_log format ["TRANSFUSION: transfusion was interrupted (r_interrupt: %1 | distance: %2 (%3) | _i = %4)", r_interrupt, player distance _unit, _isClose, _i]; - cutText [localize "str_actions_medical_transfusion_interrupted", "PLAIN DOWN"]; + //diag_log format ["TRANSFUSION: transfusion was interrupted (r_interrupt: %1 | distance: %2 (%3) | _i = %4)", r_interrupt, player distance _unit, _isClose, _i]; cutText [localize "str_actions_medical_transfusion_interrupted", "PLAIN DOWN"]; [player,_unit,"loc",rTITLETEXT,localize "str_actions_medical_transfusion_interrupted","PLAIN DOWN"] call RE; r_doLoop = false; }; - sleep 0.1; + uiSleep 0.1; }; r_doLoop = false; diff --git a/SQF/dayz_code/medical/setup_functions_med.sqf b/SQF/dayz_code/medical/setup_functions_med.sqf index d353b9e42..b3321ccba 100644 --- a/SQF/dayz_code/medical/setup_functions_med.sqf +++ b/SQF/dayz_code/medical/setup_functions_med.sqf @@ -4,20 +4,14 @@ fnc_usec_damageHandle = { - Function - [unit] call fnc_usec_damageHandle; ************************************************************/ - private ["_unit"]; + //private["_unit","_eh"]; _unit = _this select 0; - - // Remove handle damage override - // _unit removeEventHandler ["HandleDamage",temp_handler]; - mydamage_eh1 = _unit addeventhandler ["HandleDamage",{_this call fnc_usec_damageHandler;} ]; mydamage_eh2 = _unit addEventHandler ["Fired", {_this call player_fired;}]; mydamage_eh3 = _unit addEventHandler ["Killed", {_id = [] spawn player_death;}]; }; fnc_usec_pitchWhine = { - - private ["_visual","_sound"]; _visual = _this select 0; _sound = _this select 1; //affect the player @@ -34,33 +28,51 @@ fnc_usec_pitchWhine = { }; }; -fnc_usec_damageUnconscious = { - private ["_unit","_damage","_inVehicle"]; +/* +//Old system 1.8.6 +fnc_usec_damageUnconscious1 = { + private["_unit","_damage"]; _unit = _this select 0; _damage = _this select 1; - _inVehicle = (vehicle _unit != _unit); - if ((_unit == player) || (vehicle player != player)) then { - r_player_timeout = round((((random 2) max 0.1) * _damage) * 20); + + diag_log format["fnc_usec_damageUnconscious: %1,%2,%3",_unit,_damage, player]; + + if (_unit == player) then { + r_player_timeout = 120 min (round((((random 2) max 0.1) * _damage) * 20)); r_player_unconscious = true; - player setVariable["medForceUpdate",true,true]; + }; +}; +*/ +fnc_usec_damageUnconscious = { + private["_unit","_damage"]; + _unit = _this select 0; + _damage = _this select 1; + + diag_log format["fnc_usec_damageUnconscious: %1,%2,%3",_unit,_damage, player]; + + _inVehicle = (vehicle _unit != _unit); + if (_unit == player) then { + r_player_timeout = 120 min (round((((random 2) max 0.1) * _damage) * 20)); + r_player_unconscious = true; + + player setVariable["medForceUpdate",true]; player setVariable ["unconsciousTime", r_player_timeout, true]; }; + if (_inVehicle) then { _unit spawn { private["_veh","_unit"]; _veh = vehicle _this; _unit = _this; - waitUntil{(((([_veh] call FNC_GetPos) select 2 < 1) && (speed _veh < 1)) || (!r_player_unconscious))}; + waitUntil{(((getPosATL _veh select 2 < 1) and (speed _veh < 1)) or (!r_player_unconscious))}; if (r_player_unconscious) then { _unit action ["eject", _veh]; waitUntil{((vehicle _this) != _this)}; uiSleep 1; - _unit setVariable ["NORRN_unconscious", true, true]; _unit playActionNow "Die"; }; }; } else { - _unit setVariable ["NORRN_unconscious", true, true]; _unit playActionNow "Die"; }; }; @@ -68,17 +80,300 @@ fnc_usec_damageUnconscious = { //Action Handlers added to init file fnc_usec_bulletHit = { - private["_commit"]; + //private["_commit"]; _commit = _this; if (!r_player_unconscious) then { - "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; - "dynamicBlur" ppEffectEnable true;"dynamicBlur" ppEffectAdjust [2]; "dynamicBlur" ppEffectCommit 0; - addCamShake [5, 0.5, 25]; - "colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 1], [1, 1, 1, 0.0]];"colorCorrections" ppEffectCommit _commit; - "dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit _commit; + "colorCorrections" ppEffectEnable true; "colorCorrections" ppEffectAdjust [1, 1.1, -0.02, [0.4,-0.2,-0.2, .04], [1,1,1,0], [1,1,1, 0]]; "colorCorrections" ppEffectCommit 0; + "dynamicBlur" ppEffectEnable true;"dynamicBlur" ppEffectAdjust [1]; "dynamicBlur" ppEffectCommit 0; + setCamShakeParams [0.05, 4, 1, 3, true]; addCamShake [5, 0.5, 25]; + "colorCorrections" ppEffectAdjust [1, 1, 0, [0,0,0,0], [1, 1, 1, 1], [1, 1, 1, 1]]; "colorCorrections" ppEffectCommit _commit; + "dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit _commit; }; }; +fnc_usec_damageGetWound = { + //private["_wound"]; + _hit = format["%1",_this]; + _sPoint = USEC_woundHit find _hit; + _options = USEC_woundPoint select _sPoint; + _rnd = floor(random(count _options)); + _wound = _options select _rnd; + _wound +}; + +fnc_usec_medic_removeActions = { + _obj = player; + { + _obj = _x; + { + _obj removeAction _x; + } forEach r_player_actions; + } forEach r_action_targets; + r_player_actions = []; + r_action_targets = []; +}; + +fnc_usec_self_removeActions = { + { + player removeAction _x; + } forEach r_self_actions; + r_self_actions = []; +}; + +fnc_usec_calculateBloodPerSec = { + private["_bloodLossPerSec","_bloodGainPerSec","_bloodPerSec"]; + _bloodLossPerSec = 0; + _bloodGainPerSec = 0; + + + if (dayz_thirst >= SleepWater) then { + _bloodLossPerSec = _bloodLossPerSec + 10; + }; + + if (dayz_hunger >= SleepFood) then { + _bloodLossPerSec = _bloodLossPerSec + 10; + }; + + + if (r_player_injured) then { + _bloodLossPerSec = 10; + + { + _wounded = player getVariable["hit_"+_x,false]; + + if (_wounded) then { + _bloodLossPerSec = _bloodLossPerSec + 10; + }; + } forEach USEC_typeOfWounds; + }; + + //Sepsis + if (!r_player_infected) then { + if (r_player_Sepsis select 0) then { + _time = diag_tickTime - (r_player_Sepsis select 1); + if (_time > 900) then { + if (_time < 1800) then { + _time = ((_time - 900) max 1) min 900; + _bloodLossPerSec = _bloodLossPerSec + (_time / 450) + 1; + _bloodLossPerSec = _bloodLossPerSec - (_bloodLossPerSec % 1); + //hintSilent (format["SetupMedFNCS: Blood Level: %2/12000 bloodLossPerSec %1",_bloodLossPerSec,r_player_blood]); + } else { + r_player_Sepsis = [false, 0]; + r_player_infected = true; + player setVariable["USEC_infected",true,true]; + }; + }; + + if ((_time < 1) and (isNil "sepsisStarted")) then { + //if (isNil "sepsisStarted") then { + //cutText [localize "str_medical_sepsis_warning","PLAIN DOWN",5]; + systemChat (localize "str_medical_sepsis_warning"); + player setVariable ["sepsisStarted", _time]; + }; + }; + }; + + if (r_player_infected) then { + _bloodLossPerSec = _bloodLossPerSec + 3; + }; + + //_golbalNutrition = 1200 / (r_player_Nutrition select 0); + + if (r_player_bloodregen > 0) then { + _bloodGainPerSec = r_player_bloodregen * 0.1; +/* + if ((r_player_bloodregen) < 30) then { + _bloodGainPerSec = r_player_bloodregen * _golbalNutrition; + }; + + if ((r_player_bloodregen)< 60) then { + _bloodGainPerSec = r_player_bloodregen * _golbalNutrition; + }; +*/ + + r_player_bloodregen = (0 max r_player_bloodregen) - (0 max _bloodGainPerSec); + }; + + r_player_bloodlosspersec = _bloodLossPerSec; + r_player_bloodgainpersec = _bloodGainPerSec; + + _bloodPerSec = _bloodGainPerSec - _bloodLossPerSec; +/* +private [ "_foodVal", "_thirstVal", "_tempVal"]; +_foodVal = round(100*(1 - (dayz_hunger / SleepFood))); +_thirstVal = round(100*(1 - (dayz_thirst / SleepWater))); +_tempVal = round(100*(1 - ((dayz_temperatur - dayz_temperaturmin)/(dayz_temperaturmax - dayz_temperaturmin)))); + + hintSilent format [ "blood/s: %1\ngain/s: %2\nloss/s: %3\nbloodregen: %4\ninjured: %5\ninfected: %6\nsepsis: %7\ninpain:%15\nblood: %8\nthirst: %9 (%12%%)\nhunger: %10 (%13%%)\ntemp: %11 (%14%%)\nFoodstack: %16\n", + _bloodPerSec, + r_player_bloodgainpersec, + r_player_bloodlosspersec, + r_player_bloodregen, + r_player_injured, + r_player_infected, + r_player_Sepsis, + r_player_blood, + dayz_thirst, + dayz_hunger, + dayz_temperatur, + _thirstVal, + _foodVal, + _tempVal, + r_player_inpain, + r_player_foodstack + ]; +*/ + + r_player_bloodpersec = _bloodPerSec; + _bloodPerSec +}; + +fnc_usec_playerHandleBlood = { + private["_bloodPerSec","_elapsedTime"]; + if (r_player_injured) then { // bleeding + _bleedTime = (random 500) + 100; + _elapsedTime = 0; + + while {(r_player_injured) and (r_player_blood > 0)} do { + _bloodPerSec = [] call fnc_usec_calculateBloodPerSec; + r_player_blood = r_player_blood + _bloodPerSec; + _elapsedTime = _elapsedTime + 1; + + if (_elapsedTime > _bleedTime) then { + r_player_injured = false; + _id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medBandaged.sqf"; + dayz_sourceBleeding = objNull; + call fnc_usec_resetWoundPoints; + }; + + _bloodDiff = r_player_blood - (player getVariable["USEC_BloodQty", 12000]); + + if ((_bloodDiff >= 500) or (_bloodDiff <= -500)) then { + player setVariable["USEC_BloodQty",r_player_blood,true]; + player setVariable["medForceUpdate",true]; + }; + + + uiSleep 1; + }; + } else { // not bleeding + _bloodPerSec = [] call fnc_usec_calculateBloodPerSec; + + if (_bloodPerSec != 0) then { + r_player_blood = r_player_blood + _bloodPerSec; + }; + + _bloodDiff = r_player_blood - (player getVariable["USEC_BloodQty", 12000]); + + + if ((_bloodDiff >= 500) or (_bloodDiff <= -500)) then { + player setVariable["USEC_BloodQty",r_player_blood,true]; + player setVariable["medForceUpdate",true]; + }; + }; +}; + +fnc_usec_resetWoundPoints = { + { + player setVariable["hit_"+_x,false,true]; + } forEach USEC_typeOfWounds; + player setVariable ["USEC_injured",false,true]; +}; + +fnc_usec_damageBleed = { + /*********************************************************** + PROCESS DAMAGE TO A UNIT + - Function fnc_usec_damageBleed: Draw a creepy blood stream from a player limb + - [_unit, _wound, _injury] call fnc_usec_damageBleed; + ************************************************************/ + private["_wound","_modelPos","_point","_source"]; + _unit = _this select 0; + _wound = _this select 1; + //_injury = _this select 2; // not used. damage% ??? + + if (isServer) exitWith{}; // no graphical effects on server! + /* + if ((dayz_bleedingeffect == 1) or (dayz_bleedingeffect == 3)) then { + [] spawn fnc_blooddrops; + };*/ + //diag_log format ["%1::fnc_usec_damageBleed %2", __FILE__, _this]; + + _modelPos = [0,0,0]; + + switch (_wound) do { + case "Pelvis": { + _modelPos = [0,0,0.2]; + }; + case "aimpoint": { + _rndX = (0.1 - random 0.2); + _modelPos = [_rndX,0,0.2]; + }; + case "RightShoulder": { + _modelPos = [0,0,0.2]; + }; + case "LeftShoulder": { + _modelPos = [0,0,0.2]; + }; + //added visual wounds to foots + case "RightFoot": { + _modelPos = [0,0,0.2]; + }; + case "LeftFoot": { + _modelPos = [0,0,0.2]; + }; + }; + + while {1 == 1} do { + scopeName "main"; + waitUntil {(vehicle _unit == _unit)}; + + if ((dayz_bleedingeffect == 2) or (dayz_bleedingeffect == 3)) then { + //Blood partical + _point = "Logic" createVehicleLocal getPosATL _unit; + _source = "#particlesource" createVehicleLocal getPosATL _unit; + _source setParticleParams + /* Sprite */ [["\Ca\Data\ParticleEffects\Universal\Universal", 16, 13, 1],"", // File,Ntieth,Index,Count,Loop(Bool) + /* Type */ "Billboard", + /* TimmerPer */ 1, + /* Lifetime */ 0.2, + /* Position */ [0,0,0], + /* MoveVelocity */ [0,0,0.5], + /* Simulation */ 1,0.32,0.1,0.05, //rotationVel,weight,volume,rubbing + /* Scale */ [0.05,0.25], + /* Color */ [[0.2,0.01,0.01,1],[0.2,0.01,0.01,0]], + /* AnimSpeed */ [0.1], + /* randDirPeriod */ 0, + /* randDirIntesity */ 0, + /* onTimerScript */ "", + /* DestroyScript */ "", + /* Follow */ _point]; + _source setParticleRandom [2, [0, 0, 0], [0.0, 0.0, 0.0], 0, 0.5, [0, 0, 0, 0.1], 0, 0, 10]; + _source setDropInterval 0.02; + _point attachTo [_unit,_modelPos,_wound]; + }; + + uiSleep 5; + + while {((_unit getVariable["USEC_injured",true]) and (alive _unit))} do { + scopeName "loop"; + if (vehicle _unit != _unit) then { + BreakOut "loop"; + }; + uiSleep 1; + }; + deleteVehicle _source; + deleteVehicle _point; + + if (!(_unit getVariable["USEC_injured",false])) then { + BreakOut "main"; + }; + }; + + deleteVehicle _source; + deleteVehicle _point; +}; + +//LEGACY BELOW HERE, LEFT IN FOR SCRIPTS THAT MAY REQUIRE THESE FUNCTIONS fnc_usec_damageType = { private["_damage","_ammo","_type"]; _damage = _this select 0; @@ -97,156 +392,6 @@ fnc_usec_damageType = { _type; }; -fnc_usec_damageGetWound = { - private["_hit","_sPoint","_options","_rnd","_wound"]; - _hit = format["%1",_this]; - _sPoint = USEC_woundHit find _hit; - _options = USEC_woundPoint select _sPoint; - _rnd = floor(random(count _options)); - _wound = _options select _rnd; - _wound; -}; - -fnc_usec_medic_removeActions = { - - private ["_obj"]; - _obj = player; - { - _obj = _x; - { - _obj removeAction _x; - } forEach r_player_actions; - } forEach r_action_targets; - r_player_actions = []; - r_action_targets = []; -}; - -fnc_usec_self_removeActions = { - { - player removeAction _x; - } count r_self_actions; - r_self_actions = []; -}; - -fnc_med_publicBlood = { - while {(r_player_injured || r_player_infected) && r_player_blood > 0} do { - player setVariable["USEC_BloodQty",r_player_blood,true]; - player setVariable["medForceUpdate",true]; - uiSleep 5; - }; -}; - -fnc_usec_playerBleed = { - private ["_bleedTime","_bleedPerSec","_total","_bTime","_myBleedTime","_id"]; - _bleedTime = 400; //seconds - _total = r_player_bloodTotal; - r_player_injured = true; - _myBleedTime = (random 300) + 30; - _bTime = 0; - while {r_player_injured} do { - - _bleedPerSec = 30; - // If kneeling || crawling reduce bleeding - if (dayz_isKneeling && !r_player_unconscious) then{ - _bleedPerSec = 15; - }; - if (dayz_isCrawling && !r_player_unconscious) then{ - _bleedPerSec = 7.5; - }; - - //bleed out - if (r_player_blood > 0) then { - r_player_blood = r_player_blood - _bleedPerSec; - }; - _bTime = _bTime + 1; - if (_bTime > _myBleedTime) then { - r_player_injured = false; - _id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medBandaged.sqf"; - dayz_sourceBleeding = objNull; - {player setVariable[_x,false,true];} count USEC_woundHit; - player setVariable ["USEC_injured",false,true]; - }; - uiSleep 1; - }; -}; - -fnc_usec_damageBleed = { - /*********************************************************** - PROCESS DAMAGE TO A UNIT - - Function - - [_unit, _wound, _injury] call fnc_usec_damageBleed; - ************************************************************/ - private ["_unit","_wound","_injury","_modelPos","_point","_source","_rndX"]; - _unit = _this select 0; - _wound = _this select 1; - _injury = _this select 2; - - _modelPos = [0,0,0]; - - switch (_wound) do { - case "Pelvis": { - _modelPos = [0,0,0.2]; - }; - case "aimpoint": { - _rndX = (0.1 - random 0.2); - _modelPos = [_rndX,0,0.2]; - }; - case "RightShoulder": { - _modelPos = [0,0,0.2]; - }; - case "LeftShoulder": { - _modelPos = [0,0,0.2]; - }; - }; - - while {true} do { - scopeName "main"; - - waitUntil {(vehicle _unit == _unit)}; - - _point = "Logic" createVehicleLocal getPosATL _unit; - _source = "#particlesource" createVehicleLocal getPosATL _unit; - _source setParticleParams - /*Sprite*/ [["\Ca\Data\ParticleEffects\Universal\Universal", 16, 13, 1],"",// File,Ntieth,Index,Count,Loop(Bool) - /*Type*/ "Billboard", - /*TimmerPer*/ 1, - /*Lifetime*/ 0.2, - /*Position*/ [0,0,0], - /*MoveVelocity*/ [0,0,0.5], - /*Simulation*/ 1,0.32,0.1,0.05,//rotationVel,weight,volume,rubbing - /*Scale*/ [0.05,0.25], - /*Color*/ [[0.2,0.01,0.01,1],[0.2,0.01,0.01,0]], - /*AnimSpeed*/ [0.1], - /*randDirPeriod*/ 0, - /*randDirIntesity*/ 0, - /*onTimerScript*/ "", - /*DestroyScript*/ "", - /*Follow*/ _point]; - _source setParticleRandom [2, [0, 0, 0], [0.0, 0.0, 0.0], 0, 0.5, [0, 0, 0, 0.1], 0, 0, 10]; - _source setDropInterval 0.02; - _point attachTo [_unit,_modelPos,_wound]; - - uiSleep 5; - - while {((_unit getVariable["USEC_injured",true]) && (alive _unit))} do { - scopeName "loop"; - if (vehicle _unit != _unit) then { - BreakOut "loop"; - }; - uiSleep 1; - }; - deleteVehicle _source; - deleteVehicle _point; - - if (!(_unit getVariable["USEC_injured",false])) then { - BreakOut "main"; - }; - }; - - deleteVehicle _source; - deleteVehicle _point; -}; - fnc_usec_recoverUncons = { player setVariable ["NORRN_unconscious",false,true]; player setVariable ["unconsciousTime",0,true]; @@ -265,4 +410,44 @@ fnc_usec_recoverUncons = { player switchMove "AinjPpneMstpSnonWnonDnon"; player playMoveNow "AmovPpneMstpSnonWnonDnon_healed"; }; +}; +fnc_med_publicBlood = { + while {(r_player_injured || r_player_infected) && r_player_blood > 0} do { + player setVariable["USEC_BloodQty",r_player_blood,true]; + player setVariable["medForceUpdate",true]; + uiSleep 5; + }; +}; + +fnc_usec_playerBleed = { + private ["_bleedTime","_bleedPerSec","_total","_bTime","_myBleedTime","_id"]; + _bleedTime = 400; //seconds + _total = r_player_bloodTotal; + r_player_injured = true; + _myBleedTime = (random 300) + 30; + _bTime = 0; + while {r_player_injured} do {} + _bleedPerSec = 30; + // If kneeling || crawling reduce bleeding + if (dayz_isKneeling && !r_player_unconscious) then{ + _bleedPerSec = 15; + }; + if (dayz_isCrawling && !r_player_unconscious) then{ + _bleedPerSec = 7.5; + }; + //bleed out + if (r_player_blood > 0) then { + + r_player_blood = r_player_blood - _bleedPerSec; + }; + _bTime = _bTime + 1; + if (_bTime > _myBleedTime) then { + r_player_injured = false; + _id = [player,player] execVM "\z\addons\dayz_code\medical\publicEH\medBandaged.sqf"; + dayz_sourceBleeding = objNull; + {player setVariable[_x,false,true];} count USEC_woundHit; + player setVariable ["USEC_injured",false,true]; + }; + uiSleep 1; + }; }; \ No newline at end of file diff --git a/SQF/dayz_code/medical/transfusion.sqf b/SQF/dayz_code/medical/transfusion.sqf index 0f863471d..42a4f0a64 100644 --- a/SQF/dayz_code/medical/transfusion.sqf +++ b/SQF/dayz_code/medical/transfusion.sqf @@ -1,59 +1,223 @@ -private ["_started","_finished","_animState","_isMedic","_num_removed","_unit","_lastused"]; -// bleed.sqf +private ["_bloodAmount","_unit","_blood","_lowBlood","_injured","_inPain","_lastused","_hasTransfusionKit","_animState","_started","_finished","_timer","_i","_isMedic","_isClose","_duration","_rhVal","_bloodBagArrayNeeded","_BBneeded","_bbselect","_bloodBagNeeded","_badBag","_wholeBag","_bagFound","_bagToRemove","_forceClose","_bloodType","_rh","_bloodBagArray","_bbarray_length","_bloodBagWholeNeeded","_haswholebag","_r","_bloodTestdone","_sentRequest"];// bleed.sqf +//Get receving unit _unit = (_this select 3) select 0; -//_lowBlood = _unit getVariable ["USEC_lowBlood", false]; -//_injured = _unit getVariable ["USEC_injured", false]; -//_inPain = _unit getVariable ["USEC_inPain", false]; -//_lastused = _unit getVariable ["LastTransfusion", time]; -// if (_lastused - time < 60) exitwith {cutText [format[(localize "str_actions_medical_18"),_text] , "PLAIN DOWN"]}; +//Does the player have a transfusionKit +//_hasTransfusionKit = "transfusionKit" in magazines player; + +//Get receving units blood value +_blood = _unit getVariable ["USEC_BloodQty", 0]; +//Get receving units bloodtype +_bloodType = _unit getVariable ["blood_type", ""]; +//Get the receving units RH type +_rh = _unit getVariable ["rh_factor", false]; +//Get status of bloodtest of receving unit +_bloodTestdone = _unit getVariable ["blood_testdone", false]; +r_interrupt = false; + +_badBag = false; +_wholeBag = false; +_bagFound = false; +_forceClose = false; + +//End if the player does not have a transfusion kit +//if (!_hasTransfusionKit) exitWith { cutText [localize "str_actions_medical_transfusion_failed_transfusionkit", "PLAIN DOWN"]; }; + +//Unconscious timeout for receving unit +_duration = if (_blood <= 4000) then { 3 } else { 2 }; +_bloodBagArray = ["bloodBagANEG","bloodBagAPOS","bloodBagBNEG","bloodBagBPOS","bloodBagABNEG","bloodBagABPOS","bloodBagONEG","bloodBagOPOS","wholeBloodBagANEG","wholeBloodBagAPOS","wholeBloodBagBNEG","wholeBloodBagBPOS","wholeBloodBagABNEG","wholeBloodBagABPOS","wholeBloodBagONEG","wholeBloodBagOPOS"]; +_bloodBagArrayNeeded = ["ItemBloodbag","bloodBagONEG"]; +if (_bloodTestdone) then { // if the recipient does not know his blood type, only O- can apply + switch (_bloodType) do { + case "A" : { + if (_rh) then { + _bloodBagArrayNeeded = ["ItemBloodbag","bloodBagAPOS","bloodBagANEG","bloodBagONEG","bloodBagOPOS"]; + } else { + _bloodBagArrayNeeded = ["ItemBloodbag","bloodBagANEG","bloodBagONEG"]; + }; + }; + case "B" : { + if (_rh) then { + _bloodBagArrayNeeded = ["ItemBloodbag","bloodBagBPOS","bloodBagBNEG","bloodBagONEG","bloodBagOPOS"]; + } else { + _bloodBagArrayNeeded = ["ItemBloodbag","bloodBagBNEG","bloodBagONEG"]; + }; + }; + case "AB" : { + if (_rh) then { + _bloodBagArrayNeeded = ["ItemBloodbag","bloodBagABPOS","bloodBagABNEG","bloodBagANEG","bloodBagAPOS","bloodBagBNEG","bloodBagBPOS","bloodBagONEG","bloodBagOPOS"]; + } else { + _bloodBagArrayNeeded = ["ItemBloodbag","bloodBagABNEG","bloodBagANEG","bloodBagBNEG","bloodBagONEG"]; + }; + }; + case "O" : { + if (_rh) then { + _bloodBagArrayNeeded = ["ItemBloodbag","bloodBagOPOS","bloodBagONEG"]; + } else { + _bloodBagArrayNeeded = ["ItemBloodbag","bloodBagONEG"]; + }; + }; + }; +}; + +_BBneeded = false; +{ if (_x in magazines player) exitWith { _BBneeded = true; _bbselect = _x; }; } count _bloodBagArrayNeeded; + +//No subs for whole blood :( +_rhVal = if (_rh) then { "POS" } else { "NEG" }; +_bloodBagWholeNeeded = "wholeBloodBag" + _bloodType + _rhVal; +_haswholebag = _bloodBagWholeNeeded in magazines player; + +if (!_BBneeded and !_haswholebag) then { + _badBag = true; +}; + +//use packed/separated bags first +if (_BBneeded) then { + _wholeBag = false; +} else { + if (_haswholebag) then { + _wholeBag = true; + }; +}; call fnc_usec_medic_removeActions; r_action = false; -// not possible to transfuse while in a vehicle -if (vehicle player != player) exitWith { }; - -player playActionNow "Medic"; - -[1,1] call dayz_HungerThirst; +if (vehicle player == player) then { + //not in a vehicle + player playActionNow "Medic"; +}; r_interrupt = false; _animState = animationState player; r_doLoop = true; _started = false; _finished = false; +_sentRequest = false; +_timer = diag_tickTime; +_i = 0; +_r = 0; +_humanityAwarded = 0; + +_bloodAmount = if (!_wholeBag) then { 12000/*Full bloodbag*/ } else { 4000 /*Whole blood only gives 4k*/ }; + while {r_doLoop} do { _animState = animationState player; _isMedic = ["medic",_animState] call fnc_inString; - if (_isMedic) then { + + if (_isMedic and !_started) then { + closeDialog 0; + //diag_log format ["TRANSFUSION: starting blood transfusion (%1 > %2)", name player, name _unit]; + if (_badBag) then { + for "_r" from 0 to 15 do { + //select random bloodbag if the player has more then one of the required types + _bagToRemove = _bloodBagArray select _r; + //TODO: add separate action menu options so the removed bag isn't random + if (_bagToRemove in magazines player) exitWith { + _bagFound = true; + if (_r >= 8) then { + _wholeBag = true; + }; + }; + }; + } else { + _bagToRemove = if (_wholeBag) then { _bloodBagWholeNeeded } else { _bbselect }; + if (_bagToRemove in magazines player) then { + _bagFound = true; + }; + }; + if (!_bagFound) then {_forceClose = true;} else { player removeMagazine _bagToRemove;}; + cutText [localize "str_actions_medical_transfusion_start", "PLAIN DOWN"]; + //see Note 1 + //[player,_unit,"loc",rTITLETEXT,format["Transfusion of %1 in progress, remain still...",_bagToRemove],"PLAIN DOWN"] call RE; _started = true; }; - if (_started && !_isMedic) then { - r_doLoop = false; - _finished = true; + + if (_started) then { + //_sentRequest var stops the pvs running more then once as it's no longer needs too 1.8.4 + if ((!_sentRequest) And (!_badBag)) then { + PVDZ_send = [_unit,"Transfuse",[_unit,player,_bloodAmount]]; + publicVariableServer "PVDZ_send"; + _sentRequest = true; + }; + if ((diag_tickTime - _timer) >= 1) then { + _timer = diag_tickTime; + //see Note 1 + //PVCDZ_hlt_Transfuse = [_unit,player,1000]; + //publicVariable "PVCDZ_hlt_Transfuse"; + if (!_wholeBag) then { + _i = _i + 1; //Full bloodbag + } else { + _i = _i + 3; //Whole blood only gives 4k + }; + if (!_badBag) then { + if (!_forceClose) then { + _bloodAmount = _bloodAmount - 500; + //see Note 1 + //PVDZ_send = [_unit,"Transfuse",[_unit,player,500]]; + //publicVariableServer "PVDZ_send"; + + // 25 points to be givin upto a maximum of 300 points if the player stays for the full duration + //This should be better this way to keep calculus simple and prevent people getting points for giving blood transfusions to healthy players (and less humanity for only very small amounts of blood) + //Pulled from pullrequest from ILoveBeans + if ( _humanityAwarded < 300 ) then { + _humanityAwarded = _humanityAwarded + 25 ; + }; + }; + } else { + if (!_forceClose and (_i >= 12)) then { + _bloodAmount = 0; + PVDZ_sendUnconscious = [_unit,_duration]; + publicVariableServer "PVDZ_sendUnconscious"; + + diag_log ("Transfusion: "+str(PVDZ_sendUnconscious)); + }; + }; + + cutText [localize "str_actions_medical_transfusion_start", "PLAIN DOWN"]; + //see Note 1 + //[player,_unit,"loc",rTITLETEXT,format["Transfusion of %1 in progress, remain still...",_bagToRemove],"PLAIN DOWN"] call RE; + + }; + if (!_isMedic) then { + player playActionNow "Medic"; + }; }; - if (r_interrupt) then { + + _blood = _unit getVariable ["USEC_BloodQty", 0]; + + if (_blood >= r_player_bloodTotal or _bloodAmount == 0) then { + //diag_log format ["TRANSFUSION: completed blood transfusion successfully (_i = %1)", _i]; + cutText [localize "str_actions_medical_transfusion_successful", "PLAIN DOWN"]; + //see Note 1 + //[player,_unit,"loc",rTITLETEXT,localize "str_actions_medical_transfusion_successful","PLAIN DOWN"] call RE; + if (!_badBag and _bagFound) then { [player,_humanityAwarded] call player_humanityChange; }; r_doLoop = false; }; - uiSleep 0.1; + + _isClose = ((player distance _unit) < ((sizeOf typeOf _unit) / 2)); + + if (r_interrupt or !_isClose or _forceClose) then { + //diag_log format ["TRANSFUSION: transfusion was interrupted (r_interrupt: %1 | distance: %2 (%3) | _i = %4)", r_interrupt, player distance _unit, _isClose, _i]; + cutText [localize "str_actions_medical_transfusion_interrupted", "PLAIN DOWN"]; + //see Note 1 + //[player,_unit,"loc",rTITLETEXT,localize "str_actions_medical_transfusion_interrupted","PLAIN DOWN"] call RE; + r_doLoop = false; + }; + + uiSleep 1; }; + r_doLoop = false; -if (_finished) then { - //_unit setVariable["LastTransfusion",time,true]; //reserve for self transfusion - _unit setVariable["USEC_lowBlood",false,true]; - _num_removed = ([player,"ItemBloodbag"] call BIS_fnc_invRemove); - if(_num_removed == 1) then { - - /* PVS/PVC - Skaronator */ - PVDZE_send = [_unit,"Transfuse",[_unit,player]]; - publicVariableServer "PVDZE_send"; - - [player,100] call player_humanityChange; - }; -} else { +if (r_interrupt) then { r_interrupt = false; player switchMove ""; player playActionNow "stop"; -}; \ No newline at end of file +}; + +/* + Note 1 - 1.8 system sending way too much info upto 12 times to the server on top of each call RE also being sent upto 12 times. System removed + +*/ diff --git a/SQF/dayz_code/medical/wipes.sqf b/SQF/dayz_code/medical/wipes.sqf index a5f3698e9..ddd6260ab 100644 --- a/SQF/dayz_code/medical/wipes.sqf +++ b/SQF/dayz_code/medical/wipes.sqf @@ -30,11 +30,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; diff --git a/SQF/dayz_code/system/BIS_Effects/airdestruction.sqf b/SQF/dayz_code/system/BIS_Effects/airdestruction.sqf index 722e7f3e4..34e4db7d5 100644 --- a/SQF/dayz_code/system/BIS_Effects/airdestruction.sqf +++ b/SQF/dayz_code/system/BIS_Effects/airdestruction.sqf @@ -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); diff --git a/SQF/dayz_code/system/DynamicWeatherEffects.sqf b/SQF/dayz_code/system/DynamicWeatherEffects.sqf index 10e2919a9..a39d4c7ff 100644 --- a/SQF/dayz_code/system/DynamicWeatherEffects.sqf +++ b/SQF/dayz_code/system/DynamicWeatherEffects.sqf @@ -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; }; }; diff --git a/SQF/dayz_code/system/mission/chernarus/infectiousWaterholes/init.sqf b/SQF/dayz_code/system/mission/chernarus/infectiousWaterholes/init.sqf index ae8f09d86..c0570245e 100644 --- a/SQF/dayz_code/system/mission/chernarus/infectiousWaterholes/init.sqf +++ b/SQF/dayz_code/system/mission/chernarus/infectiousWaterholes/init.sqf @@ -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]; diff --git a/SQF/dayz_code/system/mission/chernarus/poi/Twains.sqf b/SQF/dayz_code/system/mission/chernarus/poi/Twains.sqf index 0c9f84cb6..21754bfff 100644 --- a/SQF/dayz_code/system/mission/chernarus/poi/Twains.sqf +++ b/SQF/dayz_code/system/mission/chernarus/poi/Twains.sqf @@ -35,7 +35,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_1 = _this; _this setDir 75.8932; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10320.4,2097.65,0]; }; @@ -47,7 +47,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_2 = _this; _this setDir 75.7489; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10297,2091.73,0]; }; @@ -59,7 +59,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_3 = _this; _this setDir 255.905; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10308.6,2094.65,0]; }; @@ -71,7 +71,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_4 = _this; _this setDir 75.9351; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10210.7,2084.2,0]; }; @@ -83,7 +83,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_5 = _this; _this setDir 75.6848; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10282.7,2088.11,0]; }; @@ -95,7 +95,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_6 = _this; _this setDir 75.7936; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10212.2,2070.33,0]; }; @@ -107,7 +107,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_7 = _this; _this setDir 75.9703; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10201.2,2067.56,0]; }; @@ -119,7 +119,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_8 = _this; _this setDir 75.8529; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10226,2073.78,0]; }; @@ -131,7 +131,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_9 = _this; _this setDir 75.935; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10242.6,2077.98,0]; }; @@ -143,7 +143,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_10 = _this; _this setDir 185.741; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10209.6,1956.79,0]; }; @@ -166,7 +166,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_12 = _this; _this setDir 75.9063; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10268.6,2084.53,0]; }; @@ -178,7 +178,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_13 = _this; _this setDir 75.9183; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10256.9,2081.58,0]; }; @@ -190,7 +190,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_14 = _this; _this setDir 75.8851; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10190,2064.7,0]; }; @@ -202,7 +202,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_15 = _this; _this setDir 75.8851; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10071.4,2007.54,0]; }; @@ -214,7 +214,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_16 = _this; _this setDir 75.8529; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10175.7,2061.11,0]; }; @@ -226,7 +226,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_17 = _this; _this setDir 75.7936; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10161.9,2057.66,0]; }; @@ -238,7 +238,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_18 = _this; _this setDir 75.9703; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10150.9,2054.9,0]; }; @@ -250,7 +250,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_19 = _this; _this setDir 75.8748; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10196.8,2080.7,0]; }; @@ -262,7 +262,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_20 = _this; _this setDir 75.9063; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10182.7,2077.18,0]; }; @@ -274,7 +274,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_21 = _this; _this setDir 75.9183; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10171,2074.23,0]; }; @@ -286,7 +286,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_22 = _this; _this setDir 75.8932; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10159.3,2071.3,0]; }; @@ -298,7 +298,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_23 = _this; _this setDir 75.9448; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10147.6,2068.36,0]; }; @@ -310,7 +310,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_24 = _this; _this setDir 75.7456; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10151.6,2064.59,0]; }; @@ -322,7 +322,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_25 = _this; _this setDir 75.7646; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10140.7,2061.83,0]; }; @@ -334,7 +334,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_26 = _this; _this setDir 75.8194; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10165.5,2068.04,0]; }; @@ -346,7 +346,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_27 = _this; _this setDir 75.887; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10182.1,2072.25,0]; }; @@ -358,7 +358,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_28 = _this; _this setDir 75.8704; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10196.4,2075.86,0]; }; @@ -370,7 +370,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_29 = _this; _this setDir 75.8372; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10129.5,2058.96,0]; }; @@ -382,7 +382,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_30 = _this; _this setDir 75.8049; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10115.2,2055.35,0]; }; @@ -394,7 +394,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_31 = _this; _this setDir 75.7662; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10101.4,2051.88,0]; }; @@ -406,7 +406,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_32 = _this; _this setDir 75.9223; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10090.5,2049.15,0]; }; @@ -418,7 +418,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_33 = _this; _this setDir 75.8529; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10210.5,2079.41,0]; }; @@ -430,7 +430,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_34 = _this; _this setDir 75.9448; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10135.9,2065.42,0]; }; @@ -442,7 +442,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_35 = _this; _this setDir 75.9938; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10168.7,2054.86,0]; }; @@ -454,7 +454,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_36 = _this; _this setDir 75.9375; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10154.9,2051.41,0]; }; @@ -466,7 +466,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_37 = _this; _this setDir 75.9703; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10143.9,2048.69,0]; }; @@ -478,7 +478,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_38 = _this; _this setDir 75.8459; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10185.3,2059.04,0]; }; @@ -490,7 +490,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_39 = _this; _this setDir 75.935; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10202,2063.21,0]; }; @@ -502,7 +502,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_40 = _this; _this setDir 75.9678; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10132.9,2045.94,0]; }; @@ -514,7 +514,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_41 = _this; _this setDir 75.9703; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10121.9,2043.18,0]; }; @@ -526,7 +526,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_42 = _this; _this setDir 75.8529; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10137.1,2051.41,0]; }; @@ -538,7 +538,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_43 = _this; _this setDir 75.7936; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10215.8,2066.71,0]; }; @@ -550,7 +550,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_44 = _this; _this setDir 75.935; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10229.6,2070.15,0]; }; @@ -562,7 +562,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_45 = _this; _this setDir 75.9375; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10276.3,2081.89,0]; }; @@ -574,7 +574,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_46 = _this; _this setDir 75.9703; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10265.4,2079.14,0]; }; @@ -586,7 +586,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_47 = _this; _this setDir 75.9678; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10254.4,2076.39,0]; }; @@ -598,7 +598,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_48 = _this; _this setDir 75.9703; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10243.4,2073.63,0]; }; @@ -610,7 +610,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_49 = _this; _this setDir 75.9375; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10320.2,2092.91,0]; }; @@ -622,7 +622,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_50 = _this; _this setDir 75.9703; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10309.2,2090.14,0]; }; @@ -634,7 +634,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_51 = _this; _this setDir 75.9678; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10298.3,2087.39,0]; }; @@ -646,7 +646,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_52 = _this; _this setDir 75.9703; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10287.3,2084.65,0]; }; @@ -658,7 +658,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_53 = _this; _this setDir 255.993; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [10331.5,2095.69,0]; }; @@ -670,7 +670,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_54 = _this; _this setDir 75.9375; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10342.9,2098.59,0]; }; @@ -682,7 +682,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_55 = _this; _this setDir 89.9098; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.19];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.19];}; }; _this setPos [10224.5,1778.98,0]; }; @@ -694,7 +694,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_56 = _this; _this setDir 89.9149; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.19];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.19];}; }; _this setPos [10241.7,1779.02,0]; }; @@ -706,7 +706,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_57 = _this; _this setDir 89.8509; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.19];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.19];}; }; _this setPos [10258.9,1779.04,0]; }; @@ -762,7 +762,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_62 = _this; _this setDir -270.189; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [10254.2,1779.13,0]; }; @@ -774,7 +774,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_63 = _this; _this setDir 185.938; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10207.3,1934.35,0]; }; @@ -786,7 +786,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_64 = _this; _this setDir 185.94; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [10208.5,1945.61,0]; }; @@ -798,7 +798,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_65 = _this; _this setDir 20.7185; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [10831.7,2655.71,0]; }; @@ -810,7 +810,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_66 = _this; _this setDir 20.7185; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [10836,2667.02,0]; }; @@ -822,7 +822,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_67 = _this; _this setDir 20.6669; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [10840.2,2678.31,0]; }; @@ -834,7 +834,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_68 = _this; _this setDir 20.692; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [10844.5,2689.61,0]; }; @@ -846,7 +846,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_69 = _this; _this setDir 20.68; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [10848.8,2700.91,0]; }; @@ -858,7 +858,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_70 = _this; _this setDir 65.7905; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [12671.4,3657.35,0]; }; @@ -870,7 +870,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_71 = _this; _this setDir 65.7771; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [12682.5,3662.32,0]; }; @@ -882,7 +882,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_72 = _this; _this setDir -1.726; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.91]; _this setvectordirandup [[-0.1,4,-0.055],[0,0,1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.91]; _this setvectordirandup [[-0.1,4,-0.055],[0,0,1]];}; }; _this setPos [13365.1,6200.56,0]; }; @@ -894,7 +894,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_73 = _this; _this setDir -1.83542; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.32];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.32];}; }; _this setPos [13366.3,6158.73,0]; }; @@ -906,7 +906,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_74 = _this; _this setDir -1.66878; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13370.2,6024.76,0]; }; @@ -918,7 +918,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_75 = _this; _this setDir -1.61082; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13367.8,6107.19,0]; }; @@ -930,7 +930,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_76 = _this; _this setDir -1.65283; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [13370.6,6010.2,0]; }; @@ -942,7 +942,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_77 = _this; _this setDir -1.72675; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.34];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.34];}; }; _this setPos [13365.5,6185.31,0]; }; @@ -954,7 +954,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_78 = _this; _this setDir -1.72828; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13367.1,6129.8,0]; }; @@ -966,7 +966,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_79 = _this; _this setDir -1.70484; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.31];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.31];}; }; _this setPos [13365.9,6170.78,0]; }; @@ -978,7 +978,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_80 = _this; _this setDir -1.66526; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.34];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.34];}; }; _this setPos [13366.7,6144.05,0]; }; @@ -990,7 +990,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_81 = _this; _this setDir -1.63602; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13367.4,6118.5,0]; }; @@ -1002,7 +1002,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_82 = _this; _this setDir -181.671; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [13371,5997.94,0]; }; @@ -1014,7 +1014,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_83 = _this; _this setDir -1.62039; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13369.7,6041.92,0]; }; @@ -1026,7 +1026,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_84 = _this; _this setDir -1.69969; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13368.8,6073.3,0]; }; @@ -1038,7 +1038,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_85 = _this; _this setDir 178.315; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [13371.3,5985.9,0]; }; @@ -1050,7 +1050,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_86 = _this; _this setDir -1.75524; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13369.2,6059.07,0]; }; @@ -1062,7 +1062,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_87 = _this; _this setDir -1.61497; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13368.1,6095.92,0]; }; @@ -1074,7 +1074,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_88 = _this; _this setDir 3.50865; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13369.8,5891.87,0]; }; @@ -1086,7 +1086,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_89 = _this; _this setDir -1.50273; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13372,5962.98,0]; }; @@ -1098,7 +1098,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_90 = _this; _this setDir 3.43258; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [13368.9,5877.37,0]; }; @@ -1110,7 +1110,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_91 = _this; _this setDir -176.595; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [13368.1,5865.12,0]; }; @@ -1122,7 +1122,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_92 = _this; _this setDir 3.56523; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13370.8,5909.01,0]; }; @@ -1134,7 +1134,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_93 = _this; _this setDir 0.541619; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13372.4,5940.43,0]; }; @@ -1146,7 +1146,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_94 = _this; _this setDir 183.507; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [13367.4,5853.06,0]; }; @@ -1158,7 +1158,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_95 = _this; _this setDir 3.31062; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13371.8,5926.17,0]; }; @@ -1170,7 +1170,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_96 = _this; _this setDir -1.42689; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13372.3,5951.67,0]; }; @@ -1182,7 +1182,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_97 = _this; _this setDir 3.50865; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [13366.7,5841.19,0]; }; @@ -1194,7 +1194,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_98 = _this; _this setDir -176.403; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [13365.9,5828.98,0]; }; @@ -1206,7 +1206,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_99 = _this; _this setDir 183.452; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [13365.2,5816.93,0]; }; @@ -1218,7 +1218,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_100 = _this; _this setDir 3.65769; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13364.5,5805.36,0]; }; @@ -1230,7 +1230,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_101 = _this; _this setDir 3.46276; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13362.4,5771.5,0]; }; @@ -1242,7 +1242,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_102 = _this; _this setDir 3.53349; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13361.6,5757.31,0]; }; @@ -1254,7 +1254,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_103 = _this; _this setDir 3.46518; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13363.8,5794.07,0]; }; @@ -1266,7 +1266,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_104 = _this; _this setDir 3.4403; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13360,5731.86,0]; }; @@ -1278,7 +1278,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_105 = _this; _this setDir 3.46518; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13360.7,5743.12,0]; }; @@ -1290,7 +1290,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_106 = _this; _this setDir 3.46276; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13358.6,5709.3,0]; }; @@ -1302,7 +1302,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_107 = _this; _this setDir 3.50071; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13359.3,5720.58,0]; }; @@ -1314,7 +1314,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_108 = _this; _this setDir 183.417; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [13357.9,5697.53,0]; }; @@ -1326,7 +1326,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_109 = _this; _this setDir 2.9396; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [13357.2,5685.63,0]; }; @@ -1338,7 +1338,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_110 = _this; _this setDir -179.362; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [13356.8,5673.43,0]; }; @@ -1350,7 +1350,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_111 = _this; _this setDir -1.61742; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13368.4,6084.61,0]; }; @@ -1362,7 +1362,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_112 = _this; _this setDir -1.46178; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13371.7,5974.28,0]; }; @@ -1374,7 +1374,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_113 = _this; _this setDir 3.48919; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [13363.1,5782.79,0]; }; @@ -1386,7 +1386,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_114 = _this; _this setDir -17.1187; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21];}; }; _this setPos [13127.1,7142.86,0]; }; @@ -1398,7 +1398,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_115 = _this; _this setDir -17.1947; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13131.4,7129.02,0]; }; @@ -1410,7 +1410,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_116 = _this; _this setDir -197.223; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13135,7117.26,0]; }; @@ -1422,7 +1422,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_117 = _this; _this setDir -17.0611; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21];}; }; _this setPos [13122.1,7159.27,0]; }; @@ -1434,7 +1434,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_118 = _this; _this setDir 162.88; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13138.6,7105.71,0]; }; @@ -1446,7 +1446,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_119 = _this; _this setDir -17.1187; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13142.1,7094.34,0]; }; @@ -1458,7 +1458,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_120 = _this; _this setDir -197.03; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13145.7,7082.65,0]; }; @@ -1470,7 +1470,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_121 = _this; _this setDir 162.824; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13149.2,7071.12,0]; }; @@ -1482,7 +1482,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_122 = _this; _this setDir -16.9696; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21];}; }; _this setPos [13152.6,7060.03,0]; }; @@ -1494,7 +1494,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_123 = _this; _this setDir -17.1621; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21];}; }; _this setPos [13155.9,7049.21,0]; }; @@ -1506,7 +1506,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_124 = _this; _this setDir -17.1381; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21];}; }; _this setPos [13159.3,7038.42,0]; }; @@ -1518,7 +1518,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_125 = _this; _this setDir -17.1601; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21];}; }; _this setPos [13151.5,7110.7,0]; }; @@ -1530,7 +1530,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_126 = _this; _this setDir -17.1737; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13155.7,7096.79,0]; }; @@ -1542,7 +1542,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_127 = _this; _this setDir -17.1704; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13159.3,7085.25,0]; }; @@ -1554,7 +1554,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_128 = _this; _this setDir -17.1955; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13162.9,7073.7,0]; }; @@ -1566,7 +1566,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_129 = _this; _this setDir -17.1439; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13166.4,7062.17,0]; }; @@ -1578,7 +1578,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_130 = _this; _this setDir -17.1318; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13248.4,6766.7,0]; }; @@ -1590,7 +1590,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_131 = _this; _this setDir 8.72928; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21];}; }; _this setPos [12908.6,9963.84,0]; }; @@ -1602,7 +1602,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_132 = _this; _this setDir 8.81977; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [12906.9,9952.43,0]; }; @@ -1614,7 +1614,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_133 = _this; _this setDir 19.0526; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [12999,10218,0]; }; @@ -1626,7 +1626,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_134 = _this; _this setDir 19.0979; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; _this setPos [13022.1,10284.6,0]; }; @@ -1638,7 +1638,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_135 = _this; _this setDir 19.0436; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; _this setPos [12991.2,10195.5,0]; }; @@ -1650,7 +1650,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_136 = _this; _this setDir 19.1208; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; _this setPos [13018.4,10273.9,0]; }; @@ -1662,7 +1662,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_137 = _this; _this setDir 19.1883; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; _this setPos [13025.8,10295.3,0]; }; @@ -1674,7 +1674,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_138 = _this; _this setDir 19.1417; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; _this setPos [13006.7,10240.4,0]; }; @@ -1686,7 +1686,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_139 = _this; _this setDir 19.0537; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [12987.4,10184.5,0]; }; @@ -1698,7 +1698,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_140 = _this; _this setDir 19.1331; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13003,10229.4,0]; }; @@ -1710,7 +1710,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_141 = _this; _this setDir 199.046; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13010.6,10251.4,0]; }; @@ -1722,7 +1722,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_142 = _this; _this setDir 199.109; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13014.5,10262.8,0]; }; @@ -1734,7 +1734,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_143 = _this; _this setDir 19.1871; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [12995.1,10206.6,0]; }; @@ -1746,7 +1746,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_144 = _this; _this setDir 19.1883; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; _this setPos [13029.5,10306,0]; }; @@ -1758,7 +1758,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_145 = _this; _this setDir 379.168; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16];}; }; _this setPos [13033.4,10317.1,0]; }; @@ -1770,7 +1770,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_146 = _this; _this setDir 199.036; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; _this setPos [13114,10507.9,0]; }; @@ -1782,7 +1782,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_147 = _this; _this setDir 199.081; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; _this setPos [13090.9,10441.3,0]; }; @@ -1794,7 +1794,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_148 = _this; _this setDir 199.2; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; _this setPos [13121.8,10530.4,0]; }; @@ -1806,7 +1806,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_149 = _this; _this setDir 199.104; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; _this setPos [13094.6,10452,0]; }; @@ -1818,7 +1818,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_150 = _this; _this setDir 199.011; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.22];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.22];}; }; _this setPos [13087.2,10430.6,0]; }; @@ -1830,7 +1830,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_151 = _this; _this setDir 199.125; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.205];}; }; _this setPos [13106.2,10485.5,0]; }; @@ -1842,7 +1842,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_152 = _this; _this setDir 199.015; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; _this setPos [13125.6,10541.4,0]; }; @@ -1854,7 +1854,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_153 = _this; _this setDir 199.117; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; _this setPos [13110,10496.5,0]; }; @@ -1866,7 +1866,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_154 = _this; _this setDir 379.029; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; _this setPos [13102.4,10474.5,0]; }; @@ -1878,7 +1878,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_155 = _this; _this setDir 379.092; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; _this setPos [13098.5,10463.1,0]; }; @@ -1890,7 +1890,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_156 = _this; _this setDir 199.171; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; _this setPos [13117.9,10519.3,0]; }; @@ -1902,7 +1902,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_157 = _this; _this setDir 198.96; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.22];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.22];}; }; _this setPos [13083.5,10419.9,0]; }; @@ -1914,7 +1914,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_158 = _this; _this setDir 559.152; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; _this setPos [13079.7,10408.8,0]; }; @@ -1926,7 +1926,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_159 = _this; _this setDir 19.1541; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; _this setPos [13102.7,10503,0]; }; @@ -1938,7 +1938,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_160 = _this; _this setDir 19.115; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.18];}; }; _this setPos [13106.6,10514.4,0]; }; @@ -1962,7 +1962,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_162 = _this; _this setDir 40.6864; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21 ];}; }; _this setPos [6548.56,2651.34,0]; }; */ @@ -1976,7 +1976,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_163 = _this; _this setDir 40.6281; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16 ];}; }; _this setPos [6533.65,2633.95,0]; }; */ @@ -1989,7 +1989,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_164 = _this; _this setDir 40.6412; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16 ];}; }; _this setPos [6517.91,2615.62,0]; }; @@ -2001,7 +2001,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_165 = _this; _this setDir 220.639; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16 ];}; }; _this setPos [6525.69,2624.66,0]; }; @@ -2014,7 +2014,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_166 = _this; _this setDir 40.6699; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21 ];}; }; _this setPos [6541.2,2642.78,0]; }; */ @@ -2027,7 +2027,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_167 = _this; _this setDir 40.7534; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2 ];}; }; _this setPos [6508.3,2604.47,0]; }; @@ -2040,7 +2040,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_168 = _this; _this setDir 40.72; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21 ];}; }; _this setPos [6546.45,2627.71,0]; }; */ @@ -2053,7 +2053,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_169 = _this; _this setDir 40.5307; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21 ];}; }; _this setPos [6539.11,2619.12,0]; }; @@ -2066,7 +2066,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_170 = _this; _this setDir 40.6135; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21 ];}; }; _this setPos [6555.74,2638.48,0]; }; */ @@ -2080,7 +2080,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_171 = _this; _this setDir 40.7265; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21 ];}; }; _this setPos [6566.93,2651.51,0]; }; */ @@ -2093,7 +2093,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_172 = _this; _this setDir 40.7015; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.21 ];}; }; _this setPos [6533.01,2587.37,0]; }; @@ -2116,7 +2116,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_174 = _this; _this setDir 40.6412; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16 ];}; }; _this setPos [6498.84,2593.43,0]; }; @@ -2128,7 +2128,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_175 = _this; _this setDir 40.6412; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16 ];}; }; _this setPos [6490.97,2584.29,0]; }; @@ -2140,7 +2140,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_176 = _this; _this setDir -39.1664; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2 ];}; }; _this setPos [6975.78,2709.83,0]; }; @@ -2163,7 +2163,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_178 = _this; _this setDir 320.932; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [6982.92,2701.08,0]; }; @@ -2175,7 +2175,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_179 = _this; _this setDir -38.9921; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2 ];}; }; _this setPos [6968.65,2718.6,0]; }; @@ -2187,7 +2187,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_180 = _this; _this setDir -39.0062; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.144];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.144];}; }; _this setPos [6977.53,2715.06,0]; }; @@ -2199,7 +2199,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_181 = _this; _this setDir -39.1552; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.144];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.144];}; }; _this setPos [6992.76,2696.31,0]; }; @@ -2211,7 +2211,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_182 = _this; _this setDir -39.2022; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.144];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.144];}; }; _this setPos [6985.15,2705.68,0]; }; @@ -2223,7 +2223,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_183 = _this; _this setDir -39.1852; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.147];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.147];}; }; _this setPos [6969.91,2724.43,0]; }; @@ -2235,7 +2235,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_184 = _this; _this setDir 52.0169; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.173];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.173];}; }; _this setPos [6940.98,2395.26,0]; }; @@ -2247,7 +2247,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_185 = _this; _this setDir 52.0778; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.173];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.173];}; }; _this setPos [6954.5,2405.83,0]; }; @@ -2259,7 +2259,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_186 = _this; _this setDir -127.844; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [6950.61,2402.79,0]; }; @@ -2271,7 +2271,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_187 = _this; _this setDir 52.2078; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [6955.99,2406.99,0]; }; @@ -2283,7 +2283,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_188 = _this; _this setDir 232.525; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [6959.6,2409.72,0]; }; @@ -2295,7 +2295,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_189 = _this; _this setDir 52.0169; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.173];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.173];}; }; _this setPos [6927.51,2384.74,0]; }; @@ -2307,7 +2307,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_190 = _this; _this setDir 51.9726; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [6943.61,2397.3,0]; }; @@ -2319,7 +2319,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_191 = _this; _this setDir 52.2078; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [6938.71,2393.39,0]; }; @@ -2342,7 +2342,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_193 = _this; _this setDir 40.4888; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16 ];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.16 ];}; }; _this setPos [6531.57,2610.31,0]; }; @@ -2354,7 +2354,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_194 = _this; _this setDir 232.087; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.147];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.147];}; }; _this setPos [6939.54,2388.32,0]; }; @@ -2366,7 +2366,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_195 = _this; _this setDir 17.7007; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.155];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.155];}; }; _this setPos [3623.7,2171.53,0]; }; @@ -2378,7 +2378,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_196 = _this; _this setDir 17.7007; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.155];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.155];}; }; _this setPos [3627.4,2183.16,0]; }; @@ -2390,7 +2390,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_197 = _this; _this setDir 17.7007; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.155];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.155];}; }; _this setPos [3631.05,2194.64,0]; }; @@ -2402,7 +2402,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_198 = _this; _this setDir 17.7007; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.155];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.155];}; }; _this setPos [3634.73,2206.28,0]; }; @@ -2414,7 +2414,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_199 = _this; _this setDir 110.911; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 1.3 ]; _this setvectordirandup [[-1,-1,0],[-5,0,-1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 1.3 ]; _this setvectordirandup [[-1,-1,0],[-5,0,-1]];}; }; _this setPos [7102.12,3174.18,0]; }; @@ -2426,7 +2426,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_200 = _this; _this setDir 185; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 1.2 ]; _this setvectordirandup [[0,0.1,0],[-100,0,0]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 1.2 ]; _this setvectordirandup [[0,0.1,0],[-100,0,0]];}; }; _this setPos [7107.71,3170.25,0]; }; @@ -2438,7 +2438,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_201 = _this; _this setDir 1.35996; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.6 ]; _this setvectordirandup [[-0.8,-0.9,0.3],[0,0.9,0.9]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.6 ]; _this setvectordirandup [[-0.8,-0.9,0.3],[0,0.9,0.9]];}; }; _this setPos [7110.45,3178.59,0]; }; @@ -2450,7 +2450,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_202 = _this; _this setDir 267.443; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7157.28,3185.96,0]; }; @@ -2462,7 +2462,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_203 = _this; _this setDir -151.81; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.3];}; }; _this setPos [7132.42,3165.21,0]; }; @@ -2474,7 +2474,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_204 = _this; _this setDir -94.937; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7246.22,3214.1,0]; }; @@ -2486,7 +2486,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_205 = _this; _this setDir -103.959; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.14];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.14];}; }; _this setPos [7347.18,3252.48,0]; }; @@ -2498,7 +2498,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_206 = _this; _this setDir 76.1935; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.45];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.45];}; }; _this setPos [7361.46,3256.02,0]; }; @@ -2510,7 +2510,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_207 = _this; _this setDir 76.2594; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.395]; _this setvectordirandup [[1,0.24,0.023],[0,0,0.1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.395]; _this setvectordirandup [[1,0.24,0.023],[0,0,0.1]];}; }; _this setPos [7391.89,3263.52,0]; }; @@ -2522,7 +2522,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_208 = _this; _this setDir 79.0538; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3];}; }; _this setPos [7426.81,3271.69,0]; }; @@ -2534,7 +2534,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_209 = _this; _this setDir 86.4748; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7565.06,3286.06,0]; }; @@ -2546,7 +2546,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_210 = _this; _this setDir 86.3477; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7533.75,3284.17,0]; }; @@ -2558,7 +2558,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_211 = _this; _this setDir 71.8477; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.85];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.85];}; }; _this setPos [7266.51,3220.54,0]; }; @@ -2570,7 +2570,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_212 = _this; _this setDir 66.2679; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.72]; _this setvectordirandup [[-1,-0.444,0.016],[0,0,0.1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.72]; _this setvectordirandup [[-1,-0.444,0.016],[0,0,0.1]];}; }; _this setPos [7300.95,3235.73,0]; }; @@ -2582,7 +2582,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_213 = _this; _this setDir 69.3402; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [7324.47,3245.84,0]; }; @@ -2594,7 +2594,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_214 = _this; _this setDir 86.5142; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7621.82,3289.54,0]; }; @@ -2606,7 +2606,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_215 = _this; _this setDir 86.332; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7590.48,3287.64,0]; }; @@ -2618,7 +2618,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_216 = _this; _this setDir 96.9888; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 1]; _this setvectordirandup [[-1,0,0],[5,-5,-1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 1]; _this setvectordirandup [[-1,0,0],[5,-5,-1]];}; }; _this setPos [7123.26,3159.89,0]; }; @@ -2630,7 +2630,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_217 = _this; _this setDir 40.9211; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1]; _this setvectordirandup [[-0.9,-0.9,0.02],[0,0.005,0.1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1]; _this setvectordirandup [[-0.9,-0.9,0.02],[0,0.005,0.1]];}; }; _this setPos [7234.76,3208.31,0]; }; @@ -2642,7 +2642,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_218 = _this; _this setDir 66.2006; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.3]; _this setvectordirandup [[1,0.44,-0.015],[0,0,0.1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.3]; _this setvectordirandup [[1,0.44,-0.015],[0,0,0.1]];}; }; _this setPos [7314,3241.5,0]; }; @@ -2654,7 +2654,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_219 = _this; _this setDir 114.526; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 1.2 ]; _this setvectordirandup [[-5.8,-0.9,0.2],[0,-0.9,0.2]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 1.2 ]; _this setvectordirandup [[-5.8,-0.9,0.2],[0,-0.9,0.2]];}; }; _this setPos [7116.92,3184.8,0]; }; @@ -2677,7 +2677,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_221 = _this; _this setDir -96.6494; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7223.67,3201.53,0]; }; @@ -2689,7 +2689,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_222 = _this; _this setDir 76.1952; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.9]; _this setvectordirandup [[1,0.24,0.023],[0,0,0.1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.9]; _this setvectordirandup [[1,0.24,0.023],[0,0,0.1]];}; }; _this setPos [7403.32,3266.33,0]; }; @@ -2701,7 +2701,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_223 = _this; _this setDir 86.4514; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7547.91,3285.01,0]; }; @@ -2713,7 +2713,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_224 = _this; _this setDir -93.5671; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7579.27,3286.91,0]; }; @@ -2725,7 +2725,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_225 = _this; _this setDir 256.565; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3]; _this setvectordirandup [[-1,-0.234,-0.003],[0,0,0.1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.3]; _this setvectordirandup [[-1,-0.234,-0.003],[0,0,0.1]];}; }; _this setPos [7414.9,3269.16,0]; }; @@ -2737,7 +2737,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_226 = _this; _this setDir 76.1244; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.2];}; }; _this setPos [7378.12,3260.13,0]; }; @@ -2749,7 +2749,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_227 = _this; _this setDir 81.1056; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7438.25,3273.66,0]; }; @@ -2761,7 +2761,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_228 = _this; _this setDir 13.7257; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7169.23,3180.84,0]; }; @@ -2773,7 +2773,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_229 = _this; _this setDir 61.8182; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7127.4,3182.17,0]; }; @@ -2785,7 +2785,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_230 = _this; _this setDir 30; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.4]; _this setvectordirandup [[0.1,0.04,0],[0,0.1,0.5]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.4]; _this setvectordirandup [[0.1,0.04,0],[0,0.1,0.5]];}; }; _this setPos [7256.01,3216.84,0]; }; @@ -2797,7 +2797,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_231 = _this; _this setDir 62.2029; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.9];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.9];}; }; _this setPos [7276.77,3224.81,0]; }; @@ -2809,7 +2809,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_232 = _this; _this setDir 69.6055; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.93]; _this setvectordirandup [[1,0.44,0.016],[0,0,0.1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.93]; _this setvectordirandup [[1,0.44,0.016],[0,0,0.1]];}; }; _this setPos [7287.65,3229.83,0]; }; @@ -2821,7 +2821,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_233 = _this; _this setDir 81.0941; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7449.4,3275.38,0]; }; @@ -2833,7 +2833,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_234 = _this; _this setDir 81.4058; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7460.57,3277.09,0]; }; @@ -2845,7 +2845,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_235 = _this; _this setDir 81.4323; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7471.73,3278.79,0]; }; @@ -2857,7 +2857,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_236 = _this; _this setDir 82.6699; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7482.89,3280.38,0]; }; @@ -2869,7 +2869,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_237 = _this; _this setDir 84.9623; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7494.1,3281.6,0]; }; @@ -2881,7 +2881,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_238 = _this; _this setDir 86.5176; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7522.48,3283.45,0]; }; @@ -2893,7 +2893,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_239 = _this; _this setDir 86.4458; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.18];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.18];}; }; _this setPos [7701.24,3294.42,0]; }; @@ -2905,7 +2905,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_240 = _this; _this setDir 86.5497; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.24]; _this setvectordirandup [[1,0.06,-0.001],[0,0,0.1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.24]; _this setvectordirandup [[1,0.06,-0.001],[0,0,0.1]];}; }; _this setPos [7669.9,3292.46,0]; }; @@ -2917,7 +2917,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_241 = _this; _this setDir 86.4875; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.19];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.19];}; }; _this setPos [7726.66,3295.97,0]; }; @@ -2929,7 +2929,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_242 = _this; _this setDir 86.4589; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.2];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.2];}; }; _this setPos [7684.1,3293.35,0]; }; @@ -2941,7 +2941,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_243 = _this; _this setDir -93.4031; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.18];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.18];}; }; _this setPos [7715.44,3295.24,0]; }; @@ -2953,7 +2953,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_244 = _this; _this setDir 86.6897; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7636.04,3290.42,0]; }; @@ -2965,7 +2965,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_245 = _this; _this setDir 86.4755; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7647.33,3291.12,0]; }; @@ -2977,7 +2977,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_246 = _this; _this setDir 86.4554; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.29]; _this setvectordirandup [[1,0.064,-0.001],[0,0,0.1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.29]; _this setvectordirandup [[1,0.064,-0.001],[0,0,0.1]];}; }; _this setPos [7658.61,3291.72,0]; }; @@ -2989,7 +2989,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_247 = _this; _this setDir -132.027; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.3];}; }; _this setPos [7121.97,3181.71,0]; }; @@ -3001,7 +3001,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_248 = _this; _this setDir -50.3757; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1]; _this setvectordirandup [[-1,0.8,0],[-0.1,0,1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1]; _this setvectordirandup [[-1,0.8,0],[-0.1,0,1]];}; }; _this setPos [7160.86,3179.13,0]; }; @@ -3013,7 +3013,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_249 = _this; _this setDir 71.8785; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.3];}; }; _this setPos [7141.34,3172.62,0]; }; @@ -3025,7 +3025,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_250 = _this; _this setDir 37.7236; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.3];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.3];}; }; _this setPos [7151.17,3178.25,0]; }; @@ -3037,7 +3037,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_251 = _this; _this setDir 18.081; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7190.67,3185.98,0]; }; @@ -3049,7 +3049,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_252 = _this; _this setDir 56.5019; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7112.81,3160.71,0]; }; @@ -3061,7 +3061,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_253 = _this; _this setDir 137.568; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.6 ]; _this setvectordirandup [[-1.8,3,0],[0,-0.1,0.1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.6 ]; _this setvectordirandup [[-1.8,3,0],[0,-0.1,0.1]];}; }; _this setPos [7116.03,3166.55,0]; }; @@ -3073,7 +3073,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_254 = _this; _this setDir 29.0014; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.6 ]; _this setvectordirandup [[0.1,-0.9,0.1],[0,-5.2,0.1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.6 ]; _this setvectordirandup [[0.1,-0.9,0.1],[0,-5.2,0.1]];}; }; _this setPos [7110.4,3169.71,0]; }; @@ -3085,7 +3085,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_255 = _this; _this setDir 138.884; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.3 ]; _this setvectordirandup [[0.5,0.1,0],[100,0,0]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.3 ]; _this setvectordirandup [[0.5,0.1,0],[100,0,0]];}; }; _this setPos [7106,3162.41,0]; }; @@ -3108,7 +3108,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_257 = _this; _this setDir 94.6955; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7173.86,3187.55,0]; }; @@ -3120,7 +3120,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_258 = _this; _this setDir 80.1429; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7198.27,3191.93,0]; }; @@ -3132,7 +3132,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_259 = _this; _this setDir 130.869; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7183.31,3183.96,0]; }; @@ -3144,7 +3144,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_260 = _this; _this setDir 86.4346; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7508.28,3282.56,0]; }; @@ -3156,7 +3156,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_261 = _this; _this setDir 86.742; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.35];}; }; _this setPos [7604.7,3288.48,0]; }; @@ -3168,7 +3168,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_262 = _this; _this setDir 86.4998; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.208];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.208];}; }; _this setPos [7740.88,3296.84,0]; }; @@ -3180,7 +3180,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_263 = _this; _this setDir 87.9836; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.222];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.222];}; }; _this setPos [7758.04,3297.7,0]; }; @@ -3192,7 +3192,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_264 = _this; _this setDir 91.2598; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.225];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.225];}; }; _this setPos [7775.25,3297.81,0]; }; @@ -3204,7 +3204,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_265 = _this; _this setDir 91.6922; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.205];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 1.205];}; }; _this setPos [7792.42,3297.37,0]; }; @@ -3216,7 +3216,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_266 = _this; _this setDir -105.878; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.15];}; }; _this setPos [7335.53,3249.47,0]; }; @@ -3228,7 +3228,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_267 = _this; _this setDir -272.392; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.5];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.5];}; }; _this setPos [7259.51,3214.84,0]; }; @@ -3262,7 +3262,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_270 = _this; _this setDir 13.7257; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.6 ]; _this setvectordirandup [[0.3,-5.9,0.3],[-0.1,0.9,0.6]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.6 ]; _this setvectordirandup [[0.3,-5.9,0.3],[-0.1,0.9,0.6]];}; }; _this setPos [7118.34,3172.56,0]; }; @@ -3274,7 +3274,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_271 = _this; _this setDir 117.366; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.3]; _this setvectordirandup [[1,-0.3,0],[0,-0.15,0.1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.3]; _this setvectordirandup [[1,-0.3,0],[0,-0.15,0.1]];}; }; _this setPos [7123.31,3163.96,0]; }; @@ -3286,7 +3286,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_272 = _this; _this setDir -130.992; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7123.23,3169.97,0]; }; @@ -3298,7 +3298,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_273 = _this; _this setDir -50.3435; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.6 ]; _this setvectordirandup [[0.1,-5.9,0.3],[-0.5,0.9,0.6]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.6 ]; _this setvectordirandup [[0.1,-5.9,0.3],[-0.5,0.9,0.6]];}; }; _this setPos [7116.3,3177.32,0]; }; @@ -3310,7 +3310,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_274 = _this; _this setDir 70.3041; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7123.95,3175.53,0]; }; @@ -3322,7 +3322,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_275 = _this; _this setDir -169.665; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1]; _this setvectordirandup [[0,-1,-0.1],[0,-0.05,1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1]; _this setvectordirandup [[0,-1,-0.1],[0,-0.05,1]];}; }; _this setPos [7128.32,3168.8,0]; }; @@ -3334,7 +3334,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_276 = _this; _this setDir -69.0689; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7129.83,3177.81,0]; }; @@ -3346,7 +3346,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_277 = _this; _this setDir -123.337; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7134.06,3173.39,0]; }; @@ -3358,7 +3358,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_278 = _this; _this setDir -251.253; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1];}; }; _this setPos [7136.33,3180.78,0]; }; @@ -3370,7 +3370,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_279 = _this; _this setDir -92.7887; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.35]; _this setvectordirandup [[1,-0.2,0.25],[-5,2,1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.35]; _this setvectordirandup [[1,-0.2,0.25],[-5,2,1]];}; }; _this setPos [7109.97,3181.77,0]; }; @@ -3382,7 +3382,7 @@ _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_280 = _this; _this setDir 52.2078; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.31]; _this setvectordirandup [[-1,-0.8,-0.3],[0.1,0,1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)+ 0.31]; _this setvectordirandup [[-1,-0.8,-0.3],[0.1,0,1]];}; }; _this setPos [7162.27,3173.02,0]; }; @@ -3393,7 +3393,7 @@ if (true) then _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_281 = _this; - _this spawn { sleep 1;if (isServer) then {_this setvectordirandup [[-0.5,-1,-0.15],[0,0,1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setvectordirandup [[-0.5,-1,-0.15],[0,0,1]];}; }; _this setPos [7103.13,3168.99,0]; }; @@ -3404,7 +3404,7 @@ if (true) then _this setVariable ["", true]; // prevent network SV by loot/zeds spawner _vehicle_282 = _this; - _this spawn { sleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1]; _this setvectordirandup [[1,-1,0],[-15,0,-1]];}; }; + _this spawn { uisleep 1;if (isServer) then {_this setpos [(getpos _this select 0), (getpos _this select 1), (getpos _this select 2)- 0.1]; _this setvectordirandup [[1,-1,0],[-15,0,-1]];}; }; _this setPos [7156.41,3177.2,0]; }; processInitCommands; diff --git a/SQF/dayz_code/system/player_monitor.fsm b/SQF/dayz_code/system/player_monitor.fsm index 4a0c09f73..a92193699 100644 --- a/SQF/dayz_code/system/player_monitor.fsm +++ b/SQF/dayz_code/system/player_monitor.fsm @@ -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 diff --git a/SQF/dayz_code/system/player_spawn_2.sqf b/SQF/dayz_code/system/player_spawn_2.sqf index 7a3ae9781..b9f611dd3 100644 --- a/SQF/dayz_code/system/player_spawn_2.sqf +++ b/SQF/dayz_code/system/player_spawn_2.sqf @@ -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 { diff --git a/SQF/dayz_code/system/progress_monitor.sqf b/SQF/dayz_code/system/progress_monitor.sqf index 503bc3467..23cb1bcde 100644 --- a/SQF/dayz_code/system/progress_monitor.sqf +++ b/SQF/dayz_code/system/progress_monitor.sqf @@ -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..."]; }; diff --git a/SQF/dayz_code/system/scheduler/sched_medical.sqf b/SQF/dayz_code/system/scheduler/sched_medical.sqf index c4d31178c..4bf9d6110 100644 --- a/SQF/dayz_code/system/scheduler/sched_medical.sqf +++ b/SQF/dayz_code/system/scheduler/sched_medical.sqf @@ -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; }; }; diff --git a/SQF/dayz_code/system/scheduler/sched_planthint.sqf b/SQF/dayz_code/system/scheduler/sched_planthint.sqf index ab1eb57d9..bb39ccd96 100644 --- a/SQF/dayz_code/system/scheduler/sched_planthint.sqf +++ b/SQF/dayz_code/system/scheduler/sched_planthint.sqf @@ -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 diff --git a/SQF/dayz_code/traps/functions/setup.sqf b/SQF/dayz_code/traps/functions/setup.sqf index 721bb51f2..14ad1d57f 100644 --- a/SQF/dayz_code/traps/functions/setup.sqf +++ b/SQF/dayz_code/traps/functions/setup.sqf @@ -13,6 +13,6 @@ if (!isNull _trap) then { dayz_traps set [count dayz_traps, _trap]; }; - sleep 0.5; + uiSleep 0.5; }; }; diff --git a/SQF/dayz_code/util/Util.hpp b/SQF/dayz_code/util/Util.hpp index 265af8e66..6913a11e4 100644 --- a/SQF/dayz_code/util/Util.hpp +++ b/SQF/dayz_code/util/Util.hpp @@ -3,7 +3,7 @@ //Returns true if the current script is running in the unscheduled environment and otherwise false. //If true a script error is also produced however this can be ignored. -//#define Util_IsUncheduled() ([diag_frameNo, sleep 0.005, diag_frameNo] call { _this select 0 == _this select 2 }) +//#define Util_IsUncheduled() ([diag_frameNo, uiSleep 0.005, diag_frameNo] call { _this select 0 == _this select 2 }) /* Send public variables atomically without fear of race conditions. The previous value of the variable is restored automatically after transmission. For example: diff --git a/SQF/dayz_server/eventHandlers/server_sendToClient.sqf b/SQF/dayz_server/eventHandlers/server_sendToClient.sqf index d19807be5..4cff0061e 100644 --- a/SQF/dayz_server/eventHandlers/server_sendToClient.sqf +++ b/SQF/dayz_server/eventHandlers/server_sendToClient.sqf @@ -47,8 +47,8 @@ switch (_variable) do { }; case "GutBody": { - PVCDZ_obj_GutBody = _arraytosend; - _owner publicVariableClient "PVCDZ_obj_GutBody"; + PVCDZE_obj_GutBody = _arraytosend; + _owner publicVariableClient "PVCDZE_obj_GutBody"; }; case "HideBody": { @@ -67,8 +67,8 @@ switch (_variable) do { }; case "Bleed": { - usecBleed = _arraytosend; - _owner publicVariableClient "usecBleed"; + PVDZ_hlt_Bleed = _arraytosend; + _owner publicVariableClient "PVDZ_hlt_Bleed"; }; case "PVDZE_plr_SetDate": {