TPW BLEEDOUT - Realistic bleeding system for Arma 3

Author: tpw
Requires: Community Base Addons A3
Compatibility: SP, MP client

Description
-----------
This addon modifies the Arma 3 damage system (where higher damage = lower health). By default, when a unit is wounded, its damage remains constant unless healed by a medpack or medic. This tends to take the urgency out of you and your squadmates being wounded in battle, since there is no penalty for not attending to a wounded soldier.

TPW BLEEDOUT changes this by emulating bleeding from injuries. Unless treated, an injured unit will continue to bleed and thus lose health, stamina, mobility and skill. The more injured a unit is, the quicker it will bleed out. Heavily injured units will become totally incapacitated and eventually lapse into unconsciousness/death. TPW BLEEDOUT increases immersion by making combat wound management a necessity. 

	- Works for all units, editor placed or spawned.
	- Injured units will lose speed and skill, eventually limping. These effects will be reversed if a unit is healed.
	- >85% damage (default) = AI unit will writhe on ground incapacitated.
	- Wounded units will continue to trail blood.
	- Wounded units will be fatigued and increasingly short of breath.
	- Medpack or medic healing will stop bleeding and prevent additional damage increase.
	- The screen will jitter slightly to simulate increased heartrate from injury/fatigue (optional).

TPW BLEEDOUT optionally allows appropriately equipped injured AI units to automatically attempt to treat themselves using a First Aid Kit.

	- A kit will be removed from the unit's inventory after each treatment.
	- The worse the injury the more quickly a unit will attend to it.
	- The worse the injury the less chance a given kit will stem the bleeding.
	- Self treatment only stems bleeding, and does not restore health.

Unlike the default BIS healing, use of a kit merely stems the bleeding rather than restoring health. This is a deliberate design decision to more accurately simulate the ability of a personal first aid kit to stem bleeding via adrenaline and bandaging, whilst not actually healing the injury. This prevents further health and mobility reduction, and does not interfere with health restoration via BIS healing (medic, first aid kit) or other healing systems. 
		
Issues
------
TPW BLEEDOUT continues my philosophy of making small simple mods that do one thing, with as little interference with other mods as I can manage. I'm aware of the numerous Arma medical and wounding mods, and as far as I can tell TPW BLEEDOUT should work with any of them that don't mess with the "isbleeding" command.

	- TPW BLEEDOUT makes no changes to unit behaviour outside of damage/speed/posture and stamina.
	- TPW BLEEDOUT utilises "isbleeding" and "setbleedingremaining". Whilst a unit "isbleeding", it will continue to accumulate damage. Any medic system which stops bleeding (as the default system does) will stop TPW BLEEDOUT from incrementing a unit's damage, as intended.
	- "isbleeding" and "setbleedingremaining" are Arma 3 specific, so this mod won't work in Arma 2.
	- As always, I make no guarantees about MP functionality.
	- If you'd like to continue using TPW BLEEDOUT alongside other health modification systems, you can disable it for a given unit by putting in their init field: this setvariable ["tpw_bleedout_ignore",1]
	- If you'd like a unit to exhibit the progressive symptoms of bloodloss but not actually bleed to death: this setvariable ["tpw_bleedout_nodeath",1]