Merge pull request #811 from dayz10k/master

reset charID on downgrade doors, lower loot at hangars
This commit is contained in:
HARLAN
2013-11-27 08:47:45 -08:00
3 changed files with 9 additions and 3 deletions

View File

@@ -632,9 +632,9 @@ class CfgBuildingLoot {
};
itemChance[] = {
0.02,
0.1,
0.05,
0.03,
0.02,
0.01,
0.05,
0.01,
0.05,

View File

@@ -131,6 +131,11 @@ if ((count _upgrade) > 0) then {
// Set location
_object setPosATL _location;
// Reset the character ID (esp in the case of removing a lock)
if (_classname in DZE_DoorsLocked) then {
_object setVariable ["CharacterID",dayz_characterID,true];
};
cutText [format[(localize "str_epoch_player_142"),_text], "PLAIN DOWN", 5];
@@ -152,4 +157,4 @@ if ((count _upgrade) > 0) then {
};
DZE_ActionInProgress = false;
s_player_downgrade_build = -1;
s_player_downgrade_build = -1;

View File

@@ -484,6 +484,7 @@ DZE_LockableStorage = ["VaultStorage","VaultStorageLocked","LockboxStorageLocked
DZE_LockedStorage = ["VaultStorageLocked","LockboxStorageLocked"];
DZE_UnLockedStorage = ["VaultStorage","LockboxStorage"];
DZE_ExtraMaintain = ["LightPole_DZ"];
DZE_DoorsLocked = ["Land_DZE_GarageWoodDoorLocked","Land_DZE_LargeWoodDoorLocked","Land_DZE_WoodDoorLocked","CinderWallDoorLocked_DZ","CinderWallDoorSmallLocked_DZ"];
// List of removable items that require crowbar
DZE_isRemovable = ["Fence_corrugated_DZ","M240Nest_DZ","ParkBench_DZ","Plastic_Pole_EP1_DZ","FireBarrel_DZ"];