Changed indentation

This commit is contained in:
Wyqer 2019-08-05 19:31:45 +02:00
parent 35158ec13a
commit 566bb507f2
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
1 changed files with 46 additions and 46 deletions

View File

@ -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;
};