gdtmod_flares 1.00
by HeinBloed
http://www.gdt-server.net/
===========================

This Addon adds countermeasure flares to all planes and helicopters.

For full multiplayer functionality this addon must be installed on gunner and target side. If not so it is just not fully operative. 

Notice:
- The probability to deflect a missile depends on the number of flares and the direction related to the target.
- On aircrafts with a gunner the gunner (Crew chief on a helicopter with multiple gunners) has the weapon.
- As client on a server: To use the countermeasure flares without a gunner you need to get in as gunner (Crew chief on a helicopter with multiple gunners) first.
- The key to switch to the weapon "Countermeasure" does not work with addons which are using the old displaySetEventHandler command. It also does not work with the Editor Modules "Construction Interface" (Used by missions such as Superpowers) and "High Command" witch are using the displaySetEventHandler command as well.
- The AI has unlimited quantity of flares, and fires additionally at intervals.

Required:
Armed Assault 2 v1.05
Extended Eventhandlers (XEH) which is part of CBA: Community Base Addons (http://dev-heaven.net/wiki/cca)

===========================

Installation:

gdtmod_flares.pbo:							Into a mod folder of your choice. For Example: ..\Your_ArmA_2_Folder\YourModFolder\AddOns\
gdtmod_flares.pbo.gdtmod_flares.bisign:		Into the same folder like gdtmod_flares.pbo.
gdtmod_flares.hpp:							Into ..\Your_ArmA_2_Folder\userconfig\gdtmod_flares\
gdtmod_flares.bikey:						For Servers only.
Start ArmA 2 with -mod=YourModFolder

===========================

In Game:
You will get an acoustic warning signal for incoming missiles.
[CTRL-L]: Switch to the weapon "Countermeasure" (Switchs also to manual fire on aircrafts with a gunner seat). Press FIRE to fire the flares.

===========================

Configuration:

Edit gdtmod_flares.hpp:

>	 You can choose between every Key of your choice to switch to the weapon "Countermeasure". 
	_key = 29; (Change 29 to your key number)

>	How to find your key number:
	1. Change _help = 0; to _help = 1;
	2. Start the game, place a player in the editor and start preview.
	3. By pressing any key you will see the key number of the pressed key.
	4. Press your favoured key.	Notice your key number.
	5. Change _key = 29; to your key number.
	6. Change _help = 1; to _help = 0;
