Put these scripts into trigger zones that are inaccessible to the player:
Each script works on it's own
Example 1: using only script 1 your health will go down and HUDs will correspond
Example 2: using only script 2 your health will regen but no huds will be shown
Example 3: using only 1 and 2 your health will be closely similar to the Call of Duty health system
Some of these scripts require FPSC V1.19 or higher which you can get here: FPS Creator Files Download Page
As of July 1st, 2013, I have decided to Refine the scripts and put them all into a convenient package which you can download here:
Convenient Package
First bit of code (
Requires v1.17+ and HUD pack linked below)
used for HUD management
;Critical Damage Heartbeat
;Artificial Intelligence Script
;Header
desc = Call of Duty Health System
;Triggers
:plrhealthgreater=79:hudunshow=eyehud,hudunshow=criticaldamage,hudunshow=criticaldamage2,hudunshow=criticaldamage3,hudunshow=criticaldamage4,hudunshow=criticaldamage5
:plrhealthgreater=59:hudunshow=eyehud,hudunshow=criticaldamage2,hudunshow=criticaldamage3,hudunshow=criticaldamage4,hudunshow=criticaldamage5
:plrhealthgreater=39:hudunshow=eyehud,hudunshow=criticaldamage3,hudunshow=criticaldamage4,hudunshow=criticaldamage5
:plrhealthgreater=19:hudunshow=eyehud,hudunshow=criticaldamage4,hudunshow=criticaldamage5
:plrhealthgreater=9:hudunshow=eyehud,hudunshow=criticaldamage5
:state=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=0,hudblue=0,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\eyehud.tga,hudname=eyehud,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\bloodscreen3.dds,hudname=criticaldamage,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\bloodscreen4.dds,hudname=criticaldamage2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\bloodscreen5.dds,hudname=criticaldamage3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\bloodscreen6.dds,hudname=criticaldamage4,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\bloodscreen7.dds,hudname=criticaldamage5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\hurt1.dds,hudname=hurt1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\hurt2.dds,hudname=hurt2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\hurt3.dds,hudname=hurt3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\hurt4.dds,hudname=hurt4,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\hurt5.dds,hudname=hurt5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\hurt6.dds,hudname=hurt6,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\hurt7.dds,hudname=hurt7,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\hurt8.dds,hudname=hurt8,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\hurt9.dds,hudname=hurt9,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimagefine=gamecore\huds\CODHud\hurt10.dds,hudname=hurt10,hudhide=1,hudmake=display,state=1
:plrhealthless=99:hudshow=hurt10
:plrhealthless=98:hudshow=hurt9
:plrhealthless=97:hudshow=hurt8
:plrhealthless=96:hudshow=hurt7
:plrhealthless=95:hudshow=hurt6
:plrhealthless=94:hudshow=hurt5
:plrhealthless=93:hudshow=hurt4
:plrhealthless=92:hudshow=hurt3
:plrhealthless=91:hudshow=hurt2
:plrhealthless=90:hudshow=hurt1
:plrhealthgreater=98:hudunshow=hurt10
:plrhealthgreater=97:hudunshow=hurt9
:plrhealthgreater=96:hudunshow=hurt8
:plrhealthgreater=95:hudunshow=hurt7
:plrhealthgreater=94:hudunshow=hurt6
:plrhealthgreater=93:hudunshow=hurt5
:plrhealthgreater=92:hudunshow=hurt4
:plrhealthgreater=91:hudunshow=hurt3
:plrhealthgreater=90:hudunshow=hurt2
:plrhealthgreater=89:hudunshow=hurt1
:plrhealthless=100:hudshow=eyehud
:plrhealthless=80:hudshow=criticaldamage
:plrhealthless=60:hudshow=criticaldamage2
:plrhealthless=40:hudshow=criticaldamage3
:plrhealthless=20:hudshow=criticaldamage4
:plrhealthless=1:hudunshow=criticaldamage,hudunshow=criticaldamage2,hudunshow=criticaldamage3,hudunshow=criticaldamage4,hudunshow=criticaldamage5
:plrhealthequal=100:hudunshow=criticaldamage,hudunshow=criticaldamage2,hudunshow=criticaldamage3,hudunshow=criticaldamage4,hudunshow=criticaldamage5
:plralive=0:hudunshow=criticaldamage,hudunshow=criticaldamage2,hudunshow=criticaldamage3,hudunshow=criticaldamage4,hudunshow=criticaldamage5
:plralive=0:quickloadgame
;End of Script
HUD pack:
http://www.mediafire.com/?nlxzt5g4kjo4eqv
Second bit of code (
Requires v1.17+)
used for regen
;Critical Damage Heartbeat
;Artificial Intelligence Script
;Header
desc = Call of Duty Health System
;Triggers
:state=0:state=1
:state=1,plrhealthless=100:etimerstart,state=2
:state=2,etimergreater=300:plraddhealth=1,state=1
;End of Script
Third bit of code (
requires v119)
12/11/11
handles bond1 blurring while health is below 50
:state=0:state=1
:state=1,plrhealthless=50:setposteffect=motionsickness,etimerstart,state=2
:state=2,plrhealthgreater=49,etimergreater=150:setposteffect=none,state=1
Fourth bit of code (
requires v119)
12/11/11
Wobbles the camera while health is below 25
:state=0:state=1
:state=1,plrhealthless=25:plrwobble=10,state=2
:state=2,plrhealthgreater=24:plrwobble=0,state=1
Fifth bit of code (
requires v117+ and hide HUD pack linked below)
12/26/11
shows the text "YOU ARE HURT. FIND COVER" in red stencil standard font
:state=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=0,hudblue=0,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\CODHud\hide1.png,hudname=hide1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=0,hudblue=0,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\CODHud\hide2.png,hudname=hide2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=0,hudblue=0,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\CODHud\hide3.png,hudname=hide3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=0,hudblue=0,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\CODHud\hide4.png,hudname=hide4,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=0,hudblue=0,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\CODHud\hide5.png,hudname=hide5,hudhide=1,hudmake=display,etimerstart,state=1
:state=1,plrhealthless=50,etimergreater=100:hudshow=hide1,hudunshow=hide2,hudunshow=hide3,hudunshow=hide4,hudunshow=hide5,etimerstart,state=2
:state=2,plrhealthless=50,etimergreater=100:hudunshow=hide1,hudshow=hide2,hudunshow=hide3,hudunshow=hide4,hudunshow=hide5,etimerstart,state=3
:state=3,plrhealthless=50,etimergreater=100:hudunshow=hide1,hudunshow=hide2,hudshow=hide3,hudunshow=hide4,hudunshow=hide5,etimerstart,state=4
:state=4,plrhealthless=50,etimergreater=100:hudunshow=hide1,hudunshow=hide2,hudunshow=hide3,hudshow=hide4,hudunshow=hide5,etimerstart,state=5
:state=5,plrhealthless=50,etimergreater=100:hudunshow=hide1,hudunshow=hide2,hudunshow=hide3,hudunshow=hide4,hudshow=hide5,etimerstart,state=1
:plrhealthgreater=49:hudunshow=hide1,hudunshow=hide2,hudunshow=hide3,hudunshow=hide4,hudunshow=hide5
hide HUD pack:
http://www.mediafire.com/?lb1e5547dlu91dd
place in the same folder as the other huds
Remember: each bit of code (due to using states like this) needs it's own trigger zone
Put the huds "hurt1-10, and "bloodscreen3-7" into "Files\gamecore\huds\CODHud"
then put the eyehud into "Files\gamecore\huds" or just replace the eyehud with a transparent image (preferrable)
I might improve this in the future with smoother animations and stuff.
Thanks to Bibo4pc for making the original hud for this
Thanks to bond1 for making the shaders
and of course, Thanks to everyone involved in the integration of WASPmod into FPSC vanilla, your efforts have made FPSC far more versatile than ever before.
http://www.youtube.com/watch?v=AfFa6uPv_8o
I appear to have burst into flames...