Hi guys.
Quite a while ago I created a script for a custom HUD and with the help of CE implemented it properly into FPSC. I've recently come back to this now to find that for some reason the position of the ammo HUD is not correct. I've tried various different codes to try to fix this but whenever I test it, the ammo HUD is in the position stated in the setup.ini and not in my HUD script. How can I get FPSC to follow coordinates set in my HUD script rather than in the setup.ini?
The script is added to a dynamic entity like a decal and set to always active.
(Top line was my attempt to get the ammo HUD working, it failed.)
:state=0:hudreset,hudx=13,hudy=20,hudsizex=16,hudsizey=16,hudimage=gamecorehudsnumeric1.tga,hudname=head5,hudtype=3,hudmake=numeric,hudhide=1
:state=0:hudreset,hudx=12,hudy=17,hudimage=gamecorehudshead0.tga,hudname=head0,hudmake=display,hudhide=1
:state=0:hudreset,hudx=12,hudy=17,hudimage=gamecorehudshead1.tga,hudname=head1,hudmake=display,hudhide=1
:state=0:hudreset,hudx=12,hudy=17,hudimage=gamecorehudshead2.tga,hudname=head2,hudmake=display,hudhide=1
:state=0:hudreset,hudx=12,hudy=17,hudimage=gamecorehudshead3.tga,hudname=head3,hudmake=display,hudhide=1
:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecorehudshead4.tga,hudname=head4,hudmake=display,hudhide=1,state=1
;State One = Main State
;Display the HUDs According To The Player Health
:state=1,plrhealthgreater=150:hudshow=head0,hudunshow=head1,hudunshow=head2,hudunshow=head3,hudunshow=head4,hudshow=head5
:state=1,plrhealthless=151,plrhealthgreater=50:hudunshow=head0,hudshow=head1,hudunshow=head2,hudunshow=head3,hudunshow=head4,hudshow=head5
:state=1,plrhealthless=101,plrhealthgreater=25:hudunshow=head0,hudunshow=head1,hudshow=head2,hudunshow=head3,hudunshow=head4,hudshow=head5
:state=1,plrhealthless=51,plrhealthgreater=10:hudunshow=head0,hudunshow=head1,hudunshow=head2,hudshow=head3,hudunshow=head4,headshow=head5
:state=1,plrhealthless=26,plrhealthgreater=0:hudunshow=head0,hudunshow=head1,hudunshow=head2,hudunshow=head3,hudshow=head4,headunshow=head5,state=2
;State Two = Start Sound
;Play Sound Because Health Was Less Than 26
:state=2:loopsound=audiobank/user/heartbeat.wav,state=3
;State Three = Stop Sound
;Stop Sound If Player Picks Up Health Or Dies
:state=3,plrhealthgreater=26:stopsound,state=1
:state=3,plralive=0:stopsound,state=4
;State Four = Prevent Sound While Dead
;Loop Script Upon Player Spawn To Prevent Sound Loop While Dead
:state=4,plralive=1:state=1
Another thing I would like to do is hide the weapon HUD which appears whenever you select a weapon without having to actually delete them. How can I go about this?
The last thing I'd like to do is hide the ammo HUD when we get into that <26 health state. Obviously I haven't been able to try this one as I can't get the ammo HUD to follow the script.
Help with any of these things would be great. I'm not much of a scripter but I'm slowly learning. Any little coding snippets or advice you can give me will really help me on my way!