mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Little sleep to fix Server Lags?
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*%FSM<COMPILE "F:\Program Files (x86)\Bohemia Interactive\Tools\FSM Editor Personal Edition\scriptedFSM.cfg, DayZ Server Cleanup">*/
|
||||
/*%FSM<COMPILE "D:\Programme\Bohemia Interactive\Tools\FSM Editor Personal Edition\scriptedFSM.cfg, DayZ Server Cleanup">*/
|
||||
/*%FSM<HEAD>*/
|
||||
/*
|
||||
item0[] = {"init",0,250,-75.000000,-400.000000,25.000000,-350.000000,0.000000,"init"};
|
||||
@@ -8,10 +8,10 @@ item3[] = {"time_sync",4,218,-325.000000,-25.000000,-225.000000,25.000000,1.0000
|
||||
item4[] = {"sync_the_time",2,250,-325.000000,50.000000,-225.000000,100.000000,0.000000,"sync" \n "the time"};
|
||||
item5[] = {"true",8,218,-75.000000,125.000000,25.000000,175.000000,0.000000,"true"};
|
||||
item6[] = {"general_cleanup",2,250,-75.000000,200.000000,25.000000,250.000000,0.000000,"general" \n "cleanup" \n "loop"};
|
||||
item7[] = {"",7,210,-304.000000,220.999985,-296.000000,229.000015,0.000000,""};
|
||||
item8[] = {"",7,210,-304.000000,-154.000000,-296.000000,-146.000000,0.000000,""};
|
||||
item9[] = {"",7,210,221.000000,-79.000000,229.000000,-71.000000,0.000000,""};
|
||||
item10[] = {"",7,210,221.000000,146.000000,229.000000,154.000000,0.000000,""};
|
||||
item7[] = {"",7,210,-341.500000,220.999985,-333.500000,229.000015,0.000000,""};
|
||||
item8[] = {"",7,210,-341.500000,-154.000000,-333.500000,-146.000000,0.000000,""};
|
||||
item9[] = {"",7,210,283.500031,-79.000000,291.500000,-71.000000,0.000000,""};
|
||||
item10[] = {"",7,210,283.500031,146.000000,291.500000,154.000000,0.000000,""};
|
||||
item11[] = {"initialized",4,218,-75.000000,-325.000000,25.000000,-275.000000,0.000000,"initialized"};
|
||||
item12[] = {"prepare",2,250,-75.000000,-250.000000,25.000000,-200.000000,0.000000,"prepare"};
|
||||
item13[] = {"update_objects",2,250,175.000000,50.000000,275.000000,100.000000,0.000000,"update objects"};
|
||||
@@ -48,8 +48,8 @@ link22[] = {17,18};
|
||||
link23[] = {18,5};
|
||||
link24[] = {19,20};
|
||||
link25[] = {20,5};
|
||||
globals[] = {25.000000,1,0,0,0,640,480,1,33,6316128,1,-352.091705,309.781433,349.997772,-250.100601,675,612,1};
|
||||
window[] = {0,-1,-1,-1,-1,888,1810,3088,130,1,693};
|
||||
globals[] = {25.000000,1,0,0,0,640,480,1,33,6316128,1,-413.097137,179.503510,334.693787,-203.474945,675,613,1};
|
||||
window[] = {0,-1,-1,-1,-1,1008,250,1528,250,1,693};
|
||||
*//*%FSM</HEAD>*/
|
||||
class FSM
|
||||
{
|
||||
@@ -370,6 +370,7 @@ class FSM
|
||||
" _nearby = {(isPlayer _x) and (alive _x)} count (_x nearEntities [[""CAManBase"",""AllVehicles""], 130]);" \n
|
||||
" if ( (!_keep) && (_nearby==0) && (_age > 20)) then {" \n
|
||||
" deleteVehicle _x;" \n
|
||||
" sleep 0.25;" \n
|
||||
" _delQty = _delQty + 1;" \n
|
||||
" };" \n
|
||||
" };" \n
|
||||
@@ -378,6 +379,7 @@ class FSM
|
||||
"{" \n
|
||||
" if (local _x) then {" \n
|
||||
" deleteVehicle _x;" \n
|
||||
" sleep 0.25;" \n
|
||||
" _delQtyFP = _delQtyFP + 1;" \n
|
||||
" };" \n
|
||||
"} forEach _fireplaces;" \n
|
||||
|
||||
Reference in New Issue
Block a user