Garry's Mod

Garry's Mod

Elite HUD ( UPDATED )
 Toto téma bylo přilepeno, takže je nejspíš důležité
A Few Problems I Found with This
Hey, I really like the look of this HUD, but I've noticed a few technical issues with it.

First off, I get this error in the console upon dying whilst using it:
[ERROR] lua/autorun/client/cl_savav.lua:100: attempt to call method 'GetPrimaryAmmoType' (a nil value) 1. Base - lua/autorun/client/cl_savav.lua:100 2. fn - lua/autorun/client/cl_savav.lua:151 3. unknown - lua/ulib/shared/hook.lua:109
I'm not sure if it's because I'm using it alongside stuff like Drop Weapon or not, but it usually happens when I die whilst carrying a weapon that has ammo.

Second, upon dying, the health counter is still visible. I dunno if this is intentional or not, but I think it'd look better and closer to the default HUD if it wasn't visible whilst dead.

Third, weapons that have ammo but don't have magazines (like the default RPG) show a -1 in the clip. Again, I think it'd look better and closer to the default if it just showed the ammo reserve and not the placeholder magazine of -1.

Lastly, the HUD doesn't go away when cl_drawhud is set to 0. Kind of a little thing, but, yeah, it'd be better if it did.
Naposledy upravil LOL DUDE; 13. lis. 2018 v 19.44
< >
Zobrazuje se 15 z 5 komentářů
! agree
Replace the string "LocalPlayer():GetActiveWeapon():GetPrimaryAmmoType()!=-1" on
"IsValid(LocalPlayer():GetActiveWeapon()) and LocalPlayer():GetActiveWeapon():GetPrimaryAmmoType()!=-1" to avoid this error
ΛLΞΧ  [vývojář] 16. lis. 2018 v 10.13 
ok, one second pls =3
ΛLΞΧ  [vývojář] 16. lis. 2018 v 10.24 
LOL DUDE původně napsal:
Hey, I really like the look of this HUD, but I've noticed a few technical issues with it.

First off, I get this error in the console upon dying whilst using it:
[ERROR] lua/autorun/client/cl_savav.lua:100: attempt to call method 'GetPrimaryAmmoType' (a nil value) 1. Base - lua/autorun/client/cl_savav.lua:100 2. fn - lua/autorun/client/cl_savav.lua:151 3. unknown - lua/ulib/shared/hook.lua:109
I'm not sure if it's because I'm using it alongside stuff like Drop Weapon or not, but it usually happens when I die whilst carrying a weapon that has ammo.

Second, upon dying, the health counter is still visible. I dunno if this is intentional or not, but I think it'd look better and closer to the default HUD if it wasn't visible whilst dead.

Third, weapons that have ammo but don't have magazines (like the default RPG) show a -1 in the clip. Again, I think it'd look better and closer to the default if it just showed the ammo reserve and not the placeholder magazine of -1.

Lastly, the HUD doesn't go away when cl_drawhud is set to 0. Kind of a little thing, but, yeah, it'd be better if it did.



___________________________________

Well done, all fixed =3
﹁  SΛVΛV   ﹂ původně napsal:
Well done, all fixed =3
Thank you! Glad you were able to address those issues quickly.
< >
Zobrazuje se 15 z 5 komentářů
Na stránku: 1530 50