This package of scripts creates playable units that fall unconcious when killed, which can then be revived. Enabling the ability to revive and heal other players, along with the combination of revive and respawn can really enrich your mission. The scripts can be used to enforce co-operation between players as you'll need to stick together and help one another to successfully complete a mission and they can also be used to limit the number of lives given to each player in respawn missions. These canned scripts take the guess work out of building respawn and revive into your mission.
http://home.iprimus.com.au/simonnsl/...vive050_OA.rar (Version 0.50 - Can be used in SP or MP missions with AI enabled or disabled for Operation Arrowhead or Combined Operations)
If by contrast you are using vanilla ArmA2 then you'll need this version of the revive scripts:http://norrin.org/downloads/ArmA2/re...T_042.utes.rar
Implementation notes and credits are now contained in the PDF file in the download.
Simple Revive Mission: http://www.norrin.org/downloads/ArmA....Chernarus.pbo (so you can see what these scripts do in a combat situation - uses a much older version of the revive scripts - to be updated).
There's also a PvP template for 2 sides that was kindly posted by Le Culto available here: http://norrin.org/downloads/ArmA2/re....Chernarus.rar - this also uses an older version of the script (0.3f) but it can be used as a guide on how to set up PvP revive missions using the latest version (to be updated)
What does the revive script do?
In its most basic form the revive script offers an alternative to the built in respawn function provided by BIS - it only works in MP missions. Essentially when a player is killed rather than dying and respawning at base he falls unconscious where he was shot and then he can be revived by another player and start from where he was killed, with the same weapons and ammo he was carrying.
While the player is lying unconscious waiting to be revived he can spectate any of the other units in his team using a range of cameras.
The script is designed to enforce team play as the only way you 're going to respawn is if some one comes to you aid.
You can see an old video showing (from 2 and a half years ago) showing this basic functionality here: http://www.youtube.com/watch?v=0zdcLWKcM5w - mind you it’s a lot more refined than this now eg. additional camera functionality amongst other things.
Now that's the script in its simplest form but there are a myriad of additional options.
These include but are not limited to:
* Can enforce a set number of lives per player before he is declared dead outright
* Enable a revive time which if it elapses results in (your choice of) player death, automatic respawn at base or the players choice of multiple respawn points
* You can limit who can revive, for instance may specify that only medics can revive.
* Unconscious bodies can be dragged and carried, loaded onto vehicles and taken to specified CASEVAC points to be revived.
* Bleeding and bandages can be enabled - when damage reaches a certain level a unit starts bleeding - this can be stopped with bandages, if bandaging does not occur bleeding can cause unconsciousness - it also causes temporary black-outs
* You can also designate the number of revive packs a player carries so that he may only be able to revive lets say 3 players before he has to restock at a MASH tent
* Possiblity of a mobile respawn point, either player or vehicle based
* The scripts are playable AI compatible and there are options so that playable AI automatically move to and revive unconscious team mates or only come to the aid of a player if he calls for help (an option to the player while unconscious) - or if sent by the team leader to help another player or unit.
* If using AI you can specify that the AI throw smoke when attempting to revive as well as have a second AI unit provide cover while the other revives.
* Revived units can be given damage so that they are not a full health once the regain consciousness.
Using these options, the basic game play of ArmA2 can be made easier or a hell of a lot harder - most importantly they will hopefully enforce team play in the MP environment.
* Updated for ArmA 2 v1.04 parameters
* Multiple fixes for alternate unconscious animations
* AI not reviving units
* Serialisation errors which occurred while trying to respawn at occupied bases
* Dialog report errors
* Multiple appearance of drag and revive options
* Drag action not working when using a secondary item - note if you attempt to drag while using a launcher (eg M136) you'll assume the drag position but won't be able to move until you switch to your primary weapon
* When all lives are expended the scripts now deal with death properly - for the time being you can't use Kegetys' Spectator cam as it causes a crash to desktop so make sure you leave _kegetys_spectator set to 0 - I'll start work on my own simpler spectator cam for death.
* Respawn at base without weapons - added a 2 second wait before these are defined so if you are giving units an alternate load-out at mission start please make sure it occurs quickly after mission initialisation
* Fixed the “You’re dead” dialog zooming on respawn points
* Hopefully, fixed lag when many players are unconscious
* Fixed loading wounded action on a dedicated server
* The long unconscious camera panning that was causing crashes has been removed
* Report error relating to name of dead unit - you'll have to live with this I'm afraid as I haven't found another solution for this yet
* Reported problem with the mobile respawn tent disappearing - I haven't been able to replicate this bug yet so please let me know if you come across it and let me know what happened prior to it occurring
Please let me know if you are still having issues with any of the proposed fixes
* New animations
* Respawn on the carrier or in a chopper
* Turn revive off as a parameter in missions
* Limit the number of lives for players who JIP
* Chance of death - risk based on the number of times you've been revived and the location of the hit
* Make units wait if they respawn at base
* You can now drag unconscious units to vehicles with empty cargo spaces and load them onboard, once they are loaded you can unload them - as this is new if you try it let me know how you get on - units can only be loaded if they are being dragged (not carried)
* PDF file containing implementation notes, credits and explanation of features
* Players can drag and carry the bodies of unconscious players and playable AI - units must be dragged before the carry action appears
* CASEVAC system so that units can be taken to a hospital etc to be revived, needs to be an array eg.  not used or [1, ["MASH"]]; the second internal array ["MASH"] represents the type of object at which you'd like the units to automatically revive, note: you can put a list of objects here.
* Spectator_cam after death - now there's an option so that the screen turns black or a unit can spectate other friendly units when it has run out of lives - currently using a simple spectator script (see readMe for more details).
* You can specify an additional class which can have more medpacks or bandages than the standard unit - Can only be used in conjunction with medpacks and bleeding.
* Can limit the number of revive kits per unit
* Can make units bleed and require bandages
* Medical items can be obtained by players by going up to a MASH tent and using the "Take medical supplies" action. Playable AI are automatically resupplied if they are within 5 metres of a MASH tent. Also for the time being playable AI do not bandage themselves so you'll have to take care of them
* reward_function - Bonus lives for reviving other units
* team kill function - Lose lives for killing team mates
Here's what I'm planning on adding above and beyond the original scripts:
1. Additional side support - units that can revive, can be revived, enemy sides etc
2. Option to disable revive in missions and use normal base spawning instead
3. Ability to rejoin perpetual server missions at the position and with the same gear etc you left the mission with
4. MEDIVAC system
Finally, many thanks to all of you for testing