shanapu / MyJailbreak

A rewrite of Franugs Special Jailbreak and merge of eccas, ESK0s & zipcores Jailbreak Warden

Home Page:https://forums.alliedmods.net/showthread.php?t=283212

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Zombie Eventday: Infinite ammo feature is bugged

azalty opened this issue · comments

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

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