From 11a9c711ab20f246263207ceb850b5ab10baa36e Mon Sep 17 00:00:00 2001 From: HARLAN Date: Wed, 27 Nov 2013 11:19:09 -0500 Subject: [PATCH 1/3] #806 lower weapon loot on MilitaryIndustrial --- SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp b/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp index 381585154..f6b15dd60 100644 --- a/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp +++ b/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp @@ -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, From 30611114bb06d69331a76a33b527fce2799480e5 Mon Sep 17 00:00:00 2001 From: HARLAN Date: Wed, 27 Nov 2013 11:35:22 -0500 Subject: [PATCH 2/3] #808 downgrade doors CharID --- SQF/dayz_code/init/variables.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/SQF/dayz_code/init/variables.sqf b/SQF/dayz_code/init/variables.sqf index 5f5f2df79..5a3fc1079 100644 --- a/SQF/dayz_code/init/variables.sqf +++ b/SQF/dayz_code/init/variables.sqf @@ -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"]; From fdcc6b376bcf41074ebb1d18b78e0e45fd441975 Mon Sep 17 00:00:00 2001 From: HARLAN Date: Wed, 27 Nov 2013 11:38:16 -0500 Subject: [PATCH 3/3] #808 downgrading door does not reset CharID --- SQF/dayz_code/actions/player_buildingDowngrade.sqf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/player_buildingDowngrade.sqf b/SQF/dayz_code/actions/player_buildingDowngrade.sqf index dd1c93a84..f8af5e7c8 100644 --- a/SQF/dayz_code/actions/player_buildingDowngrade.sqf +++ b/SQF/dayz_code/actions/player_buildingDowngrade.sqf @@ -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; \ No newline at end of file +s_player_downgrade_build = -1;