mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 19:06:29 +03:00
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:
@@ -1,12 +1,4 @@
|
||||
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 [
|
||||
[
|
||||
["Base_WarfareBBarrier10xTall",[5144.42,4891.09,-0.0578766],348.934],
|
||||
["Base_WarfareBBarrier10xTall",[5131.46,4883.35,-7.62939e-006],308.557],
|
||||
["Base_WarfareBBarrier10xTall",[5124.51,4870.26,1.52588e-005],96.6995],
|
||||
@@ -268,4 +260,4 @@ private ["_object","_type"];
|
||||
["Land_HBarrier3",[15473.1,13212.3,-0.00374699],106.213],
|
||||
["Land_HBarrier3",[15455.8,13214.6,0.00995064],297.611],
|
||||
["Land_HBarrier3",[15507,13213.2,0.228428],99.1406]
|
||||
];
|
||||
] call local_spawnTraderCities;
|
||||
Reference in New Issue
Block a user