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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zombie Muting #208

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Zombie Muting #208

wants to merge 6 commits into from

Conversation

Mooshua
Copy link

@Mooshua Mooshua commented Mar 31, 2024

Prevent humans from hearing zombies when zr_zombie_mute is enabled. Zombies can speak to zombies, and humans can speak to zombies and humans. Admins can bypass this mute and speak to humans as a zombie if configured.

This has not been tested, but builds fine.

  • zr_zombie_mute <bool> enables/disables zombie muting globally
  • zr_zombie_mute_bypass <adminflags> sets adminflags that are allowed to speak as zombies

@Mooshua
Copy link
Author

Mooshua commented Mar 31, 2024

Aw crud, it looks like my editor did some "automagic" formatting. If it creates any merge conflicts let me know and I'll force-push to undo all that junk.

- Update IsHearing detour hook to include a call to ZEPlayer->IsMutedToTeam()
- Update ZE_UpdateMute to use ZEPlayer->SetMutedToTeam() instead of ZEPlayer->SetMuted().
@Vauff
Copy link
Contributor

Vauff commented May 2, 2024

Do you know of any servers that want to test this with players? Sorry this has sat for a bit, we just usually try to live test things, especially a player count reliant feature like this. However none of the communities involved with the dev team were interested in enabling it. Though there's no issue with the convar toggle of course, as long as we know it works.

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.

2 participants