1- _centerPos = _this select 3 ;
1+ _centerPos = ( _this select 3 ) select 0 ;
22_actionID = _this select 2 ;
33_object = _this select 0 ;
4+ _fob = (_this select 3 ) select 1 ;
5+ aliveAllUnits = {alive _x } count allunits ;
46
57if (commandpointsblu1 < 4 ) exitWith {hint " You don't have enough Command Points" };
68commandpointsblu1 = commandpointsblu1 - 4 ;
79publicvariable " commandpointsblu1" ;
8- _object removeAction _actionID ;
910
11+
12+ if ((Warcom_Limiter_Param == 1 ) && (aliveAllUnits> 99 )) exitWith {hint " *DUWS AI Limiter is ENABLED!*\n\nTry Fortifying again when there are less than 100 AI units on the map" };
13+
14+ _object removeAction _actionID ;
1015playSound " loadgun" ;
1116
1217_groupGuard = createGroup WEST ;
@@ -17,17 +22,17 @@ _aapod allowdamage false;
1722_aapod setdamage 0 ;
1823_aapod setpos [_centerpos select 0 , _centerpos select 1 ,(_centerpos select 2 )+ 3.109 ];
1924
20- _HQguard1 = _groupGuard createUnit [" B_Soldier_F" , _centerPos , [], 0 , " FORM" ];
21- _HQguard1 moveinGunner _aapod ;
25+ _fobguard1 = _groupGuard createUnit [" B_Soldier_F" , _centerPos , [], 0 , " FORM" ];
26+ _fobguard1 moveinGunner _aapod ;
2227
2328// GMG
2429_gl1pod = createVehicle [" B_GMG_01_high_F" , [0 ,0 ,0 ], [], 0 , " NONE" ];
2530_gl1pod allowdamage false ;
2631_gl1pod setdamage 0 ;
2732_gl1pod setpos [(_centerpos select 0 )- 7 , (_centerpos select 1 )+ 5.5 ];
2833
29- _HQguard1 = _groupGuard createUnit [" B_Soldier_F" , _centerPos , [], 0 , " FORM" ];
30- _HQguard1 moveinGunner _gl1pod ;
34+ _fobguard1 = _groupGuard createUnit [" B_Soldier_F" , _centerPos , [], 0 , " FORM" ];
35+ _fobguard1 moveinGunner _gl1pod ;
3136
3237// AT
3338_atpod1 = createVehicle [" B_static_AT_F" , [0 ,0 ,0 ], [], 0 , " NONE" ];
@@ -36,30 +41,63 @@ _atpod1 allowdamage false;
3641_atpod1 setdamage 0 ;
3742_atpod1 setdir 215 ;
3843
39- _HQguard1 = _groupGuard createUnit [" B_Soldier_F" , _centerPos , [], 0 , " FORM" ];
40- _HQguard1 moveinGunner _atpod1 ;
44+ _fobguard1 = _groupGuard createUnit [" B_Soldier_F" , _centerPos , [], 0 , " FORM" ];
45+ _fobguard1 moveinGunner _atpod1 ;
4146
4247// HMG
4348_atpod2 = createVehicle [" B_HMG_01_high_F" , [0 ,0 ,0 ], [], 0 , " NONE" ];
4449_atpod2 allowdamage false ;
4550_atpod2 setdamage 0 ;
4651_atpod2 setpos [(_centerpos select 0 )+ 8 , (_centerpos select 1 )- 7 ];
4752
48- _HQguard1 = _groupGuard createUnit [" B_Soldier_F" , _centerPos , [], 0 , " FORM" ];
49- _HQguard1 moveinGunner _atpod2 ;
53+ _fobguard1 = _groupGuard createUnit [" B_Soldier_F" , _centerPos , [], 0 , " FORM" ];
54+ _fobguard1 moveinGunner _atpod2 ;
5055
5156// GMG
5257_atpod3 = createVehicle [" B_GMG_01_high_F" , [0 ,0 ,0 ], [], 0 , " NONE" ];
5358_atpod3 allowdamage false ;
5459_atpod3 setdamage 0 ;
5560_atpod3 setpos [(_centerpos select 0 )+ 7 , (_centerpos select 1 )+ 8 ];
5661
57- _HQguard1 = _groupGuard createUnit [" B_Soldier_F" , _centerPos , [], 0 , " FORM" ];
58- _HQguard1 moveinGunner _atpod3 ;
62+ _fobguard1 = _groupGuard createUnit [" B_Soldier_F" , _centerPos , [], 0 , " FORM" ];
63+ _fobguard1 moveinGunner _atpod3 ;
64+
65+ // LIGHTS
66+ _light1 = createVehicle [" Land_Camping_Light_F" , [0 ,0 ,0 ], [], 0 , " NONE" ];
67+ _light1 allowdamage false ;
68+ _light1 setdamage 0 ;
69+ _light1 setpos [_centerpos select 0 , _centerpos select 1 ];
70+
71+ _light2 = createVehicle [" Land_Camping_Light_F" , [0 ,0 ,0 ], [], 0 , " NONE" ];
72+ _light2 allowdamage false ;
73+ _light2 setdamage 0 ;
74+ _light2 setpos [(_centerpos select 0 )+ 5.5 , (_centerpos select 1 )- 5.5 ];
75+
76+ _light3 = createVehicle [" Land_Camping_Light_F" , [0 ,0 ,0 ], [], 0 , " NONE" ];
77+ _light3 allowdamage false ;
78+ _light3 setdamage 0 ;
79+ _light3 setpos [(_centerpos select 0 )- 5.5 , (_centerpos select 1 )+ 3.5 ];
80+
81+ _light4 = createVehicle [" Land_Camping_Light_F" , [0 ,0 ,0 ], [], 0 , " NONE" ];
82+ _light4 allowdamage false ;
83+ _light4 setdamage 0 ;
84+ _light4 setpos [(_centerpos select 0 )+ 5.5 , (_centerpos select 1 )+ 3.5 ];
85+
86+ _light5 = createVehicle [" Land_Camping_Light_F" , [0 ,0 ,0 ], [], 0 , " NONE" ];
87+ _light5 allowdamage false ;
88+ _light5 setdamage 0 ;
89+ _light5 setpos [(_centerpos select 0 )- 5.5 , (_centerpos select 1 )- 5.5 ];
5990
6091sleep 2 ;
6192_atpod1 allowdamage true ;
6293_atpod2 allowdamage true ;
6394_atpod3 allowdamage true ;
6495_gl1pod allowdamage true ;
65- _aapod allowdamage true ;
96+ _aapod allowdamage true ;
97+ _light1 allowdamage true ;
98+ _light2 allowdamage true ;
99+ _light3 allowdamage true ;
100+ _light4 allowdamage true ;
101+ _light5 allowdamage true ;
102+
103+ _fob addAction [" <t color='#ff0066'>Replace FOB Defences (15CP)</t>" , " initHQ\refortifyFOB.sqf" , [_aapod , _gl1pod , _atpod1 , _atpod2 , _atpod3 , _centerpos , _fob ], 0 , true , true , " " , " _this == player" ];
0 commit comments