From 566bb507f200acb63dd47914b32f8346db97911d Mon Sep 17 00:00:00 2001 From: Wyqer Date: Mon, 5 Aug 2019 19:31:45 +0200 Subject: [PATCH] Changed indentation --- .../scripts/server/base/huron_manager.sqf | 92 +++++++++---------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/Missionframework/scripts/server/base/huron_manager.sqf b/Missionframework/scripts/server/base/huron_manager.sqf index cfbbc638..c3c75afe 100644 --- a/Missionframework/scripts/server/base/huron_manager.sqf +++ b/Missionframework/scripts/server/base/huron_manager.sqf @@ -1,61 +1,61 @@ -waitUntil { !isNil "GRLIB_all_fobs" }; -waitUntil { !isNil "save_is_loaded" }; +waitUntil {!isNil "GRLIB_all_fobs"}; +waitUntil {!isNil "save_is_loaded"}; firstloop = true; huron = objNull; _savedhuron = objNull; -while { true } do { +while {true} do { - { - if ( typeof _x == huron_typename ) then { - _savedhuron = _x; - }; - } foreach vehicles; + { + if (typeof _x == huron_typename) then { + _savedhuron = _x; + }; + } foreach vehicles; - if ( firstloop && !isNull _savedhuron ) then { - huron = _savedhuron; - } else { - huron = huron_typename createVehicle [(getposATL huronspawn) select 0, (getposATL huronspawn) select 1, ((getposATL huronspawn) select 2) + 0.2]; - huron enableSimulationGlobal false; - huron allowdamage false; - huron setDir (getDir huronspawn); - huron setPosATL (getposATL huronspawn); - }; + if (firstloop && !isNull _savedhuron) then { + huron = _savedhuron; + } else { + huron = huron_typename createVehicle [(getposATL huronspawn) select 0, (getposATL huronspawn) select 1, ((getposATL huronspawn) select 2) + 0.2]; + huron enableSimulationGlobal false; + huron allowdamage false; + huron setDir (getDir huronspawn); + huron setPosATL (getposATL huronspawn); + }; - firstloop = false; + firstloop = false; - huron AnimateDoor ["Door_rear_source", 1, true]; - publicVariable "huron"; - if(KP_liberation_clear_cargo) then { - clearWeaponCargoGlobal huron; - clearMagazineCargoGlobal huron; - clearItemCargoGlobal huron; - clearBackpackCargoGlobal huron; - }; - huron setDamage 0; - sleep 0.5; - huron enableSimulationGlobal true; - huron setDamage 0; - huron setVariable ["ace_medical_medicClass", 1, true]; - sleep 1.5; + huron AnimateDoor ["Door_rear_source", 1, true]; + publicVariable "huron"; + if(KP_liberation_clear_cargo) then { + clearWeaponCargoGlobal huron; + clearMagazineCargoGlobal huron; + clearItemCargoGlobal huron; + clearBackpackCargoGlobal huron; + }; + huron setDamage 0; + sleep 0.5; + huron enableSimulationGlobal true; + huron setDamage 0; + huron setVariable ["ace_medical_medicClass", 1, true]; + sleep 1.5; - huron setDamage 0; - huron allowdamage true; + huron setDamage 0; + huron allowdamage true; - if ( alive huron ) then { + if (alive huron) then { - waitUntil { - sleep 1; - !alive huron; - }; - stats_spartan_respawns = stats_spartan_respawns + 1; - sleep 15; + waitUntil { + sleep 1; + !alive huron; + }; + stats_spartan_respawns = stats_spartan_respawns + 1; + sleep 15; - }; + }; - if (huron distance startbase < 500) then { - deletevehicle huron; - }; - sleep 0.25; + if (huron distance startbase < 500) then { + deletevehicle huron; + }; + sleep 0.25; };