Garry's Mod

Garry's Mod

Elite HUD ( UPDATED )
 此主题已被置顶,因此可能具有重要性
LOL DUDE 2018 年 11 月 13 日 下午 2: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.
最后由 LOL DUDE 编辑于; 2018 年 11 月 13 日 下午 7:44
< >
正在显示第 1 - 5 条,共 5 条留言
Mordecai 2018 年 11 月 13 日 下午 6:51 
! agree
пикми рыбка 2018 年 11 月 15 日 下午 8:04 
Replace the string "LocalPlayer():GetActiveWeapon():GetPrimaryAmmoType()!=-1" on
"IsValid(LocalPlayer():GetActiveWeapon()) and LocalPlayer():GetActiveWeapon():GetPrimaryAmmoType()!=-1" to avoid this error
ΛLΞΧ  [开发者] 2018 年 11 月 16 日 上午 10:13 
ok, one second pls =3
ΛLΞΧ  [开发者] 2018 年 11 月 16 日 上午 10:24 
引用自 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 2018 年 11 月 20 日 下午 5:59 
Well done, all fixed =3
Thank you! Glad you were able to address those issues quickly.
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50