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

Implement API function "Host_Pause" #1039

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

Conversation

jonathan-up
Copy link
Contributor

@jonathan-up jonathan-up commented Jul 18, 2024

If need to pause, do not need to set pausable to 1 and then make client execute pause command anymore.
This stuff make pause easier and fix some clients may block pause commands sent by the server.

@rtxa
Copy link

rtxa commented Jul 18, 2024

Thanks for implementing this, it would benefit AG and AG Mod X because (in my case) I rely on a random user to pause/unpause the server, which is odd and unrealiable. Maybe a bit offtopic, but did you take a look to this issue? #862 Unfortunately ReHLDS stops sending server info when on pause and makes players think the server is down, which is not the case in HLDS.

@jonathan-up
Copy link
Contributor Author

but did you take a look to this issue? #862
@rtxa I reply you in detail in that issues

@anzz1
Copy link
Contributor

anzz1 commented Feb 13, 2025

Two things are missing here:

  1. When you modify the API, you need to increase the minor API version in rehlds_api.h
  2. When you add a new function to the struct RehldsFuncs_t, you need to add it to the bottom of the struct otherwise it breaks every plugin compiled with earlier minor API version.

Check 084bd02 for reference

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.

3 participants