Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Zombie Eventday: Infinite ammo feature is bugged #383

Open
azalty opened this issue Feb 26, 2021 · 1 comment
Open

[BUG] Zombie Eventday: Infinite ammo feature is bugged #383

azalty opened this issue Feb 26, 2021 · 1 comment

Comments

@azalty
Copy link

azalty commented Feb 26, 2021

Describe the bug

It will only give one bullet to the terrorist instead of giving an entire magasine.

Environment

Additional context

sv_infinite_ammo 2 is probably not a solution because it will also give nades, though we can try to remove nades from players

@azalty
Copy link
Author

azalty commented May 22, 2021

hmm, there seems to be a problem since this event actually use sv_infinite_ammo 2

what I think: back in the days, map makers spawned weapons with the ammo attribute set to 1
Nowadays, it gives full ammo + 1 bullet, which for some reason is counted separately from the others
sv_infinite_ammo 2 could instantly give back that 1 bullet instead of full ammo

Fix idea:

  • Use GivePlayerAmmo() to give max ammo to clients, with a timer that reapeats every 2s. This way we'll get rid of sv_infinite_ammo 2 which also give back nades
    or
  • Use GivePlayerAmmo() to give max ammo to clients on weapon equip only. Keep using sv_infinite_ammo 2.

Check https://forums.alliedmods.net/showthread.php?t=260445

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant