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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

More configurability for events, sm_zombie_ammo improvements #391

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

azalty
Copy link

@azalty azalty commented Dec 19, 2021

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.

None yet

1 participant