This script will continue draining health from the player if he has been hit, the purpose of this script is to introduce the reality of gunshot wounds and the bleedout factor that has been ignored in so many AAA games, the player will need to find medical attention in a trigger zone that has the second script attached in order to fully patch up his wounds and will need to continually heal himself so that he does not die during the mission.
#1 [player will take damage faster depending on how badly he is wounded]
:state=0:dimvar=injured,state=1
:state=1,plrhealthless=90,plrhealthgreater=69:setvar=injured 1,state=2
:state=1,plrhealthless=71,plrhealthgreater=49:setvar=injured 1,state=4
:state=1,plrhealthless=51,plrhealthgreater=29:setvar=injured 1,state=6
:state=1,plrhealthless=31,plrhealthgreater=0:setvar=injured 1,state=8
:state=2:etimerstart,state=3
:state=3,etimergreater=6400,varequal=injured 1:plraddhealth=-1,state=1
:state=4:etimerstart,state=5
:state=5,etimergreater=3600,varequal=injured 1:plraddhealth=-1,state=1
:state=6:etimerstart,state=7
:state=7,etimergreater=2400,varequal=injured 1:plraddhealth=-1,state=1
:state=8:etimerstart,state=9
:state=9,etimergreater=1600,varequal=injured 1:plraddhealth=-1,state=1
#2 [will heal player when he steps into the trigger zone]
:state=0:state=1
:state=1,plrwithinzone=1:plrsethealth=100,setvar=injured 0
I appear to have burst into flames...