mirror of
https://github.com/Ghostrider-DbD-/Config-Extraction-Tools.git
synced 2024-08-30 16:42:11 +00:00
33 lines
862 B
Plaintext
33 lines
862 B
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;
|
|
_veh sort true;
|
|
_cars = [];
|
|
_clipboard = "";
|
|
{
|
|
if (_x isKindOf "Car" && !(_x in _vehiclesBase)) then
|
|
{
|
|
_cars pushback _x;
|
|
if (DBD_priceConfiguration == "Exile") then
|
|
{
|
|
_clipboard = _clipboard + format["class %1 { quality = 3; price = 15000; };%2",_x,endl];
|
|
};
|
|
if (DBD_priceConfiguration == "Epoch") then
|
|
{
|
|
_clipboard = _clipboard + format["class %1 { price = 15000; };%2",_x,endl];
|
|
};
|
|
};
|
|
}forEach _veh;
|
|
|
|
copyToClipboard _clipboard;
|
|
systemChat "Vehicles Pricelist Generated"; |