Garry's Mod

Garry's Mod

L4D2 Ammunition Pile
 This topic has been pinned, so it's probably important
Raptor_Killer 01  [developer] 13 Apr, 2022 @ 6:42am
BUGS
is it even possible to bug this thing...?
how...?
Last edited by Raptor_Killer 01; 23 Jun, 2022 @ 11:25am
< >
Showing 1-6 of 6 comments
x_TheBane_x 16 Jul, 2024 @ 12:58pm 
if you don't have a weapon it will create a error message.
Raptor_Killer 01  [developer] 16 Jul, 2024 @ 2:52pm 
Originally posted by 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
[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
sorry that took so long :missing:
Raptor_Killer 01  [developer] 8 Aug @ 5:47am 
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.
< >
Showing 1-6 of 6 comments
Per page: 1530 50