From 6189bed044aef87d9438bcc7d6b2bffe6a4e6b3f Mon Sep 17 00:00:00 2001 From: A Man Date: Thu, 24 Mar 2022 13:15:31 +0100 Subject: [PATCH] Add changeable DZE_debrisRefundParts array to configVariables --- SQF/dayz_code/actions/remove.sqf | 2 +- SQF/dayz_code/configVariables.sqf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/remove.sqf b/SQF/dayz_code/actions/remove.sqf index 5e53d2a09..cf5122fee 100644 --- a/SQF/dayz_code/actions/remove.sqf +++ b/SQF/dayz_code/actions/remove.sqf @@ -271,7 +271,7 @@ if (_proceed && _success) then { if (_isWreck) exitWith { // Find one random part to refund - local _refundpart = ["PartEngine","PartGeneric","PartFueltank","PartWheel","PartGlass","ItemJerrycan"] call BIS_fnc_selectRandom; + local _refundpart = DZE_debrisRefundParts call BIS_fnc_selectRandom; _selectedRemoveOutput = [[_refundpart, 1]]; }; diff --git a/SQF/dayz_code/configVariables.sqf b/SQF/dayz_code/configVariables.sqf index 96f8e508d..e50f9a605 100644 --- a/SQF/dayz_code/configVariables.sqf +++ b/SQF/dayz_code/configVariables.sqf @@ -149,6 +149,7 @@ if (!isDedicated) then { dayz_temperature_override = true; // Set to true to disable all temperature changes. dayz_nutritionValuesSystem = false; //true, Enables nutrition system, false, disables nutrition system. DZE_DisableVehicleUpgrade = []; // List of vehicles that cannot be upgraded with manuals E.g.: ["ArmoredSUV_PMC_DZE","LandRover_CZ_EP1_DZE"] + DZE_debrisRefundParts = ["PartEngine","PartGeneric","PartFueltank","PartWheel","PartGlass","ItemJerrycan"]; // Dynamic debris wrecks refund // Build restrictions DZE_NoBuildNear = []; //Array of object class names that are blacklisted to build near. i.e ["Land_Mil_ControlTower","Land_SS_hangar"] etc.