Upvote Upvoted 1 Downvote Downvoted
HUD Ammo Problem
posted in Q/A Help
1
#1
0 Frags +

Basically, the ReserveAmmo from the last weapon is displayed even when the current weapon doesn't have any reserve ammo.

The Problem -_-

Any help would be much appreciated!

Basically, the ReserveAmmo from the last weapon is displayed even when the current weapon doesn't have any reserve ammo.

[url=http://imgur.com/zo9wiZY]The Problem -_-[/url]

Any help would be much appreciated!
2
#2
0 Frags +

Set "visible" to 0, it will still show when needed.

Set "visible" to 0, it will still show when needed.
3
#3
0 Frags +
whayaySet "visible" to 0, it will still show when needed.

Well, that half-fixed it. While setting the AmmoInReserve visible var to 0 removed the reserve ammo from the Flamethrower's ammo, it also removed it from every weapon that had a Reserve Clip .-. .

Here's the pastebin; I'm not using shadows:
hudammoweapons

And yeah, I reset the AmmoInReserve back to 1.

[quote=whayay]Set "visible" to 0, it will still show when needed.[/quote]

Well, that half-fixed it. While setting the AmmoInReserve visible var to 0 removed the reserve ammo from the Flamethrower's ammo, it also removed it from every weapon that had a Reserve Clip .-. .

Here's the pastebin; I'm not using shadows:
[url=http://pastebin.com/Ui2YHsDe]hudammoweapons[/url]

And yeah, I reset the AmmoInReserve back to 1.
4
#4
1 Frags +

Just look at the default file, it's set to "visible" "0" everywhere.

https://github.com/whayay/def.ref.tf2/blob/master/resource/ui/hudammoweapons.res#L58

Just look at the default file, it's set to "visible" "0" everywhere.

https://github.com/whayay/def.ref.tf2/blob/master/resource/ui/hudammoweapons.res#L58
5
#5
0 Frags +
whayayJust look at the default file, it's set to "visible" "0" everywhere.

https://github.com/whayay/def.ref.tf2/blob/master/resource/ui/hudammoweapons.res#L58

Huh. Well, I remade it with the same settings (after taking that code you sent) and that fixed it. Thanks, it really helped c:

[quote=whayay]Just look at the default file, it's set to "visible" "0" everywhere.

https://github.com/whayay/def.ref.tf2/blob/master/resource/ui/hudammoweapons.res#L58[/quote]

Huh. Well, I remade it with the same settings (after taking that code you sent) and that fixed it. Thanks, it really helped c:
Please sign in through STEAM to post a comment.