From 7740f80cc851cd6ba0b66b4bf1f5fd70624ee90d Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:01:35 +0100 Subject: [PATCH 01/24] Update config.cpp --- SQF/dayz_code/config.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/SQF/dayz_code/config.cpp b/SQF/dayz_code/config.cpp index 6d5f486c5..14d0299f6 100644 --- a/SQF/dayz_code/config.cpp +++ b/SQF/dayz_code/config.cpp @@ -14,6 +14,7 @@ #define EAST 0 // (Russian) #include "Configs\basicdefines.hpp" +#include "Configs\CfgNonAIVehicles.hpp" class CfgPatches { class dayz_code { From f01fc605b260483da7a0027de16631193ace35dc Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:02:45 +0100 Subject: [PATCH 02/24] Create CfgNonAIVehicles.hpp --- SQF/dayz_code/Configs/CfgNonAIVehicles.hpp | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 SQF/dayz_code/Configs/CfgNonAIVehicles.hpp diff --git a/SQF/dayz_code/Configs/CfgNonAIVehicles.hpp b/SQF/dayz_code/Configs/CfgNonAIVehicles.hpp new file mode 100644 index 000000000..5912714d1 --- /dev/null +++ b/SQF/dayz_code/Configs/CfgNonAIVehicles.hpp @@ -0,0 +1,64 @@ +class CfgNonAIVehicles { +class StreetLamp { + + brightness = 0; + simulation = "StreetLamp"; + scope = 2; +}; + +class StreetLamp_BaseWeakYellow : StreetLamp { + brightness = 0; +}; + +class StreetLamp_BaseMediumOrange : StreetLamp { + brightness = 0; +}; + +class StreetLamp_BaseMediumPale : StreetLamp { + brightness = 0; +}; + +class StreetLamp_BaseStrongPale : StreetLamp { + brightness = 0; +}; + +class Land_Lamp_Small_EP1 : StreetLamp { + brightness = 0; +}; + +class Land_Lamp_Street1_EP1 : StreetLamp { + brightness = 0; +}; + +class Land_Lamp_Street2_EP1 : StreetLamp { + brightness = 0; +}; + +class Land_Lampa_Ind_EP1 : StreetLamp { + brightness = 0; +}; + +class Land_PowLines_Conc2L_EP1 : StreetLamp { + brightness = 0; +}; + +class Land_lampa_sidl : StreetLamp { + brightness = 0; +}; + +class Land_lampa_sidl_2 : StreetLamp { + brightness = 0; +}; + +class Land_lampa_sidl_3 : StreetLamp { + brightness = 0; +}; + +class Land_lampa_ind : StreetLamp { + brightness = 0; +}; + +class Land_lampa_ind_zebr : StreetLamp { + brightness = 0; +}; +}; From 79ead85998b7b972e3e526fde98d76abdbef281f Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:03:20 +0100 Subject: [PATCH 03/24] Create local_lights_init.sqf --- SQF/dayz_code/compile/local_lights_init.sqf | 73 +++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 SQF/dayz_code/compile/local_lights_init.sqf diff --git a/SQF/dayz_code/compile/local_lights_init.sqf b/SQF/dayz_code/compile/local_lights_init.sqf new file mode 100644 index 000000000..0d14a122f --- /dev/null +++ b/SQF/dayz_code/compile/local_lights_init.sqf @@ -0,0 +1,73 @@ +/* + DayZ Epoch Lighting System + Made for DayZ Epoch please ask permission to use/edit/distrubute email axeman@thefreezer.co.uk. +*/ +private ["_nrGen","_i","_doHouse","_doStreet","_doTower","_doAll","_fnHr","_stHr","_plyr","_hndlSLights","_hndlHLights","_hndlTLights","_tmpPlyrPos","_ndGen","_rngGen","_rngPlyr","_arrStreetLights","_rtnLights","_wait","_waitcmd","_trigDist"]; + +_stHr = 17;//Hour (in 24 hours) to start lights +_fnHr = 6;//Hour (in 24 hours) to stop lights +waitUntil {(daytime<_fnHr||daytime>_stHr)}; + +_doHouse=true;//House Lights ? +_doStreet=true;//Street Lights ? +_doTower=true;// Tower Lights ? + +_ndGen = true;//Require a Generator ? +_rngGen = 120;//Generator power range. +_rngPlyr = 600;//Distance from player to search for generators. +_trigDist = 10;//Distance that player needs to move to trigger the routine. +//END OF EDIT VARS + +_wait = []; +_doAll = true; +call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_lightFunctions.sqf"; +axeTowerLights = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_lights_tower.sqf"; +axeHouseLights = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_lights_house.sqf"; +axeStreetLights = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_lights_street.sqf"; +waitUntil {getPos Player select 0 > 0}; + +while {alive player} +do +{ + if(daytime<_fnHr||daytime>_stHr)then{ + _plyr = vehicle player; + _tmpPlyrPos = getPos _plyr; + + _nrGen = nearestObjects [player, ["Generator_DZ"], _rngPlyr]; + + if(count _nrGen >0)then{ + }; + { + if(_ndGen && (count _nrGen)<1)then{_doAll = false;}else{_doAll=true;}; + + if(_doAll)then{ + + _rtnLights = [_rngGen,_x] call axe_returnStreetLights; + _arrStreetLights = _rtnLights select 0; + _waitcmd=""; + _wait=[]; + + if(_doTower)then{ + _hndlTLights = [_rngGen,_x] spawn axeTowerLights; + [_wait , "scriptDone _hndlTLights"] call BIS_fnc_arrayPush; + }; + if(_doHouse)then{ + _hndlHLights = [_rngGen,_x] spawn axeHouseLights; + [_wait , "scriptDone _hndlHLights"] call BIS_fnc_arrayPush; + }; + if(_doStreet)then{ + _hndlSLights = [_arrStreetLights,_x] spawn axeStreetLights; + [_wait , "scriptDone _hndlSLights"] call BIS_fnc_arrayPush; + }; + + for [{_i=0}, {_i<3}, {_i=_i+1}]do{_waitcmd=_waitcmd+format["%1",_wait select _i];if(_i<2)then{_waitcmd=_waitcmd+"&&";};}; + call compile format ["waitUntil {%1}",_waitcmd]; + + }; + + }forEach _nrGen; + + if( abs ([_tmpPlyrPos, getPos _plyr] call BIS_fnc_distance2D)<_trigDist)then{_doAll=false;}; + + }; +}; From ba30813dbd21283f1d8459e150080e4751dfd546 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:03:48 +0100 Subject: [PATCH 04/24] Create fn_lightFunctions.sqf --- SQF/dayz_code/compile/fn_lightFunctions.sqf | 84 +++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 SQF/dayz_code/compile/fn_lightFunctions.sqf diff --git a/SQF/dayz_code/compile/fn_lightFunctions.sqf b/SQF/dayz_code/compile/fn_lightFunctions.sqf new file mode 100644 index 000000000..0d6e30ccd --- /dev/null +++ b/SQF/dayz_code/compile/fn_lightFunctions.sqf @@ -0,0 +1,84 @@ +axe_returnStreetLights={ +private["_lights","_objName","_rng","_nrstGen"]; +_rng = _this select 0; +_nrstGen = _this select 1; +_lights = ["a_fuelstation_sign.p3d","lampa_ind_zebr.p3d","lampa_ind.p3d","lampa_sidl_3.p3d","lampa_sidl_2.p3d","lampa_sidl.p3d","powlines_concl.p3d","powlines_woodl.p3d"]; + + +axe_streetLamps=[]; +axe_generators=[]; + { + if("" != typeOf _x) then { + + if (alive _x) then { + + _objName = _x call DZE_getModelName; + + if (_objName in _lights) then { + [axe_streetLamps , [_x]] call BIS_fnc_arrayPush; + }; + }; + }; + } foreach nearestObjects [getPos _nrstGen, [], _rng]; +[axe_streetLamps,axe_generators] +}; + +axe_newLightPoint={ +private ["_lp","_pos","_col","_brt","_amb","_pos","_dir","_vect"]; +_col = _this select 0; +_brt = _this select 1; +_amb = _this select 2; +_pos = _this select 3; +_dir = _this select 4; +_vect = _this select 5; +_lp = "#lightpoint" createVehicle _pos; +_lp setLightColor _col; +_lp setLightBrightness _brt; +_lp setLightAmbient _amb; +_lp setDir _dir; +_lp setVectorUp _vect; +}; + +axe_lightPoint={ +private ["_lp","_col","_brt","_amb"]; +_col = _this select 0; +_brt = _this select 1; +_amb = _this select 2; +_lp = _this select 3; +_lp setLightColor _col; +_lp setLightBrightness _brt; +_lp setLightAmbient _amb; +}; + +axe_towerLight={ +private["_twr","_lCol","_lbrt","_lamb","_oset","_twrPos","_rad","_a","_b","_ang","_nrTLs","_doLit"]; +_twr = _this select 3 select 0; +_lCol = _this select 0; +_lbrt = _this select 1; +_lamb = _this select 2; +_doLit = _this select 4 select 0; +_twrPos = getPos _twr; +_rad=2.65; +_oset=14; +_nrTLs= position _twr nearObjects ["#lightpoint",30]; + if(count _nrTLs > 3)then{ + { + if(_doLit)then{ + [_lCol,_lbrt,_lamb,_x] call axe_lightPoint; + }else{ + deleteVehicle _x; + }; + sleep .2; + }forEach _nrTLs; + }else{ + if(_doLit)then{ + for "_tls" from 1 to 4 do { + _ang=(360 * _tls / 4)-_oset; + _a = (_twrPos select 0)+(_rad * cos(_ang)); + _b = (_twrPos select 1)+(_rad * sin(_ang)); + [_lCol,_lbrt,_lamb,[_a,_b,(_twrPos select 2) + 26],_ang,[0,0,-1]] call axe_newLightPoint; + sleep .4; + }; + }; + }; +}; From 5edbd617150b6c7b4bcb78aca492d2776cb650ad Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:04:10 +0100 Subject: [PATCH 05/24] Create local_lights_house.sqf --- SQF/dayz_code/compile/local_lights_house.sqf | 44 ++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 SQF/dayz_code/compile/local_lights_house.sqf diff --git a/SQF/dayz_code/compile/local_lights_house.sqf b/SQF/dayz_code/compile/local_lights_house.sqf new file mode 100644 index 000000000..9b6f2f2ba --- /dev/null +++ b/SQF/dayz_code/compile/local_lights_house.sqf @@ -0,0 +1,44 @@ +/* + DayZ Epoch Lighting System + Made for DayZ Epoch please ask permission to use/edit/distrubute email axeman@thefreezer.co.uk. +*/ +private ["_lightstate","_objLightPoint","_pos","_objHouse","_dir","_rng","_nrstGen"]; +_rng = _this select 0; +_nrstGen = _this select 1; +_objHouse = nearestObjects [_nrstGen, ["House"], _rng]; + +if(!isNil "_objHouse")then{ + { + + _lightstate = _x animationPhase "Lights_1";//Window lights on or off + _pos = getPos _x; + _dir = getDir _x; + + if(_lightstate==0) then + { + _x animate ["Lights_1",1]; + if(65 <(random 100)) then{ + _x animate ["Lights_2",1]; + }; + sleep .1; + }; + + if(_lightstate==1) then + { + _objLightPoint = nearestObject [_x, "#lightpoint"]; + if((abs ([_pos, _objLightPoint] call BIS_fnc_distance2D))>1)then{ + + [[1, 1, 1],0.01,[5, 5, 5],[_pos select 0,_pos select 1,-3],_dir,[0,0,-1]] call axe_newLightPoint; + _x setVariable ["axeHLight", 1, false]; + + }else{ + + if((_x getVariable ["axeHLight", 0])<1)then{ + [[1, 1, 1],0.01,[5, 5, 5],_objLightPoint] call axe_lightPoint; + _x setVariable ["axeHLight", 1, false]; + }; + }; + }; + + } forEach _objHouse; +}; From 14e012d6289e1224daf6f0f08821f4d60b05d6b9 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:04:25 +0100 Subject: [PATCH 06/24] Create local_lights_street.sqf --- SQF/dayz_code/compile/local_lights_street.sqf | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 SQF/dayz_code/compile/local_lights_street.sqf diff --git a/SQF/dayz_code/compile/local_lights_street.sqf b/SQF/dayz_code/compile/local_lights_street.sqf new file mode 100644 index 000000000..78d9503db --- /dev/null +++ b/SQF/dayz_code/compile/local_lights_street.sqf @@ -0,0 +1,39 @@ +/* + DayZ Epoch Lighting System + Made for DayZ Epoch please ask permission to use/edit/distrubute email axeman@thefreezer.co.uk. +*/ +private ["_streetLamps","_num","_location","_objLightPoint","_away","_objSLamp","_nrstGen","_dir"]; + +_streetLamps= _this select 0; +_nrstGen = _this select 1; +_num=0; + +if(!isNil "_streetLamps")then{ + + //Illuminate + { + _objSLamp= _x select 0; + _location = getPos _objSLamp; + _objLightPoint = nearestObject [_location, "#lightpoint"]; + _away= abs ([_objSLamp, _objLightPoint] call BIS_fnc_distance2D); + + if(_away>1)then{ + + _dir = getDir _objSLamp; + _location set [1, (getPos _objSLamp select 1) + ((0.6)*sin(_dir))]; + _location set [2,_location select 2 - 0.2]; + + [[1, 0.88, 0.73],0.04,[1, 0.88, 0.73],_location,_dir,[0,0,-1]] call axe_newLightPoint; + + }else{ + if((_nrstGen getVariable ["axeSLight",0])<1)then{ + + [[1, 0.88, 0.73],0.04,[1, 0.88, 0.73],_objLightPoint] call axe_lightPoint; + + }; + }; + _num=_num+1; + }forEach _streetLamps; + _nrstGen setVariable ["axeSLight", 1, false]; +}; + From 37d824d00062f4acce29ab66af44ea1ca25ee5e3 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:04:49 +0100 Subject: [PATCH 07/24] Create local_lights_tower.sqf --- SQF/dayz_code/compile/local_lights_tower.sqf | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 SQF/dayz_code/compile/local_lights_tower.sqf diff --git a/SQF/dayz_code/compile/local_lights_tower.sqf b/SQF/dayz_code/compile/local_lights_tower.sqf new file mode 100644 index 000000000..8d83e5068 --- /dev/null +++ b/SQF/dayz_code/compile/local_lights_tower.sqf @@ -0,0 +1,26 @@ +/* + DayZ Epoch Lighting System + Made for DayZ Epoch please ask permission to use/edit/distrubute email axeman@thefreezer.co.uk. +*/ +private ["_nrTowers","_rng","_nrstGen","_lCol","_lbrt","_lamb","_twrCl","_doLit"]; +_rng = (_this select 0)*2; +_nrstGen = _this select 1; +_lCol = [1, 0.88, 0.73]; +_lbrt = 0.04; +_lamb = [1, 0.88, 0.73]; +_twrCl = "Land_Ind_IlluminantTower"; +_nrTowers = nearestObjects [_nrstGen, [_twrCl], _rng]; +if(count _nrTowers >0)then{ + { + _doLit=false; + + if((_x getVariable ["axeTLight", 0])<1)then{ + _doLit=true; + }; + + [_lCol,_lbrt,_lamb,[_x],[_doLit]] call axe_towerLight; + + _x setVariable ["axeTLight", 1, false]; + + }forEach _nrTowers; +}; From d2f5181215df1893e1dde270acb56b3dddbb05ca Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:05:26 +0100 Subject: [PATCH 08/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_1.Takistan/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_1.Takistan/init.sqf b/Server Files/MPMissions/DayZ_Epoch_1.Takistan/init.sqf index 7f03f969d..8bb7eccdd 100644 --- a/Server Files/MPMissions/DayZ_Epoch_1.Takistan/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_1.Takistan/init.sqf @@ -102,5 +102,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf" From c543cc77e39f8cb4487d6ef71d477fe8c1ea63bb Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:05:43 +0100 Subject: [PATCH 09/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_10.Mountains_ACR/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_10.Mountains_ACR/init.sqf b/Server Files/MPMissions/DayZ_Epoch_10.Mountains_ACR/init.sqf index 7a032c89b..6e77746eb 100644 --- a/Server Files/MPMissions/DayZ_Epoch_10.Mountains_ACR/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_10.Mountains_ACR/init.sqf @@ -102,5 +102,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf" From 4423631ffbe0aea949739a3b30eebce0aaa98039 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:06:01 +0100 Subject: [PATCH 10/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_11.Chernarus/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_11.Chernarus/init.sqf b/Server Files/MPMissions/DayZ_Epoch_11.Chernarus/init.sqf index ab4f3fdc8..67b15e828 100644 --- a/Server Files/MPMissions/DayZ_Epoch_11.Chernarus/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_11.Chernarus/init.sqf @@ -102,5 +102,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf" From eceeb952fdc75dbaac61ea29a02930ea894ae278 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:06:19 +0100 Subject: [PATCH 11/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_12.isladuala/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_12.isladuala/init.sqf b/Server Files/MPMissions/DayZ_Epoch_12.isladuala/init.sqf index d9379a57f..13ea4bee9 100644 --- a/Server Files/MPMissions/DayZ_Epoch_12.isladuala/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_12.isladuala/init.sqf @@ -102,5 +102,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf" From 4f2d11f213628889197281fc01e76ecb783e05bb Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:06:51 +0100 Subject: [PATCH 12/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_13.Tavi/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_13.Tavi/init.sqf b/Server Files/MPMissions/DayZ_Epoch_13.Tavi/init.sqf index 468a5d730..a322f6b22 100644 --- a/Server Files/MPMissions/DayZ_Epoch_13.Tavi/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_13.Tavi/init.sqf @@ -114,5 +114,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf" From bda7379a8654eab345c09ec7b8275b9ef9f490c8 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:07:09 +0100 Subject: [PATCH 13/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_15.namalsk/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_15.namalsk/init.sqf b/Server Files/MPMissions/DayZ_Epoch_15.namalsk/init.sqf index da240baca..e1b826b81 100644 --- a/Server Files/MPMissions/DayZ_Epoch_15.namalsk/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_15.namalsk/init.sqf @@ -115,5 +115,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf" From 7b196ab571adbdcfd4d32e5add6eb261c8eb5003 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:07:23 +0100 Subject: [PATCH 14/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_16.Panthera2/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_16.Panthera2/init.sqf b/Server Files/MPMissions/DayZ_Epoch_16.Panthera2/init.sqf index 367d3760d..6b726dde7 100644 --- a/Server Files/MPMissions/DayZ_Epoch_16.Panthera2/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_16.Panthera2/init.sqf @@ -82,4 +82,7 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; -}; \ No newline at end of file + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; +}; From ed80ef8872d37b26321ac5ce6411e9cd56c0fefd Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:07:41 +0100 Subject: [PATCH 15/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_17.Chernarus/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_17.Chernarus/init.sqf b/Server Files/MPMissions/DayZ_Epoch_17.Chernarus/init.sqf index ab4f3fdc8..67b15e828 100644 --- a/Server Files/MPMissions/DayZ_Epoch_17.Chernarus/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_17.Chernarus/init.sqf @@ -102,5 +102,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf" From 0fd67bb12a3d1ecc09bb84bbb884ae4553f13726 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:07:59 +0100 Subject: [PATCH 16/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_18.Sara/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_18.Sara/init.sqf b/Server Files/MPMissions/DayZ_Epoch_18.Sara/init.sqf index 989111919..be0be643e 100644 --- a/Server Files/MPMissions/DayZ_Epoch_18.Sara/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_18.Sara/init.sqf @@ -73,4 +73,7 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; -}; \ No newline at end of file + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; +}; From 1a72d25ec6bce52ebf2069abccc4590564c0a2f0 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:08:15 +0100 Subject: [PATCH 17/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_2.Utes/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_2.Utes/init.sqf b/Server Files/MPMissions/DayZ_Epoch_2.Utes/init.sqf index 10176ffd0..709e83f85 100644 --- a/Server Files/MPMissions/DayZ_Epoch_2.Utes/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_2.Utes/init.sqf @@ -102,5 +102,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf" From 0bad9c49295ef5c0f93a0c93e17959ecc86fe3ae Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:08:31 +0100 Subject: [PATCH 18/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_3.Shapur_BAF/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_3.Shapur_BAF/init.sqf b/Server Files/MPMissions/DayZ_Epoch_3.Shapur_BAF/init.sqf index aa8da7df7..854dc8865 100644 --- a/Server Files/MPMissions/DayZ_Epoch_3.Shapur_BAF/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_3.Shapur_BAF/init.sqf @@ -102,5 +102,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf" From 5d2af72ba21f4b71f50f892798182f6a05373ae2 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:08:46 +0100 Subject: [PATCH 19/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_4.Zargabad/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_4.Zargabad/init.sqf b/Server Files/MPMissions/DayZ_Epoch_4.Zargabad/init.sqf index faedc72b1..2c2416c84 100644 --- a/Server Files/MPMissions/DayZ_Epoch_4.Zargabad/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_4.Zargabad/init.sqf @@ -102,5 +102,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf" From 68993297ddd0a83fc66c47154847ed515b134fd2 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:09:01 +0100 Subject: [PATCH 20/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_5.Bootcamp_ACR/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_5.Bootcamp_ACR/init.sqf b/Server Files/MPMissions/DayZ_Epoch_5.Bootcamp_ACR/init.sqf index 6c6073f65..3123e1885 100644 --- a/Server Files/MPMissions/DayZ_Epoch_5.Bootcamp_ACR/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_5.Bootcamp_ACR/init.sqf @@ -102,5 +102,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf" From dd487b8789a7ef2416e4c250e6356fca9a0c43ef Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:09:15 +0100 Subject: [PATCH 21/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_6.Dingor/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_6.Dingor/init.sqf b/Server Files/MPMissions/DayZ_Epoch_6.Dingor/init.sqf index 007d8efbe..378b9ed78 100644 --- a/Server Files/MPMissions/DayZ_Epoch_6.Dingor/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_6.Dingor/init.sqf @@ -103,5 +103,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf" From 894763f9280cf6340cc86f51e1ce5e8a572dab90 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:09:29 +0100 Subject: [PATCH 22/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_7.Lingor/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_7.Lingor/init.sqf b/Server Files/MPMissions/DayZ_Epoch_7.Lingor/init.sqf index 178583802..48b606da7 100644 --- a/Server Files/MPMissions/DayZ_Epoch_7.Lingor/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_7.Lingor/init.sqf @@ -103,5 +103,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf" From 831dd2730c979ce6ab9e50f7a637140596e6a143 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:09:42 +0100 Subject: [PATCH 23/24] Update init.sqf --- .../MPMissions/DayZ_Epoch_8.ProvingGrounds_PMC/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_8.ProvingGrounds_PMC/init.sqf b/Server Files/MPMissions/DayZ_Epoch_8.ProvingGrounds_PMC/init.sqf index d112e8d2a..e6652dfe9 100644 --- a/Server Files/MPMissions/DayZ_Epoch_8.ProvingGrounds_PMC/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_8.ProvingGrounds_PMC/init.sqf @@ -102,5 +102,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf" From 8e64fb8155c15affb24ab233f2ac34b6f549e0b6 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 2 Sep 2013 17:09:58 +0100 Subject: [PATCH 24/24] Update init.sqf --- Server Files/MPMissions/DayZ_Epoch_9.Woodland_ACR/init.sqf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server Files/MPMissions/DayZ_Epoch_9.Woodland_ACR/init.sqf b/Server Files/MPMissions/DayZ_Epoch_9.Woodland_ACR/init.sqf index 5676e296e..05bd4c1a8 100644 --- a/Server Files/MPMissions/DayZ_Epoch_9.Woodland_ACR/init.sqf +++ b/Server Files/MPMissions/DayZ_Epoch_9.Woodland_ACR/init.sqf @@ -102,5 +102,8 @@ if (!isDedicated) then { _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}]; _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf"; + + //Lights + [] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf"; }; -#include "\z\addons\dayz_code\system\REsec.sqf" \ No newline at end of file +#include "\z\addons\dayz_code\system\REsec.sqf"