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 Display Issues?

Author
Message
kms
15
Years of Service
User Offline
Joined: 9th Jan 2009
Location:
Posted: 25th Apr 2009 12:12 Edited at: 25th Apr 2009 12:19
Hey. I'm sorry to be invading the FPSC Scripts section so thoroughly. I keep having problems with any and every script I'm doing that involves HUDs. I've read Plystire's tutorials, as well as several other threads on here. I'm also using FPI EditPad, so there shouldn't be syntax errors, and still, I have no luck. Instead of posting them all, though, I'm going to add one for now to see if, after solving this one problem, I can clear up the rest on my own, since it might be the same problem each time. Of course, it could also be something else, but I'll cross that bridge if I get to it.

Okay. This script should have been pretty basic. It's just a variation on the head shot script. I wanted it to display FPSC's "one shot kills" HUD after a head shot is completed.



I'm just not sure what I'm doing wrong. The 'headshot' part works (three shots kill the enemy), but the HUD never shows. It also does not work even when there's no change in head shot damage.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 26th Apr 2009 02:31
Good attempt, but there is a flaw in this particular logic.

Quote: "health=0"


Whent he health is less than or equal to 0, the script automatically exits and the "Destroy AI" script is then used instead, meaning that line of your script will be executed. An easier way to do this would be to put that line into the enemy's Destroy script (without the check of health being 0, of course)


The one and only,


kms
15
Years of Service
User Offline
Joined: 9th Jan 2009
Location:
Posted: 26th Apr 2009 08:04
Thanks Plystire! The only thing I wonder is... if I put that in my Destroy script, won't it pop up when the character dies, no matter what kind of shot? I basically wanted to visually distinguish between regular shots and normal shots. Is there anyway to specify an "if" of... something like, if there's a headshot: show HUD, but if there's not: don't show HUD? I can't find any conditions like that in the manual or FPI EditPad. Maybe this is not possible?
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 26th Apr 2009 19:33 Edited at: 26th Apr 2009 19:34
[EDIT] oops didn't read the first post [/EDIT]

...
2020vs
15
Years of Service
User Offline
Joined: 26th Apr 2009
Location: MN
Posted: 26th Apr 2009 20:54
Two Questions I really needa answered please. How do I change Huds and how do I get Ironsights/Gun Sights to guns that don't have them. Please explain exactly thank you

Ken
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 26th Apr 2009 21:22
I have not seen a way to detect for a headshot, no. I have only seen commands for altering how much dmg the headshot does and where the headshot "zone" is on the entity.


The one and only,


kms
15
Years of Service
User Offline
Joined: 9th Jan 2009
Location:
Posted: 26th Apr 2009 22:08 Edited at: 26th Apr 2009 22:08
Oh, okay. Thanks, Plystire! That's too bad, but at least now I know now. Thanks about the health=0 thing, too. That will come in handy later.

Login to post a reply

Server time is: 2024-11-25 00:51:26
Your offset time is: 2024-11-25 00:51:26