mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Merge pull request #1974 from oiad/patch-3
Add support for keeping the key on vehicle sale
This commit is contained in:
@@ -17,7 +17,7 @@ _containerFindKey = {
|
||||
};
|
||||
|
||||
if ((count _VehKey2) > 0) then {
|
||||
if ((_VehKey2 select 0) == "0" || _delType in DZE_tradeVehicleKeyless) then {
|
||||
if ((_VehKey2 select 0) == "0" || _delType in DZE_tradeVehicleKeyless || DZE_keepVehicleKey) then {
|
||||
_localResult2 = 1;
|
||||
} else {
|
||||
{
|
||||
@@ -65,4 +65,4 @@ if ((count _VehKey2) > 0) then {
|
||||
} else {
|
||||
_localResult2 = 0;
|
||||
};
|
||||
_localResult2;
|
||||
_localResult2;
|
||||
|
||||
@@ -62,6 +62,7 @@ DZE_serverLogTrades = true; // Log trades to server RPT (sent with publicVariabl
|
||||
DZE_GemOccurance = [["ItemTopaz",10], ["ItemObsidian",8], ["ItemSapphire",6], ["ItemAmethyst",4], ["ItemEmerald",3], ["ItemCitrine",2], ["ItemRuby",1]]; //Sets how rare each gem is in the order shown when mining (whole numbers only)
|
||||
DZE_GemWorthArray = [["ItemTopaz",15000], ["ItemObsidian",20000], ["ItemSapphire",25000], ["ItemAmethyst",30000], ["ItemEmerald",35000], ["ItemCitrine",40000], ["ItemRuby",45000]]; // Array of gem prices, only works with config traders. Set DZE_GemWorthArray=[]; to disable return change in gems.
|
||||
DZE_SaleRequiresKey = false; // Require the player has the key for a vehicle in order to sell it. The key can be in the player's toolbelt, backpack, or the vehicle's inventory.
|
||||
DZE_keepVehicleKey = false; // Keep the vehicle key when the vehicle is sold? (Useful on servers with the key changer mod)
|
||||
DZE_TRADER_SPAWNMODE = false; // Vehicles purchased at traders will be parachuted in
|
||||
Z_VehicleDistance = 40; // Max distance a vehicle can be sold or accessed from at a trader.
|
||||
Z_AllowTakingMoneyFromBackpack = true; // Allow traders to take money from backpacks when buying with default currency.
|
||||
|
||||
Reference in New Issue
Block a user