Color of ammo status is not working as intended


(Kl3ppy) #1

Hi,

I just wanted to change my colors for the weapon ammo status.

empty -> red
almost empty -> yellow
full -> white

[ShooterGame.SGUIHUDWeaponInventoryItem]
m_CooldownFinishedDelay=1
m_NoAmmoColor=(R=255,G=0,B=0,A=255)
m_AmmoColor=(R=255,G=255,B=255,A=255)
m_BlinkDuration=2
m_BlinkSpeedModifier=2
m_ActionContextPollThreshold=0.5
m_PollThreshold=0.1
[ShooterGame.SGUIHUDWeaponAmmo]
m_NoAmmoColor=(R=255,G=0,B=0,A=255)
m_AmmoColor=(R=255,G=255,B=255,A=255)
m_LowAmmoColor=(R=255,G=255,B=0,A=255)
m_LowAmmoColor2=(R=0,G=40,B=49,A=255)
m_LowAmmoPercentage=0.4
m_RateOfBlink=15
m_PollThreshold=0.2

I thought that it should work like this:
Full clip, everything white, 10 bullets left and it switched to yellow and when all bullets are gone, it switched to red. But this came out:



Everything should be white, but the 0 in front of the bullets in the mag, the 0 i front of the bullets avi for reload and the grenade sign are red


The 0 in front of the bullets in the mag should be yellow, the 0 in front of the reloadable bullets should be white as well as the grenade sign


Everything should be red except the grenade sign because I still have the grenade.

Did I miss a section to edit, is it a bug or is it not working as I wanted it to work?


(Mustang) #2

I think is both a bug and not working as intended, but tbh I think these are all placeholders and will get a major overhaul at some point.

So probably not worth the time to “fix” it now if it’s definitely going to get replaced later on.