FORUM
MANUAL
GET TREMULOUS
Tremulous forum
May 26, 2013, 12:35:03 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Come Chat with us live! Learn how
HERE!
Home
Help
Search
Login
Register
T R E M U L O U S
>
Mods
>
Modding Center
>
Percentage of Energy?
Pages: [
1
]
Go Down
Print
Author
Topic: Percentage of Energy? (Read 1253 times)
OhaiReapd
Spam Killer
Turrets: +7/-239
Posts: 942
Percentage of Energy?
«
on:
October 13, 2010, 08:50:21 PM »
I'm making a hud, and I would like to put a percentage of how much energy is left. This is for GPP and could you give me the code for it?
Thanks
~Reapd
Logged
Plague Bringer
Turrets: +147/-187
Posts: 3811
Re: Percentage of Energy?
«
Reply #1 on:
October 19, 2010, 02:40:45 PM »
Check the GPP HUD and look at the charge bars.
Logged
U R A Q T
OhaiReapd
Spam Killer
Turrets: +7/-239
Posts: 942
Re: Percentage of Energy?
«
Reply #2 on:
October 20, 2010, 03:57:21 AM »
Quote from: Plague Bringer on October 19, 2010, 02:40:45 PM
Check the GPP HUD and look at the charge bars.
The standard one? Hmmm.
Logged
Plague Bringer
Turrets: +147/-187
Posts: 3811
Re: Percentage of Energy?
«
Reply #3 on:
October 20, 2010, 02:32:17 PM »
Quote from: OhaiReapd on October 20, 2010, 03:57:21 AM
Quote from: Plague Bringer on October 19, 2010, 02:40:45 PM
Check the GPP HUD and look at the charge bars.
The standard one? Hmmm.
Any of 'em.
It'll either go by % of charge or increase with the time the button is held. You could inverse that, to have a bar decrease with the time held.
Logged
U R A Q T
F50
Turrets: +16/-26
Posts: 740
Re: Percentage of Energy?
«
Reply #4 on:
October 21, 2010, 03:27:32 AM »
Actually Plague Bringer, the standard charge bar (for Lucifer cannon, pounce etc.) uses its own special functions to determine its progress, among other things. Its not really a HUD thing.
Logged
"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law
OhaiReapd
Spam Killer
Turrets: +7/-239
Posts: 942
Re: Percentage of Energy?
«
Reply #5 on:
October 21, 2010, 11:14:03 AM »
Quote from: F50 on October 21, 2010, 03:27:32 AM
Actually Plague Bringer, the standard charge bar (for Lucifer cannon, pounce etc.) uses its own special functions to determine its progress, among other things. Its not really a HUD thing.
So it has to be coded in.
Logged
Plague Bringer
Turrets: +147/-187
Posts: 3811
Re: Percentage of Energy?
«
Reply #6 on:
October 21, 2010, 04:44:27 PM »
Quote from: F50 on October 21, 2010, 03:27:32 AM
Actually Plague Bringer, the standard charge bar (for Lucifer cannon, pounce etc.) uses its own special functions to determine its progress, among other things. Its not really a HUD thing.
In that case I'd assume that there's either no way to integrate a % bar directly into the HUD or it's too difficult or time consuming to do.
EDIT:
Do sections of the HUD have variable alphas? Can you arrange a few boxes and have them fade out one-by-one as stamina goes down?
Logged
U R A Q T
Demolution
Turrets: +157/-64
Posts: 1198
Re: Percentage of Energy?
«
Reply #7 on:
October 21, 2010, 07:12:19 PM »
If you can do it with ammo clips, why not with stamina?
Logged
Clan [AC] - For all your air conditioning needs please visit:
http://s1.zetaboards.com/AC_NoS/index/
Quote from: swamp-cecil on October 05, 2010, 08:04:04 PM
my brain > your brain.
and i am VERY stupid.
CreatureofHell
Turrets: +429/-123
Posts: 2351
Ash Nazg Durbatulūk, Ash Nazg Gimbatul.
Re: Percentage of Energy?
«
Reply #8 on:
October 21, 2010, 07:57:28 PM »
Quote from: Demolution on October 21, 2010, 07:12:19 PM
If you can do it with ammo clips, why not with stamina?
At a random guess, not knowing anything here, I would say the ammo clips are just bars made up of a number of rectangles and are decreased by the ammo usage and not percent.
Logged
Quote
<Timbo> posting on the trem forums rarely results in anything good
OhaiReapd
Spam Killer
Turrets: +7/-239
Posts: 942
Re: Percentage of Energy?
«
Reply #9 on:
October 21, 2010, 08:12:52 PM »
I have a way to make a bar. But it's not what I want.
Logged
Plague Bringer
Turrets: +147/-187
Posts: 3811
Re: Percentage of Energy?
«
Reply #10 on:
October 22, 2010, 12:01:05 AM »
Quote from: CreatureofHell on October 21, 2010, 07:57:28 PM
Quote from: Demolution on October 21, 2010, 07:12:19 PM
If you can do it with ammo clips, why not with stamina?
At a random guess, not knowing anything here, I would say the ammo clips are just bars made up of a number of rectangles and are decreased by the ammo usage and not percent.
Stamina is a value. We can read that value and increase or decrease bars accordingly.
Logged
U R A Q T
OhaiReapd
Spam Killer
Turrets: +7/-239
Posts: 942
Re: Percentage of Energy?
«
Reply #11 on:
October 22, 2010, 09:43:51 AM »
Quote from: Plague Bringer on October 22, 2010, 12:01:05 AM
Quote from: CreatureofHell on October 21, 2010, 07:57:28 PM
Quote from: Demolution on October 21, 2010, 07:12:19 PM
If you can do it with ammo clips, why not with stamina?
At a random guess, not knowing anything here, I would say the ammo clips are just bars made up of a number of rectangles and are decreased by the ammo usage and not percent.
Stamina is a value. We can read that value and increase or decrease bars accordingly.
Sooo mind telling me how?
Logged
Plague Bringer
Turrets: +147/-187
Posts: 3811
Re: Percentage of Energy?
«
Reply #12 on:
October 22, 2010, 05:39:53 PM »
Quote from: OhaiReapd on October 22, 2010, 09:43:51 AM
Quote from: Plague Bringer on October 22, 2010, 12:01:05 AM
Quote from: CreatureofHell on October 21, 2010, 07:57:28 PM
Quote from: Demolution on October 21, 2010, 07:12:19 PM
If you can do it with ammo clips, why not with stamina?
At a random guess, not knowing anything here, I would say the ammo clips are just bars made up of a number of rectangles and are decreased by the ammo usage and not percent.
Stamina is a value. We can read that value and increase or decrease bars accordingly.
Sooo mind telling me how?
Check the code. It's in there somewhere.
Logged
U R A Q T
superspirality
Guest
Re: Percentage of Energy?
«
Reply #13 on:
October 27, 2010, 08:31:49 AM »
Quote from: Plague Bringer on October 22, 2010, 05:39:53 PM
Quote from: OhaiReapd on October 22, 2010, 09:43:51 AM
Quote from: Plague Bringer on October 22, 2010, 12:01:05 AM
Quote from: CreatureofHell on October 21, 2010, 07:57:28 PM
Quote from: Demolution on October 21, 2010, 07:12:19 PM
If you can do it with ammo clips, why not with stamina?
At a random guess, not knowing anything here, I would say the ammo clips are just bars made up of a number of rectangles and are decreased by the ammo usage and not percent.
Stamina is a value. We can read that value and increase or decrease bars accordingly.
Sooo mind telling me how?
Check the code. It's in there somewhere.
Logged
Pages: [
1
]
Go Up
Print
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
=> General Discussion
=> Troubleshooting
=> Feedback
=> Official Servers
-----------------------------
Community
-----------------------------
=> Servers
===> Server Admin Contacts
=> Clans
===> Individual Clan Threads
=> Strategies and Tactics
=> Mod Ideas and Desires
=> Off Topic
-----------------------------
Media
-----------------------------
=> Mapping Center
=> Map Releases
=> Modeling Center
=> Other Tremulous Media
-----------------------------
Mods
-----------------------------
=> Modding Center
=> Mod Releases
===> HUDs
===> Gameplay Changing
===> Non-Gameplay Changing
===> Tools and Utilities
Loading...