mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-07 08:42:54 +03:00
1.7.5.M1D7
This commit is contained in:
@@ -1085,12 +1085,9 @@ class FSM
|
||||
"dayz_slowCheck = [] spawn player_spawn_2;" \n
|
||||
"" \n
|
||||
"_world = toUpper(worldName); //toUpper(getText (configFile >> ""CfgWorlds"" >> (worldName) >> ""description""));" \n
|
||||
"_nearestCity = nearestLocations [getPos player, [""NameCityCapital"",""NameCity"",""NameVillage"",""NameLocal""],500];" \n
|
||||
"_nearestCity = (nearestLocations [getPos player, [""NameCityCapital"",""NameCity"",""NameVillage"",""NameLocal""],1000] select 0);" \n
|
||||
"_town = ""Wilderness"";" \n
|
||||
"" \n
|
||||
"diag_log (""NearestCity"" + str(_nearestCity));" \n
|
||||
"" \n
|
||||
"if (count _nearestCity > 0) then {_town = text (_nearestCity select 0)};" \n
|
||||
"if (!isNull _nearestCity) then {_town = text _nearestCity};" \n
|
||||
"" \n
|
||||
"_strTime = call curTimeStr;" \n
|
||||
"_strDate = date;" \n
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/*%FSM<HEAD>*/
|
||||
/*
|
||||
item0[] = {"init",0,250,-300.000000,-250.000000,-200.000000,-200.000000,0.000000,"init"};
|
||||
item1[] = {"End",1,250,175.000000,-250.000000,275.000000,-200.000000,0.000000,"End"};
|
||||
item1[] = {"End",1,250,50.000000,-250.000000,150.000000,-200.000000,0.000000,"End"};
|
||||
item2[] = {"Not_Alive",4,218,0.000000,300.000000,100.000000,350.000000,5.000000,"Not" \n "Alive"};
|
||||
item3[] = {"Nobody_Near",4,218,0.000000,375.000000,100.000000,425.000000,4.000000,"Nobody" \n "Near"};
|
||||
item4[] = {"loiter",4,218,-300.000000,0.000000,-200.000000,50.000000,0.000000,"loiter"};
|
||||
@@ -14,8 +14,8 @@ item9[] = {"true",8,218,-300.000000,-175.000000,-200.000000,-125.000000,0.000000
|
||||
item10[] = {"Begin",2,250,-300.000000,-100.000000,-200.000000,-50.000000,0.000000,"Begin"};
|
||||
item11[] = {"",7,210,-254.000046,-29.000004,-245.999954,-20.999996,0.000000,""};
|
||||
item12[] = {"",7,210,-204.000046,146.000000,-195.999954,154.000000,0.000000,""};
|
||||
item13[] = {"Has_Target",4,4314,-150.000000,225.000000,-50.000000,275.000000,1.000000,"Has" \n "Target"};
|
||||
item14[] = {"Chase",2,250,-150.000000,300.000000,-50.000000,350.000000,0.000000,"Chase"};
|
||||
item13[] = {"Has_Target",4,218,-150.000000,225.000000,-50.000000,275.000000,1.000000,"Has" \n "Target"};
|
||||
item14[] = {"Chase",2,4346,-150.000000,300.000000,-50.000000,350.000000,0.000000,"Chase"};
|
||||
item15[] = {"",7,210,-29.000006,146.000000,-20.999996,154.000000,0.000000,""};
|
||||
item16[] = {"",7,210,-29.000006,196.000000,-20.999996,204.000000,0.000000,""};
|
||||
item17[] = {"",7,210,-104.000000,196.000000,-95.999992,204.000000,0.000000,""};
|
||||
@@ -24,10 +24,10 @@ item19[] = {"Time_Check",4,218,-275.000000,300.000000,-175.000000,350.000000,0.0
|
||||
item20[] = {"No_Target",4,218,-275.000000,375.000000,-175.000000,425.000000,3.000000,"No" \n "Target"};
|
||||
item21[] = {"",7,210,-479.000000,396.000000,-471.000000,404.000000,0.000000,""};
|
||||
item22[] = {"",7,210,-479.000000,146.000000,-471.000000,154.000000,0.000000,""};
|
||||
item23[] = {"",7,210,221.000000,321.000000,229.000000,329.000000,0.000000,""};
|
||||
item24[] = {"",7,210,221.000000,396.000000,229.000000,404.000000,0.000000,""};
|
||||
item25[] = {"Cleanup_",2,250,175.000000,200.000000,275.000000,250.000000,0.000000,"Cleanup?"};
|
||||
item26[] = {"nobody_around",4,218,175.000000,-25.000000,275.000000,25.000000,0.000000,"nobody" \n "around"};
|
||||
item23[] = {"",7,210,133.499985,321.000000,141.500000,329.000000,0.000000,""};
|
||||
item24[] = {"",7,210,133.500000,396.000000,141.500000,404.000000,0.000000,""};
|
||||
item25[] = {"Cleanup_",2,250,-25.000000,50.000000,75.000000,100.000000,0.000000,"Cleanup?"};
|
||||
item26[] = {"nobody_around",4,218,50.000000,-50.000000,150.000000,0.000000,0.000000,"nobody" \n "around"};
|
||||
item27[] = {"",7,210,-104.000023,396.000000,-95.999992,404.000000,0.000000,""};
|
||||
item28[] = {"cant_see",4,218,-275.000000,450.000000,-175.000000,500.000000,2.000000,"cant" \n "see"};
|
||||
item29[] = {"Finish_Move",2,250,-275.000000,525.000000,-175.000000,575.000000,0.000000,"Finish" \n "Move"};
|
||||
@@ -35,34 +35,24 @@ item30[] = {"finished",4,218,-425.000000,525.000000,-325.000000,575.000000,1.000
|
||||
item31[] = {"",7,210,-479.000000,546.000000,-471.000000,554.000000,0.000000,""};
|
||||
item32[] = {"",7,210,-29.000002,546.000000,-20.999998,554.000000,0.000000,""};
|
||||
item33[] = {"",7,210,-304.000000,146.000000,-296.000000,154.000000,0.000000,""};
|
||||
item34[] = {"someone_here",4,218,300.000000,200.000000,400.000000,250.000000,0.000000,"someone" \n "here"};
|
||||
item35[] = {"wait",2,250,300.000000,125.000000,400.000000,175.000000,0.000000,"wait"};
|
||||
item36[] = {"time_up",4,218,300.000000,-25.000000,400.000000,25.000000,0.000000,"time" \n "up"};
|
||||
item37[] = {"",7,210,346.000000,95.999992,354.000000,104.000000,0.000000,""};
|
||||
item38[] = {"",7,210,221.000000,96.000008,229.000000,103.999977,0.000000,""};
|
||||
item39[] = {"Time_Check",4,218,425.000000,125.000000,525.000000,175.000000,0.000000,"Time" \n "Check"};
|
||||
item40[] = {"",7,210,346.000000,-79.000000,354.000000,-71.000000,0.000000,""};
|
||||
item41[] = {"",7,210,221.000000,-79.000000,229.000000,-71.000000,0.000000,""};
|
||||
item42[] = {"too_long",4,218,-425.000000,600.000000,-325.000000,650.000000,0.000000,"too long"};
|
||||
item43[] = {"",7,210,-229.000000,621.000000,-221.000000,629.000000,0.000000,""};
|
||||
item44[] = {"",7,210,-479.000000,621.000000,-471.000000,629.000000,0.000000,""};
|
||||
item45[] = {"Reset_Targeting",2,250,-525.000000,325.000000,-425.000000,375.000000,0.000000,"Reset" \n "Targeting"};
|
||||
item46[] = {"No_target",4,218,-525.000000,250.000000,-425.000000,300.000000,0.000000,"No target"};
|
||||
item47[] = {"deleted",4,218,425.000000,-25.000000,525.000000,25.000000,0.000000,"deleted"};
|
||||
item48[] = {"",7,210,471.000000,-79.000000,479.000000,-71.000000,0.000000,""};
|
||||
item49[] = {"",7,210,471.000000,95.999977,479.000000,104.000023,0.000000,""};
|
||||
item50[] = {"",7,210,-104.000000,471.000000,-95.999992,479.000000,0.000000,""};
|
||||
item51[] = {"player_check",4,218,-425.000000,0.000000,-325.000000,50.000000,0.000000,"player" \n "check"};
|
||||
item52[] = {"is_Dedicated",4,218,50.000000,-250.000000,150.000000,-200.000000,5.000000,"is" \n "Dedicated"};
|
||||
item34[] = {"someone_here",4,218,-75.000000,-50.000000,25.000000,0.000000,0.000000,"someone" \n "here"};
|
||||
item35[] = {"too_long",4,218,-425.000000,600.000000,-325.000000,650.000000,0.000000,"too long"};
|
||||
item36[] = {"",7,210,-229.000000,621.000000,-221.000000,629.000000,0.000000,""};
|
||||
item37[] = {"",7,210,-479.000000,621.000000,-471.000000,629.000000,0.000000,""};
|
||||
item38[] = {"Reset_Targeting",2,250,-525.000000,325.000000,-425.000000,375.000000,0.000000,"Reset" \n "Targeting"};
|
||||
item39[] = {"No_target",4,218,-525.000000,250.000000,-425.000000,300.000000,0.000000,"No target"};
|
||||
item40[] = {"",7,210,-104.000000,471.000000,-95.999992,479.000000,0.000000,""};
|
||||
item41[] = {"player_check",4,218,-425.000000,0.000000,-325.000000,50.000000,0.000000,"player" \n "check"};
|
||||
item42[] = {"is_Dedicated",4,218,-125.000000,-250.000000,-25.000000,-200.000000,5.000000,"is" \n "Dedicated"};
|
||||
link0[] = {0,9};
|
||||
link1[] = {0,52};
|
||||
link1[] = {0,42};
|
||||
link2[] = {2,23};
|
||||
link3[] = {3,24};
|
||||
link4[] = {4,5};
|
||||
link5[] = {5,6};
|
||||
link6[] = {5,12};
|
||||
link7[] = {5,18};
|
||||
link8[] = {5,51};
|
||||
link8[] = {5,41};
|
||||
link9[] = {6,5};
|
||||
link10[] = {7,2};
|
||||
link11[] = {7,8};
|
||||
@@ -82,48 +72,35 @@ link24[] = {17,13};
|
||||
link25[] = {18,5};
|
||||
link26[] = {19,14};
|
||||
link27[] = {20,21};
|
||||
link28[] = {21,45};
|
||||
link28[] = {21,38};
|
||||
link29[] = {22,33};
|
||||
link30[] = {23,25};
|
||||
link31[] = {24,23};
|
||||
link32[] = {25,34};
|
||||
link33[] = {25,38};
|
||||
link34[] = {26,41};
|
||||
link32[] = {25,26};
|
||||
link33[] = {25,34};
|
||||
link34[] = {26,1};
|
||||
link35[] = {27,20};
|
||||
link36[] = {27,50};
|
||||
link36[] = {27,40};
|
||||
link37[] = {28,29};
|
||||
link38[] = {29,30};
|
||||
link39[] = {29,32};
|
||||
link40[] = {29,43};
|
||||
link40[] = {29,36};
|
||||
link41[] = {30,31};
|
||||
link42[] = {31,21};
|
||||
link43[] = {32,8};
|
||||
link44[] = {33,5};
|
||||
link45[] = {34,35};
|
||||
link45[] = {34,5};
|
||||
link46[] = {35,37};
|
||||
link47[] = {35,39};
|
||||
link48[] = {36,40};
|
||||
link49[] = {37,36};
|
||||
link50[] = {37,38};
|
||||
link51[] = {37,49};
|
||||
link52[] = {38,26};
|
||||
link53[] = {39,35};
|
||||
link54[] = {40,41};
|
||||
link55[] = {41,1};
|
||||
link56[] = {42,44};
|
||||
link57[] = {43,42};
|
||||
link58[] = {44,31};
|
||||
link59[] = {45,17};
|
||||
link60[] = {45,46};
|
||||
link61[] = {46,22};
|
||||
link62[] = {47,48};
|
||||
link63[] = {48,40};
|
||||
link64[] = {49,47};
|
||||
link65[] = {50,28};
|
||||
link66[] = {51,5};
|
||||
link67[] = {52,1};
|
||||
globals[] = {25.000000,1,0,0,0,640,480,1,99,6316128,1,-558.318542,127.785744,597.327209,-38.360462,626,580,1};
|
||||
window[] = {0,-1,-1,-1,-1,755,44,1252,44,1,643};
|
||||
link47[] = {36,35};
|
||||
link48[] = {37,31};
|
||||
link49[] = {38,17};
|
||||
link50[] = {38,39};
|
||||
link51[] = {39,22};
|
||||
link52[] = {40,28};
|
||||
link53[] = {41,5};
|
||||
link54[] = {42,1};
|
||||
globals[] = {25.000000,1,0,0,0,640,480,1,101,6316128,1,-671.713867,363.212036,624.148865,-248.208023,713,601,1};
|
||||
window[] = {2,-1,-1,-32000,-32000,777,66,1274,66,3,730};
|
||||
*//*%FSM</HEAD>*/
|
||||
class FSM
|
||||
{
|
||||
@@ -249,9 +226,6 @@ class FSM
|
||||
"if (!_hasMoved) then {" \n
|
||||
" _agent setVariable[""doLoiter"",true,true];" \n
|
||||
"};" \n
|
||||
"if (!moveToCompleted _agent) then {" \n
|
||||
" _agent moveTo (position _agent);" \n
|
||||
"};" \n
|
||||
"" \n
|
||||
"//Enable combat timer." \n
|
||||
"_target setVariable[""startcombattimer"", 1, true];" \n
|
||||
@@ -358,6 +332,7 @@ class FSM
|
||||
{
|
||||
name = "Chase";
|
||||
init = /*%FSM<STATEINIT""">*/"_timeN = time;" \n
|
||||
"_vehicle = (getPosATL vehicle player);" \n
|
||||
"" \n
|
||||
"if (speed _agent < 0.1) then {_countr = _countr + 1} else {_countr = 0};" \n
|
||||
"_target = _agent call zombie_findTargetAgent;" \n
|
||||
@@ -365,14 +340,24 @@ class FSM
|
||||
"_targetPos = getPosATL _target;" \n
|
||||
"" \n
|
||||
"//Move to target" \n
|
||||
"_agent moveTo _targetPos;" \n
|
||||
"_agent forceSpeed 7;" \n
|
||||
"if (vehicle player == player) then {" \n
|
||||
" _agent moveTo _targetPos;" \n
|
||||
" _agent forceSpeed 6;" \n
|
||||
"} else {" \n
|
||||
" _agent moveTo _vehicle;" \n
|
||||
" _agent forceSpeed 6;" \n
|
||||
"};" \n
|
||||
"" \n
|
||||
"//Check if LOS" \n
|
||||
"if (_losCheck == 2) then {" \n
|
||||
" _losCheck = 0;" \n
|
||||
"" \n
|
||||
"if (_agent distance player <= 100) then {" \n
|
||||
" _cantSee = [_agent,_target] call dayz_losCheck;" \n
|
||||
"};" \n
|
||||
"" \n
|
||||
"//Check if LOS" \n
|
||||
"//if (_losCheck == 2) then {" \n
|
||||
"// _losCheck = 0;" \n
|
||||
"//_cantSee = [_agent,_target] call dayz_losCheck;" \n
|
||||
"//};" \n
|
||||
""/*%FSM</STATEINIT""">*/;
|
||||
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
|
||||
class Links
|
||||
@@ -434,13 +419,23 @@ class FSM
|
||||
class Cleanup_
|
||||
{
|
||||
name = "Cleanup_";
|
||||
init = /*%FSM<STATEINIT""">*/"_waitStart = time;" \n
|
||||
init = /*%FSM<STATEINIT""">*/"_list = (getposATL _agent) nearEntities [[""CAManBase"",""AllVehicles""],400];" \n
|
||||
"_isSomeone = ({isPlayer _x} count _list) > 0;" \n
|
||||
"" \n
|
||||
"_list = (getposATL _agent) nearEntities [[""CAManBase"",""AllVehicles""],400];" \n
|
||||
"_isSomeone = ({isPlayer _x} count _list) > 0;"/*%FSM</STATEINIT""">*/;
|
||||
"_waitStart = time;"/*%FSM</STATEINIT""">*/;
|
||||
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
|
||||
class Links
|
||||
{
|
||||
/*%FSM<LINK "someone_here">*/
|
||||
class someone_here
|
||||
{
|
||||
priority = 0.000000;
|
||||
to="Loiter";
|
||||
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
|
||||
condition=/*%FSM<CONDITION""">*/"_isSomeone"/*%FSM</CONDITION""">*/;
|
||||
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
|
||||
};
|
||||
/*%FSM</LINK>*/
|
||||
/*%FSM<LINK "nobody_around">*/
|
||||
class nobody_around
|
||||
{
|
||||
@@ -451,16 +446,6 @@ class FSM
|
||||
action=/*%FSM<ACTION""">*/"dayz_spawnZombies = dayz_spawnZombies - 1;"/*%FSM</ACTION""">*/;
|
||||
};
|
||||
/*%FSM</LINK>*/
|
||||
/*%FSM<LINK "someone_here">*/
|
||||
class someone_here
|
||||
{
|
||||
priority = 0.000000;
|
||||
to="wait";
|
||||
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
|
||||
condition=/*%FSM<CONDITION""">*/"_isSomeone"/*%FSM</CONDITION""">*/;
|
||||
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
|
||||
};
|
||||
/*%FSM</LINK>*/
|
||||
};
|
||||
};
|
||||
/*%FSM</STATE>*/
|
||||
@@ -508,60 +493,6 @@ class FSM
|
||||
};
|
||||
};
|
||||
/*%FSM</STATE>*/
|
||||
/*%FSM<STATE "wait">*/
|
||||
class wait
|
||||
{
|
||||
name = "wait";
|
||||
init = /*%FSM<STATEINIT""">*/"_list = (getposATL _agent) nearEntities [[""CAManBase"",""AllVehicles""],300];" \n
|
||||
"_isSomeone = ({isPlayer _x} count _list) > 0;" \n
|
||||
"" \n
|
||||
"_timeN = time;"/*%FSM</STATEINIT""">*/;
|
||||
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
|
||||
class Links
|
||||
{
|
||||
/*%FSM<LINK "time_up">*/
|
||||
class time_up
|
||||
{
|
||||
priority = 0.000000;
|
||||
to="End";
|
||||
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
|
||||
condition=/*%FSM<CONDITION""">*/"(time - _waitStart) > 300"/*%FSM</CONDITION""">*/;
|
||||
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
|
||||
};
|
||||
/*%FSM</LINK>*/
|
||||
/*%FSM<LINK "nobody_around">*/
|
||||
class nobody_around
|
||||
{
|
||||
priority = 0.000000;
|
||||
to="End";
|
||||
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
|
||||
condition=/*%FSM<CONDITION""">*/"!_isSomeone"/*%FSM</CONDITION""">*/;
|
||||
action=/*%FSM<ACTION""">*/"dayz_spawnZombies = dayz_spawnZombies - 1;"/*%FSM</ACTION""">*/;
|
||||
};
|
||||
/*%FSM</LINK>*/
|
||||
/*%FSM<LINK "deleted">*/
|
||||
class deleted
|
||||
{
|
||||
priority = 0.000000;
|
||||
to="End";
|
||||
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
|
||||
condition=/*%FSM<CONDITION""">*/"isNull _agent;"/*%FSM</CONDITION""">*/;
|
||||
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
|
||||
};
|
||||
/*%FSM</LINK>*/
|
||||
/*%FSM<LINK "Time_Check">*/
|
||||
class Time_Check
|
||||
{
|
||||
priority = 0.000000;
|
||||
to="wait";
|
||||
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
|
||||
condition=/*%FSM<CONDITION""">*/"(time - _timeN) > 30"/*%FSM</CONDITION""">*/;
|
||||
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
|
||||
};
|
||||
/*%FSM</LINK>*/
|
||||
};
|
||||
};
|
||||
/*%FSM</STATE>*/
|
||||
/*%FSM<STATE "Reset_Targeting">*/
|
||||
class Reset_Targeting
|
||||
{
|
||||
@@ -595,9 +526,6 @@ class FSM
|
||||
"if (!_hasMoved) then {" \n
|
||||
" _agent setVariable[""doLoiter"",true,true];" \n
|
||||
"};" \n
|
||||
"if (!moveToCompleted _agent) then {" \n
|
||||
" _agent moveTo (position _agent);" \n
|
||||
"};" \n
|
||||
"" \n
|
||||
"//Enable combat timer." \n
|
||||
"_target setVariable[""startcombattimer"", 1, true];" \n
|
||||
|
||||
Reference in New Issue
Block a user