Plot for life fixes and typo fixes (#1707)

This fixes the issues I was having with APFL, Basically when downgrading
a locked door the ownerPUID was not getting transferred across so it was
getting a 0 PUID set on it once downgraded so you would then lose access
if there was no plot pole.

Now it correctly gets set and instead of doing 2 PVDZE_Obj_Swaps I am
using an if and else statement.

player_upgrade was also not sending the ownerID into the worldspace
field, this seems to differ from the original APFL script. I also added
in code so that if APFL was enabled and uid is 0 we claim the item with
players UID.

This fixes a typo @ebaydayz introduced to spam the .RPT on startup also
for the shotgun and a typo in the credits.
This commit is contained in:
oiad
2016-07-17 05:25:14 +12:00
committed by ebaydayz
parent c9960e1ec3
commit 41c9fde480
5 changed files with 21 additions and 15 deletions

View File

@@ -433,10 +433,11 @@ if (_canBuild select 0) then {
};
_tmpbuilt setVariable ["CharacterID",_combination,true];
PVDZ_obj_Publish = [_combination,_tmpbuilt,[_dir,_location],[]];
if (DZE_permanentPlot) then {
_tmpbuilt setVariable ["ownerPUID",_playerUID,true];
PVDZ_obj_Publish = [_combination,_tmpbuilt,[_dir,_location,_playerUID],_classname];
} else {
PVDZ_obj_Publish = [_combination,_tmpbuilt,[_dir,_location],[]];
};
publicVariableServer "PVDZ_obj_Publish";
@@ -452,9 +453,10 @@ if (_canBuild select 0) then {
if(_tmpbuilt isKindOf "Land_Fire_DZ") then {
_tmpbuilt spawn player_fireMonitor;
} else {
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location],[]];
if (DZE_permanentPlot) then {
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_playerUID],_classname];
} else {
PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location],[]];
};
publicVariableServer "PVDZ_obj_Publish";
};
@@ -481,4 +483,4 @@ if (_canBuild select 0) then {
};
};
DZE_ActionInProgress = false;
DZE_ActionInProgress = false;