Page 1 of 1
SOS. Help With HUD!!!
Posted: Thu Aug 14, 2008 9:16 pm
by Gamemaker
I really need help. I can't make numeric ammo HUD! Manuals don't help me at all!!!
Please help me!
Dan Valeo and RF manual didn't help me

Can someone tell me how to do that Step-By-Step?
P.S. Sorry for my Very-Very bad and ugly English 'cos I'm Estonian

Re: SOS. Help With HUD!!!
Posted: Thu Aug 14, 2008 9:26 pm
by Juutis
First of all, welcome to the forums.
Secondly, it all
is in the manual:
Clip& Magazine Display
In conjunction with weapon reloading it is possible to make the HUD display the amounts left in the clip and the number of clips left, rather than just the amount of ammunition. This change only applies if the currently selected weapon supports clips. If it doesn't, then just the amount of ammunition will be shown.
To make the HUD entry show the amount left in the clip add the line:
style = magazine
to the HUD definition. To make it show the number of clips left add this line:
style = clip
To show both clips and magazine contents at the same time you must use the ~ extension to the HUD entry name and define two different entries. For example, to show magazines and clips for bullets you would make the definitions like this:
[bullet]
type = numeric
style = magazine
framex = -100
framey = 0
indicatoroffsetx = 36
indicatoroffsety = 138
font = 9
width = 3
active = false
[~bullet]
type = numeric
style = clip
framex = -100
framey = 0
indicatoroffsetx = 36
indicatoroffsety = 158
font = 9
width = 3
active = false
Is there some thing in particular you don't understand?
Re: SOS. Help With HUD!!!
Posted: Thu Aug 14, 2008 9:40 pm
by Gamemaker
I understand everything, but this didn't work
hud.ini should be like this, I understand :
style=clip
style=magazine
[bullet]
style=magazine
blahblah etc.
[~bullet}
style=clip
blahblah etc.
Re: SOS. Help With HUD!!!
Posted: Tue Aug 19, 2008 8:17 am
by steven8
Hi Gamemaker. Did you get this issue resolved? What was happening? Did nothing show up on the screen, or did it come out wrong? Make sure you have a font #10, which is font = 9, and make sure you have equipped you weapon in the weapon ini, and player ini files.
Re: SOS. Help With HUD!!!
Posted: Tue Aug 19, 2008 4:25 pm
by Gamemaker
steven8 wrote:Hi Gamemaker. Did you get this issue resolved? What was happening? Did nothing show up on the screen, or did it come out wrong? Make sure you have a font #10, which is font = 9, and make sure you have equipped you weapon in the weapon ini, and player ini files.
Nothing showed up on screen. All I got was a big headache and I wasted a lot of hours
I copied all this script to weapon.ini, but do I have to copy it to player.ini too?
Waiting for answers

Re: SOS. Help With HUD!!!
Posted: Wed Aug 20, 2008 1:31 pm
by steven8
I just meant to make sure the player is armed with the weapon and ammo you need in the player.ini file. Also, make sure your weapon supports clips.
Oh, if all that looks cool, set framex and y to like, 10.
Re: SOS. Help With HUD!!!
Posted: Thu Aug 21, 2008 9:50 pm
by Gamemaker
steven8 wrote:I just meant to make sure the player is armed with the weapon and ammo you need in the player.ini file. Also, make sure your weapon supports clips.
Oh, if all that looks cool, set framex and y to like, 10.
I used default Reality Factory weapons. When the game starts, the player has ammo. Or do I have to change [Bullet], to this weapon's ammo.
Like: [GL_Grenade] etc. ?
Re: SOS. Help With HUD!!!
Posted: Sat Aug 23, 2008 4:33 am
by steven8
Your hud ini file will have to have all possible weapon ammunitions in order to show them.
Re: SOS. Help With HUD!!!
Posted: Sat Aug 23, 2008 9:27 am
by Gamemaker
steven8 wrote:Your hud ini file will have to have all possible weapon ammunitions in order to show them.
Okay! Thanks for your help. REALLY!!

Re: SOS. Help With HUD!!!
Posted: Sun Aug 24, 2008 1:36 am
by steven8
Gamemaker wrote:steven8 wrote:Your hud ini file will have to have all possible weapon ammunitions in order to show them.
Okay! Thanks for your help. REALLY!!

You're welcome!