Use single config variable for Plot for Life and Plot Management

Plot for Life and Plot Management work best together. They essentially
provide the same functionality. Both let you keep your plot after death
by using UID instead of CharacterID. Plot Management doesn't even have
an option to save characterID, so by default it is always keeping all
friends and the owner permanently until they are removed. The only major
difference between them is Plot For Life also adds permanent ownership
of built items on the plot, which is behavior most people expect. It
doesn't make sense to keep ownership of the plot after death but not the
other objects built on it. The other functionality it adds (take
ownership) can be toggled with a config variable.

It is rare that someone would want Plot For Life enabled, but Plot
Management disabled or vice versa. If they really want that they can
still do it manually, but consolidating them to a single config option
greatly simplifies things for everyone else.

I removed links to mod githubs because many changes have been made to
the 1.0.6 versions, so outdated information there will likely confuse
people. Authors are already credited in the README and change log.

In variables.sqf "DZ_storage_base" is now the parent class which
includes all tents and stashes. DZE_checkNearbyRadius variable is not
used (identical to DZE_PlotPole select 0).
This commit is contained in:
ebaydayz
2016-06-12 12:54:46 -04:00
parent 16c1e9d205
commit 835d750c0c
24 changed files with 90 additions and 104 deletions

View File

@@ -25,7 +25,7 @@ if(_IsNearPlot == 0) then {
if(dayz_characterID == _ownerID) then {
_canBuildOnPlot = true;
} else {
if (DZE_plotManagement || DZE_plotforLife) then {
if (DZE_permanentPlot) then {
_buildcheck = [player, _nearestPole] call FNC_check_owner;
_isowner = _buildcheck select 0;
_isfriendly = _buildcheck select 1;
@@ -144,7 +144,7 @@ if ((count _upgrade) > 0) then {
// Set location
_object setPosATL _location;
if (DZE_plotforLife) then {
if (DZE_permanentPlot) then {
_ownerID = _obj getVariable["ownerPUID","0"];
_object setVariable ["ownerPUID",_ownerID,true];
};