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 pickup

Author
Message
Gijs
14
Years of Service
User Offline
Joined: 11th Apr 2010
Location:
Posted: 11th Apr 2010 17:37
is there a script like: "Press F to pick up (weapon hud image)"?
Deltayo
15
Years of Service
User Offline
Joined: 2nd Sep 2009
Location:
Posted: 11th Apr 2010 21:21
Gijs
14
Years of Service
User Offline
Joined: 11th Apr 2010
Location:
Posted: 11th Apr 2010 21:25
Thanks for the post! But the weapon hud?
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 12th Apr 2010 05:49
Each weapon has their own "entity" script.


General Jackson's script goes as follows:

Now, to clean things up so it'll be easy to explain.

:state=0:hudreset
:state=0:hudx=50,hudy=50
:state=0:hudimagefine=gamecore\huds\use.dds
:state=0:hudname=weaponA,hudhide=1,hudmake=display
:state=0:state=10

:state=10,plrdistwithin=40:hudshow=weaponA,state=12
:state=12,plrdistfurther=40:hudunshow=weaponA,state=10
:state=12,scancodekeypressed=33:state=14

:state=14:hudunshow=coltprompt,playertake
:state=14:destroy


What you'll need to do is make a unique hudimage for each weapon

:state=0:hudimagefine=gamecore\huds\use.dds
this line specifies the hud image that is used for any hud. FPSC supports Targa, BMP, and PNG formats as well as DDS.

If you want a unique image for any weapon, you'll need to assign separate scripts for every weapon you use... each, of which, will have their own unique hud image.


:state=0:hudx=50,hudy=50
This specifies WHERE the hudimage pops up, in this case, it says
50% width of screen and 50% height of screen.


:state=0:hudname=weaponA,hudhide=1,hudmake=display
This creates a new hud image under the name weaponA. I am uncertain if hudimages are global or not, so you might wish to change "weaponA" to the name of your weapon


:state=10,plrdistwithin=40:hudshow=weaponA,state=12
:state=12,plrdistfurther=40:hudunshow=weaponA,state=10
This will show the image if the player is close to the weapon, regardless or not if the player is actually targeting the weapon. It will hide it if the player is too far away.

Change weaponA to the name of your new hud.



Thats really all you need to know, I think.

Its not who you are or what you've done... its WHY you did it and how far you are willing to go.
If you fear speaking for yourself, make use the words of others while discovering your own voice.
Gijs
14
Years of Service
User Offline
Joined: 11th Apr 2010
Location:
Posted: 13th Apr 2010 08:36
thank you!

Login to post a reply

Server time is: 2024-11-24 23:28:06
Your offset time is: 2024-11-24 23:28:06