From 78c9f6324bca9172f5e12232e1d63f792f845a6b Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Sun, 8 Dec 2013 09:33:45 -0600 Subject: [PATCH] disable null cleanup by default --- SQF/dayz_code/init/variables.sqf | 5 +++++ SQF/dayz_server/system/server_cleanup.fsm | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/SQF/dayz_code/init/variables.sqf b/SQF/dayz_code/init/variables.sqf index 69d7a9869..3a1e992ad 100644 --- a/SQF/dayz_code/init/variables.sqf +++ b/SQF/dayz_code/init/variables.sqf @@ -523,6 +523,11 @@ if(isServer) then { DZE_BackpackGuard = true; }; + if(isNil "DZE_CleanNull") then { + DZE_CleanNull = false; + }; + + //dayz_flyMonitor = []; //used for monitor flies //DZE_FlyWorkingSet = []; diff --git a/SQF/dayz_server/system/server_cleanup.fsm b/SQF/dayz_server/system/server_cleanup.fsm index 786a930e9..e52c4531a 100644 --- a/SQF/dayz_server/system/server_cleanup.fsm +++ b/SQF/dayz_server/system/server_cleanup.fsm @@ -7,7 +7,7 @@ item2[] = {"waiting",2,250,-75.000000,-200.000000,25.000000,-150.000000,0.000000 item3[] = {"___min_loop",4,218,-75.000000,-75.000000,25.000000,-25.000000,4.000000,"5 min" \n "loop"}; item4[] = {"sync_time",2,250,-75.000000,25.000000,25.000000,75.000000,0.000000,"sync time"}; item5[] = {"true",8,218,-75.000000,125.000000,25.000000,175.000000,0.000000,"true"}; -item6[] = {"general_cleanup",2,4346,-75.000000,200.000000,25.000000,250.000000,0.000000,"general" \n "cleanup" \n "loop"}; +item6[] = {"general_cleanup",2,250,-75.000000,200.000000,25.000000,250.000000,0.000000,"general" \n "cleanup" \n "loop"}; item7[] = {"",7,210,-491.500000,220.999985,-483.500000,229.000015,0.000000,""}; item8[] = {"",7,210,-491.500000,-253.999969,-483.500000,-246.000031,0.000000,""}; item9[] = {"",7,210,421.000000,-178.999985,428.999969,-171.000015,0.000000,""}; @@ -25,7 +25,7 @@ item20[] = {"cleanup_loot",2,250,-200.000000,25.000000,-100.000000,75.000000,0.0 item21[] = {"__5_min__loop",4,218,175.000000,-75.000000,275.000000,-25.000000,6.000000,"15 min" \n " loop"}; item22[] = {"cleanup_animals",2,250,175.000000,25.000000,275.000000,75.000000,0.000000,"cleanup" \n "animals and fire"}; item23[] = {"__0_min__loop",4,218,300.000000,-75.000000,400.000000,-25.000000,7.000000,"30 min" \n " loop"}; -item24[] = {"cleanup_null",2,250,300.000000,25.000000,400.000000,75.000000,0.000000,"cleanup" \n "null"}; +item24[] = {"cleanup_null",2,4346,300.000000,25.000000,400.000000,75.000000,0.000000,"cleanup" \n "null"}; link0[] = {0,11}; link1[] = {1,2}; link2[] = {2,3}; @@ -58,8 +58,8 @@ link28[] = {21,22}; link29[] = {22,5}; link30[] = {23,24}; link31[] = {24,5}; -globals[] = {25.000000,1,0,0,0,640,480,1,42,6316128,1,-508.946564,440.498199,435.888916,-341.331024,861,880,1}; -window[] = {2,-1,-1,-1,-1,838,1706,2998,26,3,879}; +globals[] = {25.000000,1,0,0,0,640,480,1,42,6316128,1,-508.946564,440.498199,435.888916,-341.331024,861,630,1}; +window[] = {2,-1,-1,-1,-1,838,26,1318,26,3,879}; *//*%FSM*/ class FSM { @@ -392,7 +392,9 @@ class FSM class cleanup_null { name = "cleanup_null"; - init = /*%FSM*/"[] spawn server_spawnCleanNull;"/*%FSM*/; + init = /*%FSM*/"if (DZE_CleanNull) then {" \n + " [] spawn server_spawnCleanNull;" \n + "};"/*%FSM*/; precondition = /*%FSM*/""/*%FSM*/; class Links {