Author: Foxhound
Author Website:

Requirements: Community Base Addons

Version: 1.0

Short description: Enemy groups will patrol a specific area and inform each other inside a specific distance about spotted enemys. If enemys are spotted the groups will start to hunt them.

Date: 2011-10-02 10:06


Comments: (0)
Rating:



 







HunterKiller Patrol

by
Wiggum


Description:
Enemy groups will patrol a specific area and inform each other inside a specific distance about spotted enemys. If enemys are spotted the groups will start to hunt them.
A patroling group will reveal all spotted enemys closer then areasize (based on their current position) to all other units of the same side closer then areasize * multi (based on their current position)
A patroling group will only hunt enemys closer then areasize * multi (based on their current position)
If you want a patrol to stay close to a specific position, dont give them a high multi !
The groups will return to their patrolpos after the enemy is dead and start again to patrol there


1, 2 and 3 are groups patroling with this script, the big circles are their "communication range". The green circles are the areas they patrol.
4 is a enemy group spottted by 2. As you can see 3 is inside the "communication range" of 2 and the enemys are close enough ("engagement range" is the same as "communication range"). 3 will start to engage (5) the enemy 4.
As you can see 1 will just keep patroling because they are not in "communication range".
Quote:
The small green circles are _areasize around _patrolpos
The big circles are _areasize * _multi around groupleader of _grphunter


Usage:
Place a Function Modul on the map!
Call from a trigger with condition "true" for each patrol group with:
nul=[grphunter, patrolpos, areasize, multi, targetside, typeofhunter, typeoftarget, flarecount] execVM "HunterKiller_Patrol.sqf";

- grphunter is the name of the patroling group
- patrolpos is the centre of the patrol, just place a empty H and give it a name
- areasize is the size of the area around the patrolpos in which the group will patrol
- multi is the multiplicator (of areasize) for the distance around the groupleader in which informations will be shared and received among the patrols. This also is the max. engagement range of the group !
- targetside is the side (west, east, resistance) of the possible targets of the patroling group
- typeofhunter is the type (take a look at CfgVehicles) of the patroling units (SoldierEB for all east units for example, can be different for some addons)
- typeoftarget is the type (take a look at CfgVehicles) of the possible targets (SoldierWB for all west units for example, can be different for some addons)
- flarecount is the number of flares the patroling group has, they will use them if a enemy is close enough (100m). Just give them 0 if you dont want that they use them. Flares will be spawned, no need for special weapons!


Known Bugs:
For some reason, if the patrolleader has a pistol he will sometimes change to that after the targets are eliminated and dont move again. If he dont had a pistol that behaviour never occurred.


Forum topic:
- BI forums



- Community Base Addons





Enable javascript to be able to download from Armaholic please!



Tags: No tags