Code:
pic = pic + [""]; hacks = hacks + ["======== Bike Spawner========","scripts\VehicleOwn.sqf","SQF"];
hint "Generating Motorcycle listings.";
_kindOf = ["Motorcycle"];
_filter = ["BIS_Steerable_Parachute"];
_filter1 = ["ParachuteBase"];
_cfgvehicles = configFile >> "cfgVehicles";
for "_i" from 0 to (count _cfgvehicles)-1 do {
_vehicle = _cfgvehicles select _i;
if (isClass _vehicle) then {
_veh_type = configName(_vehicle);
if ((getNumber(_vehicle >> "scope")==2)and(getText(_vehicle >> "picture")!="")and(KINDOF_ARRAY(_veh_type,_kindOf))and!(KINDOF_ARRAY(_veh_type,_filter))and!(KINDOF_ARRAY(_veh_type,_filter1))) then {
pic = pic + [format["%1",getText(_vehicle >> "picture")]];
hacks = hacks + [format["%1",_veh_type],"scripts\!spawnvehicle2.sqf","SQF"];
};
};
};
pic = pic + [""]; hacks = hacks + ["======== Boat Spawner ========","scripts\VehicleOwn.sqf","SQF"];
hint "Generating Boat listings.";
_kindOf = ["Ship"];
_filter = ["BIS_Steerable_Parachute"];
_filter1 = ["ParachuteBase"];
_cfgvehicles = configFile >> "cfgVehicles";
for "_i" from 0 to (count _cfgvehicles)-1 do {
_vehicle = _cfgvehicles select _i;
if (isClass _vehicle) then {
_veh_type = configName(_vehicle);
if ((getNumber(_vehicle >> "scope")==2)and(getText(_vehicle >> "picture")!="")and(KINDOF_ARRAY(_veh_type,_kindOf))and!(KINDOF_ARRAY(_veh_type,_filter))and!(KINDOF_ARRAY(_veh_type,_filter1))) then {
pic = pic + [format["%1",getText(_vehicle >> "picture")]];
hacks = hacks + [format["%1",_veh_type],"scripts\!spawnvehicle2.sqf","SQF"];
};
};
};
pic = pic + [""]; hacks = hacks + ["======== Air Vehicle Spawner ========","scripts\VehicleOwn.sqf","SQF"];
hint "Generating Vehicle listings.";
_kindOf = ["air"];
_filter = ["BIS_Steerable_Parachute"];
_filter1 = ["ParachuteBase"];
_cfgvehicles = configFile >> "cfgVehicles";
for "_i" from 0 to (count _cfgvehicles)-1 do {
_vehicle = _cfgvehicles select _i;
if (isClass _vehicle) then {
_veh_type = configName(_vehicle);
if ((getNumber(_vehicle >> "scope")==2)and(getText(_vehicle >> "picture")!="")and(KINDOF_ARRAY(_veh_type,_kindOf))and!(KINDOF_ARRAY(_veh_type,_filter))and!(KINDOF_ARRAY(_veh_type,_filter1))) then {
pic = pic + [format["%1",getText(_vehicle >> "picture")]];
hacks = hacks + [format["%1",_veh_type],"scripts\!spawnvehicle2.sqf","SQF"];
};
};
};
progressLoadingScreen 0.4;
pic = pic + [""]; hacks = hacks + ["======== Tank Vehicle Spawner ========","scripts\VehicleOwn.sqf","SQF"];
hint "Generating Vehicle listings.";
_kindOf = ["Tank"];
_filter = ["BIS_Steerable_Parachute"];
_filter1 = ["ParachuteBase"];
_cfgvehicles = configFile >> "cfgVehicles";
for "_i" from 0 to (count _cfgvehicles)-1 do {
_vehicle = _cfgvehicles select _i;
if (isClass _vehicle) then {
_veh_type = configName(_vehicle);
if ((getNumber(_vehicle >> "scope")==2)and(getText(_vehicle >> "picture")!="")and(KINDOF_ARRAY(_veh_type,_kindOf))and!(KINDOF_ARRAY(_veh_type,_filter))and!(KINDOF_ARRAY(_veh_type,_filter1))) then {
pic = pic + [format["%1",getText(_vehicle >> "picture")]];
hacks = hacks + [format["%1",_veh_type],"scripts\!spawnvehicle2.sqf","SQF"];
};
};
};
progressLoadingScreen 0.8;
pic = pic + [""]; hacks = hacks + ["======== Car Vehicle Spawner ========","scripts\VehicleOwn.sqf","SQF"];
hint "Generating Vehicle listings.";
_kindOf = ["Car"];
_filter = ["BIS_Steerable_Parachute"];
_filter1 = ["ParachuteBase"];
_cfgvehicles = configFile >> "cfgVehicles";
for "_i" from 0 to (count _cfgvehicles)-1 do {
_vehicle = _cfgvehicles select _i;
if (isClass _vehicle) then {
_veh_type = configName(_vehicle);
if ((getNumber(_vehicle >> "scope")==2)and(getText(_vehicle >> "picture")!="")and(KINDOF_ARRAY(_veh_type,_kindOf))and!(KINDOF_ARRAY(_veh_type,_filter))and!(KINDOF_ARRAY(_veh_type,_filter1))) then {
pic = pic + [format["%1",getText(_vehicle >> "picture")]];
hacks = hacks + [format["%1",_veh_type],"scripts\!spawnvehicle2.sqf","SQF"];
};
};
};
progressLoadingScreen 0.9;