Current Version: 1
Hello. I have made some modifications to the setuplevel.fpi to add the Health Head Systems. This adds the Head that are different depending of your health. Less health. less beautifull head.
This script use the head images that are in the directory "gamecore/huds/". The files are "head0" to "head10". This images are not copy when you use the build game process. You need to copy manually.
I add a scrennshot of in game play.
This is the modified "setuplevel.fpi"
;AIScript from Wizard
;Header
desc = Setup Wizard
; Health Heads System by Habatar. Version 1
; Setup Level Stats
:state=0:sky=skybankww2Gas
:state=0:music=audiobankmusicgenericmain.wav,musicvolume=50,soundscale=25
:state=0:fog=0,fogred=0,foggreen=0,fogblue=0
:state=0:ambience=25,ambiencered=255,ambiencegreen=255,ambienceblue=255
; Head Creator
:state=0:hudreset,hudx=15,hudy=10,hudimage=gamecorehudshead0.tga,hudname=head0,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=10,hudimage=gamecorehudshead1.tga,hudname=head1,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=10,hudimage=gamecorehudshead2.tga,hudname=head2,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=10,hudimage=gamecorehudshead3.tga,hudname=head3,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=10,hudimage=gamecorehudshead4.tga,hudname=head4,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=10,hudimage=gamecorehudshead5.tga,hudname=head5,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=10,hudimage=gamecorehudshead6.tga,hudname=head6,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=10,hudimage=gamecorehudshead7.tga,hudname=head7,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=10,hudimage=gamecorehudshead8.tga,hudname=head8,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=10,hudimage=gamecorehudshead9.tga,hudname=head9,hudmake=display,hudhide=1
:state=0:hudreset,hudx=15,hudy=10,hudimage=gamecorehudshead10.tga,hudname=head10,hudmake=display,hudhide=1
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecorehudsfader.tga,hudhide=1,hudtype=3,hudmake=internal
:state=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=0,hudblue=0,hudsizex=1024,hudsizey=768,hudimage=gamecorehudseyehud.tga,hudhide=1,hudtype=2,hudmake=internal
:state=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=128,hudblue=128,hudsizex=1024,hudsizey=768,hudimage=gamecorehudszoom.tga,hudhide=1,hudtype=4,hudmake=internal
:state=0:hudreset,hudx=5,hudy=5,hudimage=languagebankenglishgamecorehudslives.tga,hudmake=display
:state=0:hudreset,hudx=4,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecorehudsnumeric1.tga,hudtype=1,hudmake=numeric
:state=0:hudreset,hudx=15,hudy=5,hudimage=languagebankenglishgamecorehudshealth.tga,hudmake=display
:state=0:hudreset,hudx=15,hudy=13,hudsizex=16,hudsizey=16,hudimage=gamecorehudsnumeric1.tga,hudtype=2,hudmake=numeric
:state=0:hudreset,hudx=85,hudy=8,hudimage=gamecorehudsammo.tga,hudtype=3,hudmake=status
:state=0:hudreset,hudx=88,hudy=12,hudsizex=16,hudsizey=16,hudimage=gamecorehudsnumeric1.tga,hudtype=3,hudmake=numeric
; Setup Game Menu
:state=0:hudreset,hudx=50,hudy=10,hudimage=languagebankenglishgamecorebackdropsbasicgamemenu.tga,hudname=gamemenutitle,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimage=languagebankenglishgamecorebackdropsbasicexitgame.tga,hudtype=3,hudname=quitgame,hudhide=1,hudmake=button
:state=0:hudreset,hudx=50,hudy=60,hudimage=languagebankenglishgamecorebackdropsbasicreturntogame.tga,hudtype=4,hudname=returngame,hudhide=1,hudmake=button
:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecorehudspointer.tga,hudname=pointer,hudhide=1,hudmake=pointer
; All Created, go to Main Game Play
:state=0:state=1
; Main Game
:state=1,escapekeypressed=1:pausegame,state=2
; Head Controler
:state=1,plrhealthgreater=499:hudreset,hudshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=500,plrhealthgreater=450:hudreset,hudunshow=head10,hudshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=450,plrhealthgreater=400:hudreset,hudunshow=head10,hudunshow=head9,hudshow=head8,hudunshow=head7,hudunshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=400,plrhealthgreater=350:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudshow=head7,hudunshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=350,plrhealthgreater=300:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=300,plrhealthgreater=250:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=250,plrhealthgreater=200:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudunshow=head5,hudshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=200,plrhealthgreater=150:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudunshow=head5,hudunshow=head4,hudshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=150,plrhealthgreater=100:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=100,plrhealthgreater=0:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudshow=head1,hudunshow=head0
:state=1,plrhealthless=1:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudshow=head0
; Game Menu
:state=2,escapekeypressed=0:state=3
:state=3:hudshow=gamemenutitle,hudshow=quitgame,hudshow=returngame,hudshow=pointer,state=4
:state=4,hudselectionmade=3:continuegame,destroy
:state=4,hudselectionmade=4:state=6
:state=4,escapekeypressed=1:state=5
:state=5,escapekeypressed=0:state=6
:state=6:hudunshow=gamemenutitle,hudunshow=quitgame,hudunshow=returngame,hudunshow=pointer,resumegame,state=1
I have add the parts "Head Creator" and "Head controller" and I modify the position of health numeric.
If you change the maximun health you need to adjust the value of the command "plrhealthless" and "plrhealthgreater".
Give me your opinions. Thanks.