Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / hud damage and display script need help :)

Author
Message
jag productions forum
14
Years of Service
User Offline
Joined: 26th Nov 2009
Location:
Posted: 14th Dec 2010 02:23
Hi every one

im making the final level on my game called "Humanity last stand" where your character dies in a massive fire fight by himself buying time for the transport ship to escape,

what i want to happen is, when your health drops to like 325 my second hud will appear, (iv'e made 5 huds, normal, level 1 damage, level 2 damage, level 3 and so on) so when your health drops to 325, your old hud is replaced by a damaged visor, when it drops to 250, second visor, 200, third visor, 100 forth visor, how can i go about doing this, im new to scripting and this will be my first complete game LOL.

any help will be appriciated

my sig is EpIc!!!!!
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Dec 2010 23:27
You can use the "plrhealthless" condition to check for when the player's health has fallen below a certain level. At that point, simply show the HUD you want and hide the others (Use "hudunshow" not "hudhide" for this)


Hope that can get you started.
If you run into any further trouble writing your script, post what you've written so far in here and we'll try to help you out more.


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.
jag productions forum
14
Years of Service
User Offline
Joined: 26th Nov 2009
Location:
Posted: 25th Dec 2010 14:32
sorry about the delay, I was really shaken up about the sudden death of my dog. but now i have recovered and back into my normal routine.


the script ive got so far is this
it works however your health regen's over time like cod,
and the broken glass display disappears, what i want to happen is when your health drops, the image changes to a damaged HUD, but cannot change back to the previous hud, when it takes more damage the image changes again as shown in the script however, it needs the same rules as i started before, it cannot change back it can only get more damaged.

how could i go about scripting this.

any help appreciated


;AIScript from Wizard
;Header
desc = health

;-----------------------------
;Script Start
;-----------------------------

:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\ENDGAME\1HB7.dds,hudname=HB7,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\ENDGAME\1HB6.dds,hudname=HB6,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\ENDGAME\1HB5.dds,hudname=HB5,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\ENDGAME\1HB4.dds,hudname=HB4,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\ENDGAME\1HB3.dds,hudname=HB3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\ENDGAME\1HB2.dds,hudname=HB2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\ENDGAME\1HB1.dds,hudname=HB1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\ENDGAME\1HB0.dds,hudname=HB0,hudhide=1,hudmake=display


:state=0,plrhealthless=101:hudshow=HB7

:state=0,plrhealthgreater=99:hudunshow=HB6,hudunshow=HB5,hudunshow=HB4,hudunshow=HB3,hudunshow=HB2,hudunshow=HB1,hudunshow=HB0


:state=0,plrhealthless=90:hudshow=HB6,hudunshow=HB7,hudunshow=HB5,hudunshow=HB4,hudunshow=HB3,hudunshow=HB2,hudunshow=HB1,hudunshow=HB0

:state=0,plrhealthless=80:hudshow=HB5,hudunshow=HB7,hudunshow=HB6,hudunshow=HB4,hudunshow=HB3,hudunshow=HB2,hudunshow=HB1,hudunshow=HB0

:state=0,plrhealthless=70:hudshow=HB4,hudunshow=HB7,hudunshow=HB6,hudunshow=HB5,hudunshow=HB3,hudunshow=HB2,hudunshow=HB1,hudunshow=HB0

:state=0,plrhealthless=50:hudshow=HB3,hudunshow=HB7,hudunshow=HB6,hudunshow=HB5,hudunshow=HB4,hudunshow=HB2,hudunshow=HB1,hudunshow=HB0

:state=0,plrhealthless=30:hudshow=HB2,hudunshow=HB7,hudunshow=HB6,hudunshow=HB5,hudunshow=HB4,hudunshow=HB3,hudunshow=HB1,hudunshow=HB0

:state=0,plrhealthless=15:hudshow=HB1,hudunshow=HB7,hudunshow=HB6,hudunshow=HB5,hudunshow=HB4,hudunshow=HB3,hudunshow=HB2,hudunshow=HB0

:state=0,plrhealthless=5:hudshow=HB0,hudunshow=HB7,hudunshow=HB6,hudunshow=HB5,hudunshow=HB4,hudunshow=HB3,hudunshow=HB2,hudunshow=HB1



;---------------------------
;Script END
;---------------------------

my sig is EpIc!!!!!
starmind 001
FPSC Reloaded Backer
17
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 25th Dec 2010 16:51 Edited at: 25th Dec 2010 18:02
Try this.



Edit:
Ok, I thought I was done with the script, but I just went through it again and saw some more problems with it. I have fixed those errors, but I want you to make sure the names of your images are named properly to the script. If not nothing will work. I hope this helps out.

Double Edit!!:
I am so sorry for this. I am cooking right now and writing your script. I have it done for you. Just assign it to a trigger and enjoy!

Lewis
VBOTB Developer '10
19
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 25th Dec 2010 19:20
Sounds like someone's trying to rip off the ending for Halo:Reach

jag productions forum
14
Years of Service
User Offline
Joined: 26th Nov 2009
Location:
Posted: 26th Dec 2010 00:58
it works like a charm thanks

and yeah it kinda is like the end of halo reach, maybe i should use the cut scene lol JK, i got my own ending cut scene in the works,

its an outdoor map that uses pretty much the whole fps creator area, and using the big rocks in on of the model packs and used them as a perimeter, but its laggy 10-18 fps, i think its my laptop tho

my sig is EpIc!!!!!
starmind 001
FPSC Reloaded Backer
17
Years of Service
User Offline
Joined: 23rd Sep 2007
Location:
Posted: 26th Dec 2010 10:50
Glad to help out!

Login to post a reply

Server time is: 2024-11-24 14:37:19
Your offset time is: 2024-11-24 14:37:19