Garry's Mod

Garry's Mod

Elite HUD ( UPDATED )
 Topik ini telah disematkan, kemungkinan topiknya penting
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.
Terakhir diedit oleh LOL DUDE; 13 Nov 2018 @ 7:44pm
< >
Menampilkan 1-5 dari 5 komentar
Mordecai 13 Nov 2018 @ 6:51pm 
! agree
Replace the string "LocalPlayer():GetActiveWeapon():GetPrimaryAmmoType()!=-1" on
"IsValid(LocalPlayer():GetActiveWeapon()) and LocalPlayer():GetActiveWeapon():GetPrimaryAmmoType()!=-1" to avoid this error
ΛLΞΧ  [pengembang] 16 Nov 2018 @ 10:13am 
ok, one second pls =3
ΛLΞΧ  [pengembang] 16 Nov 2018 @ 10:24am 
Diposting pertama kali oleh 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 @ 5:59pm 
Diposting pertama kali oleh ﹁  SΛVΛV   ﹂:
Well done, all fixed =3
Thank you! Glad you were able to address those issues quickly.
< >
Menampilkan 1-5 dari 5 komentar
Per halaman: 1530 50