Skip to content

Commit 2113a3c

Browse files
committed
Spread out guards around HQ
1 parent 8a11f6e commit 2113a3c

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

source/functions/initHQ/fn_BluHQinit.sqf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ _group = createGroup west;
3636
_hq = _group createUnit [Blufor_Officer,(getmarkerpos str(blu_hq_markername)), [], 0, "FORM"];
3737
hq_blu1 = _hq;
3838
publicVariable "hq_blu1";
39-
_hq setpos [_hqblu select 0, _hqblu select 1, 0.59];
39+
_hq setpos [_hqblu select 0, _hqblu select 1, 0.59];
4040
_hq disableAI "AUTOTARGET";
4141
_hq disableAI "MOVE";
4242
removeallweapons _hq;
@@ -62,8 +62,8 @@ _handle = [(getpos hq_blu1), _hq] spawn duws_fnc_fortify;
6262
};
6363

6464
//CREATE PATROL
65-
[getpos hq_blu1] call duws_fnc_guardsHQ;
66-
[getpos hq_blu1] call duws_fnc_guardsHQ;
65+
[getpos hq_blu1, 40] call duws_fnc_guardsHQ;
66+
[getpos hq_blu1, 60] call duws_fnc_guardsHQ;
6767

6868
// IF THE OFFICER IS DEAD -- End OF "SPAWN"
6969

@@ -111,4 +111,4 @@ if (debugmode) exitWith {};
111111

112112
if (isServer) then {
113113
_sitrep = [player,"sitrep"] call BIS_fnc_addCommMenuItem;
114-
};
114+
};
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
params ["_centerPos"];
1+
params ["_centerPos", "_distance"];
22

33
// patrolling guard
4-
_groupPatrol = [ [(_centerPos select 0)+40, (_centerPos select 1)+40], WEST, [Blufor_Rifleman,Blufor_Rifleman,Blufor_AT_Specialist,Blufor_Engineer,Blufor_Medic,Blufor_Recon_Scout,Blufor_AT_Specialist,Blufor_AA_Specialist],[],[],[0.6,0.8,0.7]] call BIS_fnc_spawnGroup;
4+
_groupPatrol = [ [(_centerPos select 0)+_distance, (_centerPos select 1)+_distance], WEST, [Blufor_Rifleman,Blufor_Rifleman,Blufor_AT_Specialist,Blufor_Engineer,Blufor_Medic,Blufor_Recon_Scout,Blufor_AT_Specialist,Blufor_AA_Specialist],[],[],[0.6,0.8,0.7]] call BIS_fnc_spawnGroup;
55

66
_groupPatrol setCombatMode "YELLOW";
7-
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)+40, (_centerPos select 1)+40], 0];
8-
_wp setWaypointType "MOVE";
7+
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)+_distance, (_centerPos select 1)+_distance], 0];
8+
_wp setWaypointType "MOVE";
99
_wp setWaypointBehaviour "SAFE";
1010
_wp setWaypointSpeed "LIMITED";
1111

12-
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)-40, (_centerPos select 1)+40], 0];
13-
_wp setWaypointType "MOVE";
12+
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)-_distance, (_centerPos select 1)+_distance], 0];
13+
_wp setWaypointType "MOVE";
1414
_wp setWaypointBehaviour "SAFE";
15-
_wp setWaypointSpeed "LIMITED";
16-
17-
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)-40, (_centerPos select 1)-40], 0];
18-
_wp setWaypointType "MOVE";
15+
_wp setWaypointSpeed "LIMITED";
16+
17+
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)-_distance, (_centerPos select 1)-_distance], 0];
18+
_wp setWaypointType "MOVE";
1919
_wp setWaypointBehaviour "SAFE";
20-
_wp setWaypointSpeed "LIMITED";
20+
_wp setWaypointSpeed "LIMITED";
21+
22+
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)+_distance, (_centerPos select 1)-_distance], 0];
23+
_wp setWaypointType "MOVE";
2124

22-
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)+40, (_centerPos select 1)-40], 0];
23-
_wp setWaypointType "MOVE";
24-
25-
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)+40, (_centerPos select 1)+40], 0];
26-
_wp setWaypointType "CYCLE";
25+
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)+_distance, (_centerPos select 1)+_distance], 0];
26+
_wp setWaypointType "CYCLE";
2727
_wp setWaypointBehaviour "SAFE";
2828
_wp setWaypointSpeed "LIMITED";
2929

3030
// ADD Infinite Ammo eventhandler
3131
{
32-
_x addEventHandler ["Fired",{(_this select 0) setvehicleammo 1}];
33-
_x addEventHandler ["HandleDamage", {false}];
32+
_x addEventHandler ["Fired",{(_this select 0) setvehicleammo 1}];
33+
_x addEventHandler ["HandleDamage", {false}];
3434
} forEach (units _groupPatrol);

source/includes/CfgFunctions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class CfgFunctions
161161
class guardsFOB {};
162162
// [_centerPos, _fob, _size] call duws_fnc_guardsFOB
163163
class guardsHQ {};
164-
// [_centerPos] call duws_fnc_guardsHQ
164+
// [_centerPos, _distance] call duws_fnc_guardsHQ
165165
class hq_radioloop {};
166166
// [_object] spawn duws_fnc_radioloop
167167
class HQaddactions {};

0 commit comments

Comments
 (0)