The "sm_hide_tagrenades" cvar now allows 0 tagrenade. (helps #384)
Fixed maps that set the ammo of a weapon to 1 or weird values for "sm_zombie_ammo 1" by giving ammo to the player when they equip a firearm. (fixes #383)
Added "sm_zombie_ammo 2" that uses a custom function to replenish ammo, because "sv_infinite_ammo 2" gave infinite nades.
Modified a bit some timers to avoid having multiple instances of them running at the same time.
The custom function to replenish ammo uses the weapon_reload event and a timer that repeats every 5s. It should work with the timer only, but since I took time to write and test the weapon_reload event, I didn't remove it 😄. It shouldn't be a problem though.
The custom function to replenish ammo uses the weapon_reload event and a timer that repeats every 5s. It should work with the timer only, but since I took time to write and test the weapon_reload event, I didn't remove it 😄. It shouldn't be a problem though.
Tests: ✔️ Compiles fine ✔️ Tested in game