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 / How to make a health and mana bars in ply's mod?

Author
Message
Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 18th May 2009 23:34
I saw the video on Official ply's mod thread named (Demo game or something) , in the video there was a health and mana bars increasing and decreasing , I want to know how to do this , please.

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 19th May 2009 05:39
Make bar images, then load them as HUDs into the game through a script. Since this script should always be running, it would be best to put it onto an entity that is Always Active (Dynamic lights are always active so those work well, too)

Now, once you've loaded the HUD, here's how the bar works:
(This is if your bar is vertical)

(This one is if your bar is horizontal)


These are assuming that your character has a max health of 500. If it's anything different, you'll need to change the "5" in the script to reflect that. So, if the player's max health is 100, you'd change the "5" to a "1".


The one and only,


Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 19th May 2009 23:31
Thanks Ply.
By the way , your mod is awesome!
Can't wait to see your games , and thanks again man.

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
stansg
15
Years of Service
User Offline
Joined: 8th Aug 2009
Location:
Posted: 8th Aug 2009 12:40
This is great... but i am noob for coding i dont know even how to create huds, can you plystire plsssss post that hud????????
P.S Your mod is awesome

Login to post a reply

Server time is: 2024-11-25 02:02:35
Your offset time is: 2024-11-25 02:02:35