-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a11f6e
commit 2113a3c
Showing
3 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
params ["_centerPos"]; | ||
params ["_centerPos", "_distance"]; | ||
|
||
// patrolling guard | ||
_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; | ||
_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; | ||
|
||
_groupPatrol setCombatMode "YELLOW"; | ||
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)+40, (_centerPos select 1)+40], 0]; | ||
_wp setWaypointType "MOVE"; | ||
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)+_distance, (_centerPos select 1)+_distance], 0]; | ||
_wp setWaypointType "MOVE"; | ||
_wp setWaypointBehaviour "SAFE"; | ||
_wp setWaypointSpeed "LIMITED"; | ||
|
||
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)-40, (_centerPos select 1)+40], 0]; | ||
_wp setWaypointType "MOVE"; | ||
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)-_distance, (_centerPos select 1)+_distance], 0]; | ||
_wp setWaypointType "MOVE"; | ||
_wp setWaypointBehaviour "SAFE"; | ||
_wp setWaypointSpeed "LIMITED"; | ||
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)-40, (_centerPos select 1)-40], 0]; | ||
_wp setWaypointType "MOVE"; | ||
_wp setWaypointSpeed "LIMITED"; | ||
|
||
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)-_distance, (_centerPos select 1)-_distance], 0]; | ||
_wp setWaypointType "MOVE"; | ||
_wp setWaypointBehaviour "SAFE"; | ||
_wp setWaypointSpeed "LIMITED"; | ||
_wp setWaypointSpeed "LIMITED"; | ||
|
||
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)+_distance, (_centerPos select 1)-_distance], 0]; | ||
_wp setWaypointType "MOVE"; | ||
|
||
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)+40, (_centerPos select 1)-40], 0]; | ||
_wp setWaypointType "MOVE"; | ||
|
||
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)+40, (_centerPos select 1)+40], 0]; | ||
_wp setWaypointType "CYCLE"; | ||
_wp = _groupPatrol addWaypoint [[(_centerPos select 0)+_distance, (_centerPos select 1)+_distance], 0]; | ||
_wp setWaypointType "CYCLE"; | ||
_wp setWaypointBehaviour "SAFE"; | ||
_wp setWaypointSpeed "LIMITED"; | ||
|
||
// ADD Infinite Ammo eventhandler | ||
{ | ||
_x addEventHandler ["Fired",{(_this select 0) setvehicleammo 1}]; | ||
_x addEventHandler ["HandleDamage", {false}]; | ||
_x addEventHandler ["Fired",{(_this select 0) setvehicleammo 1}]; | ||
_x addEventHandler ["HandleDamage", {false}]; | ||
} forEach (units _groupPatrol); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters