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

feature: logic improvements #24

Open
Rushaway opened this issue Oct 1, 2024 · 2 comments
Open

feature: logic improvements #24

Rushaway opened this issue Oct 1, 2024 · 2 comments

Comments

@Rushaway
Copy link
Member

Rushaway commented Oct 1, 2024

The current logic focuses on blocking the infection.

However, this approach causes an issue:

  • Instead of simply bypassing the infection, it prevents it altogether, resulting in one or more fewer zombies spawning than the initial intended number, depending on the settings.

A suitable solution will be to add fowards/natives calls into zombie reloaded.

  1. Native bool check if client is top defenders
  2. Skip the client if it was choosen but call a forward (to set the perks)
  3. continue cycle

What do you think @maxime1907 @notkoen ?

@maxime1907
Copy link
Member

maxime1907 commented Oct 1, 2024

got it but dont put the top defenders logic in zombiereloaded, it should just skip the client (in topdefenders) and choose another one based on the ZR_OnClientInfect return value

@Rushaway
Copy link
Member Author

Rushaway commented Oct 1, 2024

got it but dont put the top defenders logic in zombiereloaded, it should just skip the client and choose another one based on the function return

Yes, I completely agree

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

No branches or pull requests

2 participants