Garry's Mod

Garry's Mod

L4D2 Ammunition Pile
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
Raptor_Killer 01  [udvikler] 13. apr. 2022 kl. 6:42
BUGS
is it even possible to bug this thing...?
how...?
Sidst redigeret af Raptor_Killer 01; 23. juni 2022 kl. 11:25
< >
Viser 1-6 af 6 kommentarer
x_TheBane_x 16. juli 2024 kl. 12:58 
if you don't have a weapon it will create a error message.
Raptor_Killer 01  [udvikler] 16. juli 2024 kl. 14:52 
Oprindeligt skrevet af 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 7. aug. kl. 19: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 7. aug. kl. 19:06 
sorry that took so long :missing:
Raptor_Killer 01  [udvikler] 8. aug. kl. 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.
< >
Viser 1-6 af 6 kommentarer
Per side: 1530 50