Config-Extraction-Tools/testConfig.Altis/OldVersions/vehiclesPriceList.sqf
2017-08-04 21:32:07 -04:00

74 lines
2.1 KiB
Plaintext

/*
Class Name Extraction Tool
By GhostriderDbD
For Arma 3
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
http://creativecommons.org/licenses/by-nc-sa/4.0/
*/
_vehiclesBase = [];
#include "vehiclesBase.sqf"
_veh = (configfile >> "CfgVehicles") call BIS_fnc_getCfgSubClasses;
_index = 0;
_cars = [];
_boats = [];
_air = [];
_exile = 0;
_clipboard = "";
{
if (_x isKindOf "Car" && !(_x in _vehiclesBase)) then
{
_cars pushback _x;
//diag_log format["%1",_x];
//_clipboard = _clipboard + format['"%1",%2',_x,endl];
};
if (_x isKindOf "Air" && !(_x in _vehiclesBase)) then
{
_cars pushback _x;
//diag_log format["%1",_x];
//_clipboard = _clipboard + format['"%1",%2',_x,endl];
};
if (_x isKindOf "Boat" && !(_x in _vehiclesBase)) then
{
_air pushback _x;
//diag_log format["%1",_x];
//_clipboard = _clipboard + format['"%1",%2',_x,endl];
};
}forEach _veh;
_clipboard = _clipboard + format["// Cars%1%2",endl,endl,endl];
{
if (DBD_priceConfiguration == "Exile") then
{
_clipboard = _clipboard + format["class %1 { quality = 3; price = 50; };%2",_x,endl];
};
if (DBD_priceConfiguration == "Epoch") then
{
_clipboard = _clipboard + format["class %1 { price = 50; };%2",_x,endl];
};
}forEach _cars;
_clipboard = _clipboard + format["%1// Boats%2%3",endl,endl,endl];
{
if (DBD_priceConfiguration == "Exile") then
{
_clipboard = _clipboard + format["class %1 { quality = 3; price = 50; };%2",_x,endl];
};
if (DBD_priceConfiguration == "Epoch") then
{
_clipboard = _clipboard + format["class %1 { price = 50000; };%2",_x,endl];
};
}forEach _boats;
_clipboard = _clipboard + format["%1// Air%2%3",endl,endl,endl];
{
if (DBD_priceConfiguration == "Exile") then
{
_clipboard = _clipboard + format["class %1 { quality = 3; price = 50000; };%2",_x,endl];
};
if (DBD_priceConfiguration == "Epoch") then
{
_clipboard = _clipboard + format["class %1 { price = 50000; };%2",_x,endl];
};
}forEach _Air;
copyToClipboard _clipboard;
systemChat "Vehicles Pricelist Generated";