Disable lit fires when townGenerator is off

If townGenerator is enabled lit fires will be created everywhere except
blacklisted areas.
This commit is contained in:
ebaydayz
2016-04-06 20:08:28 -04:00
parent 6a42ef40d3
commit 0f4aa05753
3 changed files with 7 additions and 3 deletions

View File

@@ -65,6 +65,7 @@
- usecMorphine --> PVCDZ_hlt_Morphine - usecMorphine --> PVCDZ_hlt_Morphine
- usecPainK --> PVCDZ_hlt_PainK - usecPainK --> PVCDZ_hlt_PainK
- usecTransfuse --> PVCDZ_hlt_Transfuse - usecTransfuse --> PVCDZ_hlt_Transfuse
[NEW] Config variable dayz_townGenerator can enable vanilla map junk in addition to Epoch DynamicDebris. Only works on Chernarus.
[NEW] RedRyder BB Gun by @arma2WillRobinson [NEW] RedRyder BB Gun by @arma2WillRobinson
[NEW] Added "RedRyder" and "350Rnd_BB_Magazine" to loot pile. #1456 #1457 @Namindu [NEW] Added "RedRyder" and "350Rnd_BB_Magazine" to loot pile. #1456 #1457 @Namindu
[NEW] DB Backup script. @RimBlock [NEW] DB Backup script. @RimBlock

View File

@@ -1,7 +1,10 @@
// (c) facoptere@gmail.com, licensed to DayZMod for the community // (c) facoptere@gmail.com, licensed to DayZMod for the community
private ["_blocked","_flame","_position"];
{ {
if (random 1 < 0.33) then { _blocked = false;
_position = _x;
{if (_position distance _x < 150) exitWith {_blocked = true;};} forEach dayz_townGeneratorBlackList;
if (!_blocked && (random 1 < 0.33)) then {
_flame = createVehicle [ "flamable_DZ", _x, [], 0, "CAN_COLLIDE"]; _flame = createVehicle [ "flamable_DZ", _x, [], 0, "CAN_COLLIDE"];
_flame inflame true; _flame inflame true;
_flame setVariable ["permaLoot",true]; // = won't be removed by the cleaner, cf. sched_lootpiles.sqf _flame setVariable ["permaLoot",true]; // = won't be removed by the cleaner, cf. sched_lootpiles.sqf

View File

@@ -283,7 +283,7 @@ publicVariable "sm_done";
[] execVM "\z\addons\dayz_server\compile\server_spawnCarePackages.sqf"; [] execVM "\z\addons\dayz_server\compile\server_spawnCarePackages.sqf";
[] execVM "\z\addons\dayz_server\compile\server_spawnCrashSites.sqf"; [] execVM "\z\addons\dayz_server\compile\server_spawnCrashSites.sqf";
if ((toLower worldName) == "chernarus") then {execVM "\z\addons\dayz_server\system\lit_fireplaces.sqf";}; if (dayz_townGenerator && {toLower worldName == "chernarus"}) then {execVM "\z\addons\dayz_server\system\lit_fireplaces.sqf";};
"PVDZ_sec_atp" addPublicVariableEventHandler { "PVDZ_sec_atp" addPublicVariableEventHandler {
_x = _this select 1; _x = _this select 1;