1- /*%FSM<COMPILE "G:\SteamLibrary\steamapps\common\Arma 3 Tools\FSMEditor\ scriptedFSM.cfg, Danger">*/
1+ /*%FSM<COMPILE "scriptedFSM.cfg, Danger">*/
22/*%FSM<HEAD>*/
33/*
44item0[] = {"Start_Danger",0,250,-75.000000,-175.000000,25.000000,-125.000000,0.000000,"Start Danger"};
@@ -16,7 +16,7 @@ item11[] = {"DEFINE_ENUM_BEG",-1,250,350.000000,-175.000000,700.000000,0.000000,
1616item12[] = {"Immediate",4,218,-175.000000,425.000000,-75.000000,475.000000,6.000000,"Immediate"};
1717item13[] = {"Hide",4,218,0.000000,425.000000,100.000000,475.000000,4.000000,"Hide"};
1818item14[] = {"Engage",4,218,175.000000,425.000000,275.000000,475.000000,2.000000,"Engage"};
19- item15[] = {"Roll_dodge",2,4346 ,-175.000000,600.000000,-75.000000,650.000000,0.000000,"Roll/dodge"};
19+ item15[] = {"Roll_dodge",2,250 ,-175.000000,600.000000,-75.000000,650.000000,0.000000,"Roll/dodge"};
2020item16[] = {"Stay_firm",2,250,0.000000,600.000000,100.000000,650.000000,0.000000,"Stay firm"};
2121item17[] = {"Attack",2,250,175.000000,600.000000,275.000000,650.000000,0.000000,"Attack"};
2222item18[] = {"Check_self",2,250,175.000000,275.000000,275.000000,325.000000,0.000000,"Check self"};
@@ -112,8 +112,8 @@ link42[] = {36,24};
112112link43[] = {37,3};
113113link44[] = {38,39};
114114link45[] = {41,40};
115- globals[] = {0.000000,0,0,0,0,640,480,1,67,6316128,1,-1017.364929,1292.536743,1481.373169,-707.215454 ,933,884 ,1};
116- window[] = {2,-1,-1,-1,-1,967,208,1648,208 ,3,951};
115+ globals[] = {0.000000,0,0,0,0,640,480,1,67,6316128,1,-1051.298584,1485.311401,1723.900391,-657.740051 ,933,876 ,1};
116+ window[] = {2,-1,-1,-1,-1,811,52,1492,52 ,3,951};
117117*//*%FSM</HEAD>*/
118118class FSM
119119{
@@ -126,7 +126,6 @@ class FSM
126126 name = "Start_Danger";
127127 itemno = 0;
128128 init = /*%FSM<STATEINIT""">*/"//systemchat format [""%1 danger %2 %3s"", side _this, name _this, round time];" \n
129- "private [""_timeout""];" \n
130129 "" \n
131130 "// add current data to queue for evaluation" \n
132131 "_queue pushBack [_dangerCause, _dangerPos, _dangerUntil, _dangerCausedBy];" \n
@@ -290,7 +289,7 @@ class FSM
290289 "private _evaluation = [_this, _queue] call lambs_danger_fnc_brain;" \n
291290 "" \n
292291 "// get variables" \n
293- "_evaluation params [""_immediate "", ""_hide "", ""_engage "", ""_assess"", ""_cause ""];" \n
292+ "_evaluation params [""_cause "", ""_immediate "", ""_hide "", ""_engage ""];" \n
294293 "_cause params [""_dangerCause"", ""_dangerPos"", ""_dangerUntil"", ""_dangerCausedBy""];" \n
295294 "" \n
296295 "// reset queue" \n
@@ -357,7 +356,7 @@ class FSM
357356 init = /*%FSM<STATEINIT""">*/"//systemchat format [""%1 immediate %2"", side _this, name _this];" \n
358357 "" \n
359358 "// brain" \n
360- "_timeout = [_this, _dangerCause, _dangerPos] call lambs_danger_fnc_brainReact;" \n
359+ "_dangerUntil = [_this, _dangerCause, _dangerPos] call lambs_danger_fnc_brainReact;" \n
361360 ""/*%FSM</STATEINIT""">*/;
362361 precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
363362 class Links
@@ -369,7 +368,7 @@ class FSM
369368 priority = 0.000000;
370369 to="Reset_foot";
371370 precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
372- condition=/*%FSM<CONDITION""">*/"time > _timeout "/*%FSM</CONDITION""">*/;
371+ condition=/*%FSM<CONDITION""">*/"time > _dangerUntil "/*%FSM</CONDITION""">*/;
373372 action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
374373 };
375374 /*%FSM</LINK>*/
@@ -384,7 +383,7 @@ class FSM
384383 init = /*%FSM<STATEINIT""">*/"//systemchat format [""%1 hide %2"", side _this, name _this];" \n
385384 "" \n
386385 "// brain" \n
387- "_timeout = [_this, _dangerCause, _dangerPos] call lambs_danger_fnc_brainHide;"/*%FSM</STATEINIT""">*/;
386+ "_dangerUntil = [_this, _dangerCause, _dangerPos] call lambs_danger_fnc_brainHide;"/*%FSM</STATEINIT""">*/;
388387 precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
389388 class Links
390389 {
@@ -395,7 +394,7 @@ class FSM
395394 priority = 0.000000;
396395 to="Reset_foot";
397396 precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
398- condition=/*%FSM<CONDITION""">*/"time > _timeout "/*%FSM</CONDITION""">*/;
397+ condition=/*%FSM<CONDITION""">*/"time > _dangerUntil "/*%FSM</CONDITION""">*/;
399398 action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
400399 };
401400 /*%FSM</LINK>*/
@@ -410,7 +409,7 @@ class FSM
410409 init = /*%FSM<STATEINIT""">*/"//systemchat format [""%1 engage %2"", side _this, name _this];" \n
411410 "" \n
412411 "// brain" \n
413- "_timeout = [_this, _dangerCause, _dangerCausedBy] call lambs_danger_fnc_brainEngage;"/*%FSM</STATEINIT""">*/;
412+ "_dangerUntil = [_this, _dangerCause, _dangerCausedBy] call lambs_danger_fnc_brainEngage;"/*%FSM</STATEINIT""">*/;
414413 precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
415414 class Links
416415 {
@@ -421,7 +420,7 @@ class FSM
421420 priority = 0.000000;
422421 to="Reset_foot";
423422 precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
424- condition=/*%FSM<CONDITION""">*/"time > _timeout " \n
423+ condition=/*%FSM<CONDITION""">*/"time > _dangerUntil " \n
425424 "|| {count _queue >3}"/*%FSM</CONDITION""">*/;
426425 action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
427426 };
@@ -578,7 +577,7 @@ class FSM
578577 init = /*%FSM<STATEINIT""">*/"//systemchat format [""%1 assess %2"", side _this, name _this];" \n
579578 "" \n
580579 "// brain" \n
581- "_timeout = [_this, _dangerCause, _dangerPos , _dangerCausedby] call lambs_danger_fnc_brainAssess;"/*%FSM</STATEINIT""">*/;
580+ "_dangerUntil = [_this, _dangerCausedby] call lambs_danger_fnc_brainAssess;"/*%FSM</STATEINIT""">*/;
582581 precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
583582 class Links
584583 {
@@ -589,7 +588,7 @@ class FSM
589588 priority = 0.000000;
590589 to="Reset_foot";
591590 precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
592- condition=/*%FSM<CONDITION""">*/"time > _timeout "/*%FSM</CONDITION""">*/;
591+ condition=/*%FSM<CONDITION""">*/"time > _dangerUntil "/*%FSM</CONDITION""">*/;
593592 action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
594593 };
595594 /*%FSM</LINK>*/
0 commit comments