Add DZE_requirePlotOverride to override if objects need no plot pole

Made by @Victor-the-Cleaner
This commit is contained in:
A Man
2022-05-02 15:22:36 +02:00
parent 0b0db3f57d
commit 97624e23be
20 changed files with 21 additions and 1 deletions

View File

@@ -711,7 +711,6 @@ if (_canBuild) then {
_objectHelperPos = ATLToASL _pos;
};
//if (_vectoringEnabled || {_classname in DZE_StaticWeapons}) then {
if (_vectoringEnabled || _isStaticWeapon) then {
_objectHelper setVectorUp _vector; // align
};
@@ -911,6 +910,7 @@ if (_canBuild) then {
if (isNumber (configFile >> "CfgVehicles" >> _classname >> "requireplot")) then {
_requireplot = getNumber(configFile >> "CfgVehicles" >> _classname >> "requireplot");
};
if (_classname in DZE_requirePlotOverride) then {_requireplot = 1;};
useModelCenter = 0; // global

View File

@@ -44,6 +44,8 @@ local _message = ""; // for blacklisted zones and buildings
if (isNumber (configFile >> "CfgVehicles" >> _classname >> "requireplot")) then {
_requireplot = getNumber(configFile >> "CfgVehicles" >> _classname >> "requireplot");
};
if (_classname in DZE_requirePlotOverride) then {_requireplot = 1;};
local _plotcheck = [player, _isPole] call FNC_find_plots;
local _distance = _plotcheck select 0;
local _isNearPlot = _plotcheck select 1;

View File

@@ -189,6 +189,7 @@ if (!isDedicated) then {
DZE_BuildHeightLimit = 0; // 0 = No building height limit | >0 = Height limit in meters | Changing this to 30 would limit the maximum built height to 30 meters.
DZE_HeightLimitColor = true; // display plot boundary helpers in red if they are above DZE_BuildHeightLimit
DZE_requireplot = 1; // Players require a plot to build
DZE_requirePlotOverride = []; // Add a list of classnames that require a plot pole to build. This will override the config settings. E.g. ["DomeTentStorage","VaultStorageLocked","VaultStorage2Locked","TallSafeLocked","LockboxStorageLocked","LockboxStorage2Locked","LockboxStorageWinterLocked","LockboxStorageWinter2Locked"];
DZE_PlotPole = [30,45]; // Plot radius, minimum distance between plots
DZE_BuildOnRoads = false; // Allow building on roads
DZE_BuildingLimit = 150; // Maximum allowed objects per plot