2017-05-24 03:33:50 +00:00
|
|
|
/*
|
|
|
|
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;
|
2017-08-05 01:27:34 +00:00
|
|
|
_index = 0;
|
2017-05-24 03:33:50 +00:00
|
|
|
_cars = [];
|
2017-08-05 01:27:34 +00:00
|
|
|
_boats = [];
|
|
|
|
_air = [];
|
|
|
|
_exile = 0;
|
2017-05-24 03:33:50 +00:00
|
|
|
_clipboard = "";
|
|
|
|
{
|
|
|
|
if (_x isKindOf "Car" && !(_x in _vehiclesBase)) then
|
|
|
|
{
|
|
|
|
_cars pushback _x;
|
2017-08-05 01:27:34 +00:00
|
|
|
//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];
|
|
|
|
{
|
2017-05-24 03:33:50 +00:00
|
|
|
if (DBD_priceConfiguration == "Exile") then
|
|
|
|
{
|
2017-08-05 01:27:34 +00:00
|
|
|
_clipboard = _clipboard + format["class %1 { quality = 3; price = 50; };%2",_x,endl];
|
2017-05-24 03:33:50 +00:00
|
|
|
};
|
|
|
|
if (DBD_priceConfiguration == "Epoch") then
|
|
|
|
{
|
2017-08-05 01:27:34 +00:00
|
|
|
_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;
|
2017-05-24 03:33:50 +00:00
|
|
|
copyToClipboard _clipboard;
|
|
|
|
systemChat "Vehicles Pricelist Generated";
|