Skip to content

Commit 86cbc4b

Browse files
committed
Skip player squads
Groups with player squad leaders will be skipped.
1 parent 8f116b3 commit 86cbc4b

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

Vcom/FSMS/fn_SQUADBEH.fsm

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/*%FSM<COMPILE "E:\Games\SteamLibrary\steamapps\common\Arma 3 Tools\FSMEditor\scriptedFSM.cfg, SQUADBEH">*/
1+
/*%FSM<COMPILE "D:\Games\SteamLibrary\steamapps\common\Arma 3 Tools\FSMEditor\scriptedFSM.cfg, SQUADBEH">*/
22
/*%FSM<HEAD>*/
33
/*
44
item0[] = {"Begin_State",0,250,50.000000,700.000000,150.000000,750.000000,0.000000,"Begin State"};
5-
item1[] = {"Cond",4,218,-100.000000,700.000000,0.000000,750.000000,50.000000,"Cond"};
5+
item1[] = {"Cond",4,4314,-100.000000,700.000000,0.000000,750.000000,50.000000,"Cond"};
66
item2[] = {"Exit_FSM",1,250,-250.000000,700.000000,-175.000000,750.000000,0.000000,"Exit FSM"};
77
item3[] = {"Continue",8,218,50.000000,575.000000,150.000000,625.000000,0.000000,"Continue"};
88
item4[] = {"Start_Point",2,250,50.000000,400.000000,150.000000,450.000000,0.000000,"Start Point"};
@@ -31,7 +31,7 @@ item26[] = {"Arty_Check",4,218,1100.000000,250.000000,1200.000000,300.000000,84.
3131
item27[] = {"",7,210,1258.500000,21.000000,1266.500000,29.000000,0.000000,""};
3232
item28[] = {"Flank_Orders",4,218,1050.000000,225.000000,1150.000000,275.000000,105.000000,"Flank Orders"};
3333
item29[] = {"",7,210,296.000000,21.000000,304.000000,29.000000,0.000000,""};
34-
item30[] = {"Light_Garrison",4,4314,1000.000000,200.000000,1100.000000,250.000000,88.000000,"Light Garrison"};
34+
item30[] = {"Light_Garrison",4,218,1000.000000,200.000000,1100.000000,250.000000,88.000000,"Light Garrison"};
3535
item31[] = {"Five_Minute_Chec",4,218,-300.000000,300.000000,-200.000000,350.000000,950.000000,"Five Minute Checks"};
3636
item32[] = {"Five_Minute_Chec",2,250,-300.000000,150.000000,-200.000000,200.000000,0.000000,"Five Minute Checks"};
3737
item33[] = {"CheckIfStatic",4,218,949.004028,175.000031,1050.000122,225.996094,92.000000,"CheckIfStatic"};
@@ -113,8 +113,8 @@ link63[] = {40,41};
113113
link64[] = {42,27};
114114
link65[] = {43,27};
115115
link66[] = {44,27};
116-
globals[] = {0.000000,0,0,0,0,640,480,2,623,6316128,1,741.142639,1313.325439,769.759888,-88.514755,552,828,1};
117-
window[] = {2,-1,-1,-32180,-32000,1034,-1254,-509,80,3,570};
116+
globals[] = {0.000000,0,0,0,0,640,480,2,623,6316128,1,-602.326355,300.841248,816.916199,6.357727,985,884,1};
117+
window[] = {2,-1,-1,-1,-1,1036,136,881,82,3,1003};
118118
*//*%FSM</HEAD>*/
119119
class FSM
120120
{
@@ -142,7 +142,9 @@ class FSM
142142
priority = 50.000000;
143143
to="Exit_FSM";
144144
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
145-
condition=/*%FSM<CONDITION""">*/"_Group getvariable [""Vcm_Disable"",false] || {!(side _group in VCM_SIDEENABLED)}"/*%FSM</CONDITION""">*/;
145+
condition=/*%FSM<CONDITION""">*/"isPlayer _leader || " \n
146+
"{_Group getvariable [""Vcm_Disable"",false]} || " \n
147+
"{!(side _group in VCM_SIDEENABLED)}"/*%FSM</CONDITION""">*/;
146148
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
147149
};
148150
/*%FSM</LINK>*/
@@ -312,7 +314,10 @@ class FSM
312314
priority = 700.000000;
313315
to="Exit_FSM_1";
314316
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
315-
condition=/*%FSM<CONDITION""">*/"(_Group getvariable [""Vcm_Disable"",false]) || {(((units _Group) findIf {alive _x}) isEqualTo -1)} || {!(side _group in VCM_SIDEENABLED)}"/*%FSM</CONDITION""">*/;
317+
condition=/*%FSM<CONDITION""">*/"isPlayer _leader || " \n
318+
"{_Group getvariable [""Vcm_Disable"",false]} || " \n
319+
"{(((units _Group) findIf {alive _x}) isEqualTo -1)} || " \n
320+
"{!(side _group in VCM_SIDEENABLED)}"/*%FSM</CONDITION""">*/;
316321
action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
317322
};
318323
/*%FSM</LINK>*/

Vcom/changelog.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

6-
## [3.2] - 2018-12-15
6+
## [3.2] - 2019-01-11
77
### Added
88
- VCOM Driving (Experimental)
99
- AI accuracy settings can be tweaked in CBA
@@ -27,6 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
2727
- VCM skill settings wouldn't apply to units.
2828
- Infantry would get stuck in a rearm loop, chasing large vehicles.
2929
- Hit reactions compatibility with ACE
30+
- VCOM will not affect squads with player squad leaders
3031

3132
### Security
3233
- Loaded config files are logged in .rpt

0 commit comments

Comments
 (0)