Garry's Mod

Garry's Mod

L4D2 Ammunition Pile
 此主题已被置顶,因此可能具有重要性
Raptor_Killer 01  [开发者] 2022 年 4 月 13 日 上午 6:42
BUGS
is it even possible to bug this thing...?
how...?
最后由 Raptor_Killer 01 编辑于; 2022 年 6 月 23 日 上午 11:25
< >
正在显示第 1 - 6 条,共 6 条留言
x_TheBane_x 2024 年 7 月 16 日 下午 12:58 
if you don't have a weapon it will create a error message.
Raptor_Killer 01  [开发者] 2024 年 7 月 16 日 下午 2:52 
引用自 tpwilliams06
if you don't have a weapon it will create a error message.

ok, i will investigate on that...

would you be so kind to copy the error you got if you manage to trigger it again? thx
x_TheBane_x 8 月 7 日 下午 7:05 
[L4D2 Ammunition Pile] lua/entities/ent_l4d2_ammo_stack.lua:28: attempt to call method 'GetPrimaryAmmoType' (a nil value)
1. unknown - lua/entities/ent_l4d2_ammo_stack.lua:28
x_TheBane_x 8 月 7 日 下午 7:06 
sorry that took so long :missing:
Raptor_Killer 01  [开发者] 8 月 8 日 上午 5:47 
well...

The error you encountered can happend when:

- You try to use the ammo pile while holding a weapon that does not use any type of ammo to work.
- You're holding a SWEP that doesn't shoot anything (for example, custom melee weapons)
- The ammo type your weapon uses is not valid and doesn't count as ammo in the code.

If none of the 3 causes i've listed meets your situation, then i'll try to change something to not make the error appear.

good screenshot btw.
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50