Ok, I give in LCD. I was thinking last night (yeah I do that sometimes
), and I thought of a relatively easy way to get the groups so that they will only call in "appropriate" reenforcements.
Now, when a 12 man infantry squad runs into a couple of eastern soldiers on a patrol, they wont call in the M1A1's for backup.
Instead they won't call backup at all. A squad will only call for backup if it is overmatched, by the squad it detects.
I've accompished this by writing a neat little subroutine into the script that "rates" a squad based on what vehicles/ect. they have.
Helicopters and planes are worth the most, followed by AA tanks, Tanks, APCs ,LAW soldiers and finally, soldiers. I'll be expanding the rating subroutine later to be more granular (right now an m60 gets the same rating as a T-80 - not too realistic)
When a squad is severely overmatched, instead of running straight into their death, like before, they will retreat like sane little soldiers, and call for the nearest backup with an appropriate "rating". If there is no appropriate backup available, the squad wont call anyone. Instead, they will just retreat.
Here is the latest version. In this one I've added markers on the map that follow the various groups, plus I've added a radio command that will allow you to teleport anywhere on the map, using the "onmapsingleclick function.
attachemnt deleted - see lower thread for latest ver