mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Add toggleable Virtual Garage by salival
This also adds heli pads to the wholesaler if the virutal garage is activated.
This commit is contained in:
@@ -37,7 +37,10 @@ if (Z_SingleCurrency) then {
|
||||
Z_VehicleDistance = 40; // Max distance a vehicle can be sold or accessed from at a trader.
|
||||
|
||||
// Vehicle Key Changer
|
||||
DZE_VehicleKey_Changer = true; // Enable Vehicle Key Changer. Create or change the key for a vehicle.
|
||||
DZE_VehicleKey_Changer = false; // Enable Vehicle Key Changer. Create or change the key for a vehicle.
|
||||
|
||||
// Virtual Garage
|
||||
DZE_Virtual_Garage = false; // Enable the Virtual Garage to store vehicles.
|
||||
|
||||
// Plot Management and Plot for Life
|
||||
DZE_permanentPlot = true; // Plot ownership saves after death. Enables Plot for Life by @RimBlock and Plot Management by @DevZupa.
|
||||
@@ -107,6 +110,12 @@ if (isServer) then {
|
||||
if (DZE_VehicleKey_Changer) then {
|
||||
vkc_clearAmmo = true; // Clear the ammo of vehicles after they have been rekeyed/claimed? (stops users getting a free rearm)
|
||||
vkc_disableThermal = [""]; // Array of vehicle config classes as well as vehicle classnames to disable thermal on when being spawned. i.e: ["All","Land","Air","Ship","StaticWeapon","AH1Z","MTVR"];
|
||||
};
|
||||
|
||||
if (DZE_Virtual_Garage) then {
|
||||
vg_clearAmmo = true; // Clear the ammo of vehicles spawned during the same restart they are stored? (stops users storing a vehicle for a free rearm)
|
||||
vg_disableThermal = []; // Array of vehicle config classes as well as vehicle classnames to disable thermal on when being spawned. i.e: ["All","Land","Air","Ship","StaticWeapon","AH1Z","MTVR"];
|
||||
vg_sortColumn = 0; //0 or an out of range value sorts by the default column 'DisplayName', otherwise 1 = 'DateStored', 2 = 'id', 3 = 'Name' (of storing player), 4 = 'DateMaintained'
|
||||
};
|
||||
};
|
||||
|
||||
@@ -304,6 +313,38 @@ if (!isDedicated) then {
|
||||
vkc_changePrice = 5000; // Amount in worth for changing the key for a vehicle. See the top of this script for an explanation.
|
||||
};
|
||||
|
||||
if (DZE_Virtual_Garage) then {
|
||||
vg_list = ["Plastic_Pole_EP1_DZ"]; // List of objects/traders that are allowed to interact with virtual garage. i.e: ["Plastic_Pole_EP1_DZ","Worker2"];
|
||||
vg_blackListed = []; // Array of vehicle config classes as well as vehicle classnames that are blacklisted from being stored, i.e ["All","Land","Air","Ship","StaticWeapon","AH1Z","MTVR"]
|
||||
vg_heliPads = ["Helipad_Civil_DZ","Helipad_Rescue_DZ","Helipad_Army_DZ","Helipad_Cross_DZ","Helipad_ParkBorder_DZ"]; // Array of heli pad classnames
|
||||
vg_store_keyless_vehicles = false; // Allow storing of keyless vehicle (map or mission spawned)
|
||||
vg_removeKey = true; // Remove the key from the players inventory after storing vehicle?
|
||||
vg_requireKey = true; // Require the player to have the key when storing a locked vehicle.
|
||||
vg_storeWithGear = true; // Allow storing vehicles with gear?
|
||||
vg_tiedToPole = true; // Tie the virtual garage to a local plot pole? If no plot pole is present (i.e a communal garage at a trader etc) the players UID will be used.
|
||||
vg_pricePer = 100; // Price in worth to store a vehicle per gear item, use 0 if you want it to be free.
|
||||
vg_maintainCost = 10000; //cost is 1000 per 10oz gold, gem cost is as defined in DZE_GemWorthArray; if you use ZSC then this is an amount of coins. This is a flate rate for all vehicles in the garage/per player depending on vg_tiedToPole
|
||||
vg_price = [["Land",500],["Air",500],["Ship",500]];
|
||||
/*
|
||||
vg_price can be an array of vehicle config classes as well as vehicle classnames, you need to put these in order of what you prefer to get checked first.
|
||||
Price is in worth for briefcases or coins for gold based servers (10,000 worth is considered 1 briefcase, 100,000 coins is considered 1 briefcase)
|
||||
|
||||
i.e:
|
||||
vg_price = [["Land",500],["Air",300],["Ship",100]];
|
||||
vg_price = [["350z_red",200],["Land",500],["AH1Z",1000],["Air",300],["Ship",100]];
|
||||
*/
|
||||
vg_limit = [["Land",5],["Air",5],["Ship",5]];
|
||||
/*
|
||||
vg_limit can be an array of vehicle config classes and classnames to narrow down what players can store or it can be a numerical value for a total limit.
|
||||
These can be classnames as well as config classnames, you need to put these in order of what you prefer to get checked first.
|
||||
|
||||
i.e:
|
||||
vg_limit = [["Land",5],["Air",3],["Ship",1]];
|
||||
vg_limit = [["350z_red",2],["Land",5],["AH1Z",1],["Air",3],["Ship",1]];
|
||||
vg_limit = 5;
|
||||
*/
|
||||
};
|
||||
|
||||
// Bloodsuckers
|
||||
DZE_Bloodsuckers = false; // Enable bloodsucker spawning.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user