Disable TownGenerator and plant spawner by default

Junk and plant spawning is disabled by default. It can be enabled via
dayz_townGenerator config variable and positions blacklist (for trader
cities, etc.).

The trader objects spawn code was consolidated to functions.
This commit is contained in:
ebaydayz
2016-04-06 19:44:00 -04:00
parent 181c47d2a4
commit 6a42ef40d3
41 changed files with 134 additions and 550 deletions

View File

@@ -3,15 +3,7 @@
Date: 12/11/13
If modified and released give credits where due thank you
---------------------------------------------------------------------------*/
private ["_object","_type"];
{
_type = _x select 0;
_object = _type createVehicleLocal (_x select 1);
_object setDir (_x select 2);
_object setPos (_x select 1);
_object allowDamage false;
if !(_type in ["Land_Campfire","Land_Campfire_burning","Land_Fire","Land_Fire_burning","Land_Fire_barrel","Land_Fire_barrel_burning"]) then {_object enableSimulation false;};
} count [
[
// Bandit Vendor Seven
["Land_GuardShed",[10938.7,651.071,0.00558376],214.567],
["HeliHEmpty",[10930.3,639.621,3.91006e-005],214.506],
@@ -731,4 +723,4 @@ private ["_object","_type"];
["MAP_R2_RockWall",[7440.15,5567.71,-20.5011],112.729],
["MAP_R2_RockWall",[7494.54,5608.71,-20.677],290.173],
["MAP_R2_RockWall",[7512.41,5583.7,-12.2722],171.501]
];
] call local_spawnTraderCities;