******** Medevac Module v0.99 beta 3 ********
by goliath86 (goliath86@alice.it)



------------- Overview ------------------
This addon permits the player to be able to call in a medevac chopper
by putting in his mission editor only 
a simple Module. He can heal himself and his squad and
send back the medevac chopper to call it later.

Installation:
1. Extract the Medevac.7z
2. Put the folder @Medevac in your ArmA's directory
3. Put the folder 'userconfig', that you can find inside the @Medevac folder, in your ArmA 2 main directory
4. Modify the desktop's shortcut with this line:
           -mod=@Medevac
5. Enjoy


------- IMPORTANT ---------
You can modify the units that spawn (ie the vehicle for the Medevac) by modify the unit_array.hpp file
inside the ArmA 2\userconfig\MM folder (!!!that must be put inside the main directory of ArmA 2!!!).
You can even activate or deactivate some sounds present in the Module by modify the MM_SOUNDS global
variable inside the unit_array.hpp file.



------------ How module works ------------
- Put the 'Medevac Module' in the editor and synchronize it with the player;
- The player will receive a 'Call in Medevac' action in its menu ("Call in Medevac");
- After a while a chopper (or another in-array specified vehicle) will arrive next to the player's position and ask him to throw a smoke to identify it; the player can even abort the mission by simply selecting the "Abort medevac" action appeared after calling in the chopper;
- The player must throws a red smoke to permits the chopper (or vehicle) to identify the player's position and land (red smoke added via scripts so you don't need to add the smoke to the player's unit in the editor);
- Two units dismount and secure the landing zone and stay near the chopper's position;
- A third unit (corpsman) runs near the player's position and joins the player's group;
- The player can heal himself and all his units;
- When the player decides he can sends (via the action entry "Medevac RTB") the order at the corpsman to Return To Base (RTB);
- Otherwise the player can use the option "Reinsert" to be reinserted anywhere in the map by simply click on it (the "Reinsert" option is available from the mission's beginning so the player can use it even if he's near the Medevac's vehicle and if he hasn't already called the Medevac)
- After selected the "Medevac RTB" menu action, corpsman remounts the waiting chopper;
- Only after the corpsman mounts in chopper, the other two units will mount (this is a correct military procedure);
- Chopper returns to base and after a while you will re-receive the action to call another medevac chopper ("Call in Medevac");


You don't need to put choppers or units to make the module works: you have to put only the Medevac Module (F7) and synchronize it to the player.

That's it ;-)

---------------- New Features -------------------------
After the release of version 0.18 new features are present in the module:

- now if you put in editor a Game Logic and synchronize it with the Medevac Module the chopper will spawn
at the Game Logic's location. If you call in the chopper it will take off from the Game Logic's position, come to you, make all the things above and when you send it the order to RTB it will return to the Game Logic's position and land so you can use the Medevac call not only to healing you and your teammates but even to 
return to base via the Medevac chopper. The Game Logic can be putted, for example, in a base camp.

- now you can use the Medevac vehicle to be inserted, by simply click on the map, from the beginning of the mission. You can even abort the reinsertion whenever you want.

- to add your own units to be spawned instead vanilla's one you need to modify the corrispondent array in the ArmA 2\userconfig\MM\unit_array.hpp

- now you can activate/deactivate sounds (thanks Thedog88!) of the Medevac module by changing the corrispondent global variable in the unit_array.hpp

- if you use the Medevac Module without the Game Logic synchronized to it, you can put, in the mission editor, a marker named MM_MKR1 so the chopper (or vehicle) will spawn (and disappear when it return after the Medevac action) in that position instead the default position (at the bottom left of the map). In this way you can make a faster Medevac arrival.

---------- Changelog (v1.0):
- Fixed: MP issues. Now the Medevac Module is fully MP compatible;
- Fixed: bug at player's death (you receive multiple "Call in medevac" entry menu action);
- Fixed: invisible actions present at the beginning of the mission;
- Added: server's key and signed addon


---------- Changelog (v0.995 beta 3):
- Fixed some little bugs
- Added: ability to use the "Reinsert" option form the beginning of the mission when near the chopper.
- Added: ability to abort the Reinsertion and RTB

---------- Changelog (v0.995 beta 2):
- Solved: Strange behaviour when chopper is under attack when it is landed near the player
- Solved: Problems if you mount the MM chopper and then call the RTB radio
- Added: Try to 'force' landing on Medevac choppers
- Added: Make a unit_array.hpp file instead the currently unit_array.sqf file to be in line like all the other ArmA2's MODs
- Added: sounds by Thedog88 that can be ativated or not via the unit_array.hpp file
- Changed: if you use the Medevac Module without the Game Logic synchronized to it, you can put, in the mission editor, a marker named MM_MKR1 so the chopper (or vehicle) will spawn (and disappear when it return after the Medevac action) in that position instead the default position (at the bottom left of the map). In this way you can make a faster Medevac arrival.
- Changed: new module's icon
- Changed: now if you return at FOB via Medevac with your 
squad you don't lost it and you can make a reinsertion via 
the Medevac. In this way you can return via Medevac at the base to heal or rearm and then be reinserted via Medevac with your mates.


---------- Changelog (v0.99 beta):
- Added: unit array to permit players to spawn their units instead vanilla's ones
- Fixed: many little bugs in the medevac vehicle waypoints
- Added: Reinsert action to permit the player, if returned on FOB via medevac, to be reinserted via medevac vehicle by clicking on the map
- Changed: new module's icon


---------- Changelog (v0.48):
- Fixed: when player's units mount the Medevac chopper then the corpsman and the gunners
won't remount the chopper
- Fixed: problem with synchronization without the Game Logic
- Improved: now helo, even under fire, still land correctly (thanks CyOp)


---------- Changelog (v0.30):
- Added: when player dies and teamswitch is enabled, all the Medevac actions are passed at
the new player's unit (thanks DMarwick)


---------- Changelog (v0.28):
- Fixed: CTD when the helo explode during its mission (thanks DMarwick!)


---------- Changelog (v0.25):
- Added: now you can abort the Medevac Mission, when the chopper is flying, via action menu. When the medic dismount, you can send the RTB order via the usual Radio Bravo trigger (0-0-2)
- Fixed: bug that prevent the main script to terminate correctly


---------- Changelog (v0.20):
- Fixed: error message '[I]can't load mission, missing addon medevac[/I]' when loading a saved mission (thanks Manzilla for report!)


---------- ChangeLog (v0.18):
- Module now supports all the ArmA 2 sides (USMC, russians, civilians and resistances)
- The module can now be synchronized with a game logic to make it permanentely present in game


---------- ChangeLog (v0.13):
- Changed: now you have a red smoke instead purple smoke (thanks CyOp!)
- Changed: now you don't have the action menu to throw the smoke; instead you have to normally throw the red smoke (thanks CyOp)
- Added: when rescue mission is active and player go near the crash site, the alive soldiers/pilots join the player's group
- General optimization at the code

---------- ChangeLog (v0.11):

- Added: corpsman when dismount join player's group for more control over it's capabilities (the corpsman will return in the helo,f or RTB, when called Radio Bravo)
- General optimization at the code






Hope you Enjoy:

Report any bugs at BI forum: http://forums.bistudio.com/showthread.php?p=1545159#post1545159
or email me: goliath86@alice.it

Thank you guys!

See you in the battlefield!! :-D

Credits:
Thanks CyOp for the idea and support
Thanks DMarwick for the supprt and tranlsation in sidechat text
Thanks Thedog88 for his incredibly sounds
Thanks all the ArmA 2 community
Thanks BIS for ArmA series