Open azalty opened 3 years ago
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:
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
orGivePlayerAmmo()
to give max ammo to clients on weapon equip only. Keep using sv_infinite_ammo 2
.
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