Skip to content

More configurability for events, sm_zombie_ammo improvements#391

Open
azalty wants to merge 1 commit into
shanapu:devfrom
azalty:patch-6
Open

More configurability for events, sm_zombie_ammo improvements#391
azalty wants to merge 1 commit into
shanapu:devfrom
azalty:patch-6

Conversation

@azalty

@azalty azalty commented Dec 19, 2021

Copy link
Copy Markdown

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

- Added the "sm_catch_ct_speed" cvar
- The "sm_hide_tagrenades" cvar now allows 0 tagrenade.
- 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.
- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant