diff --git a/SQF/dayz_code/configVariables.sqf b/SQF/dayz_code/configVariables.sqf index 9dc22c635..90636139a 100644 --- a/SQF/dayz_code/configVariables.sqf +++ b/SQF/dayz_code/configVariables.sqf @@ -8,7 +8,7 @@ dayz_matchboxCount = false; // Enable match stick count. After five uses matches dayz_toolBreaking = false; //Sledgehammer, crowbar and pickaxe have a chance to break when used. dayz_waterBottleBreaking = false; // Water bottles have a chance to break when boiling and require duct tape to fix dayz_tameDogs = false; // Allow taming dogs with raw meat -dayz_townGenerator = false; // Spawn vanilla map junk in addition to Epoch DynamicDebris. Currently only compatible with Chernarus. Need to add coordinates for other maps. +dayz_townGenerator = false; // Spawn vanilla map junk instead of Epoch DynamicDebris. Currently only compatible with Chernarus. Need to add coordinates for other maps. dayz_townGeneratorBlackList = []; // Town generator will not spawn junk within 150m of these positions. Example for Chernarus trader cities: [[4053,11668,0],[11463,11349,0],[6344,7806,0],[1606,7803,0],[12944,12766,0],[5075,9733,0],[12060,12638,0]] DynamicVehicleDamageLow = 0; // Min damage random vehicles can spawn with diff --git a/SQF/dayz_server/system/server_monitor.sqf b/SQF/dayz_server/system/server_monitor.sqf index 03e527f27..fc50917e5 100644 --- a/SQF/dayz_server/system/server_monitor.sqf +++ b/SQF/dayz_server/system/server_monitor.sqf @@ -474,8 +474,14 @@ if (_hiveLoaded) then { _vehLimit = 0; }; - diag_log ("HIVE: Spawning # of Debris: " + str(MaxDynamicDebris)); - for "_x" from 1 to MaxDynamicDebris do {call spawn_roadblocks;}; + if (dayz_townGenerator) then { + // Vanilla town generator spawns debris locally on each client + MaxDynamicDebris = 0; + } else { + // Epoch global dynamic debris + diag_log ("HIVE: Spawning # of Debris: " + str(MaxDynamicDebris)); + for "_x" from 1 to MaxDynamicDebris do {call spawn_roadblocks;}; + }; diag_log ("HIVE: Spawning # of Ammo Boxes: " + str(MaxAmmoBoxes)); for "_x" from 1 to MaxAmmoBoxes do {call spawn_ammosupply;};