Garry's Mod

Garry's Mod

Elite HUD ( UPDATED )
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
LOL DUDE 13. nov. 2018 kl. 14:43
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.
Sidst redigeret af LOL DUDE; 13. nov. 2018 kl. 19:44
< >
Viser 1-5 af 5 kommentarer
Mordecai 13. nov. 2018 kl. 18:51 
! agree
пикми рыбка 15. nov. 2018 kl. 20:04 
Replace the string "LocalPlayer():GetActiveWeapon():GetPrimaryAmmoType()!=-1" on
"IsValid(LocalPlayer():GetActiveWeapon()) and LocalPlayer():GetActiveWeapon():GetPrimaryAmmoType()!=-1" to avoid this error
ΛLΞΧ  [udvikler] 16. nov. 2018 kl. 10:13 
ok, one second pls =3
ΛLΞΧ  [udvikler] 16. nov. 2018 kl. 10:24 
Oprindeligt skrevet af LOL DUDE:
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
LOL DUDE 20. nov. 2018 kl. 17:59 
Oprindeligt skrevet af ﹁  SΛVΛV   ﹂:
Well done, all fixed =3
Thank you! Glad you were able to address those issues quickly.
< >
Viser 1-5 af 5 kommentarer
Per side: 1530 50