|
1 | | -params ["_centerPos"]; |
| 1 | +params ["_centerPos", "_distance"]; |
2 | 2 |
|
3 | 3 | // 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; |
5 | 5 |
|
6 | 6 | _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"; |
9 | 9 | _wp setWaypointBehaviour "SAFE"; |
10 | 10 | _wp setWaypointSpeed "LIMITED"; |
11 | 11 |
|
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"; |
14 | 14 | _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"; |
19 | 19 | _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"; |
21 | 24 |
|
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"; |
27 | 27 | _wp setWaypointBehaviour "SAFE"; |
28 | 28 | _wp setWaypointSpeed "LIMITED"; |
29 | 29 |
|
30 | 30 | // ADD Infinite Ammo eventhandler |
31 | 31 | { |
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}]; |
34 | 34 | } forEach (units _groupPatrol); |
0 commit comments