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

Explore how to query CVars from players to enable certain features #28

Open
rtxa opened this issue Jan 23, 2023 · 0 comments
Open

Explore how to query CVars from players to enable certain features #28

rtxa opened this issue Jan 23, 2023 · 0 comments
Labels
type: enhancement New feature or request

Comments

@rtxa
Copy link
Owner

rtxa commented Jan 23, 2023

One of the reasons to implement this feature is too see if players have available color codes in chat by querying aghl_version.

According to https://github.com/tmp64/BugfixedHL-Rebased/wiki/HTML-and-Unicode-MOTD

  1. Enable sv_bhl_query_vars. This will enable querying of aghl_supports client cvar to determine which MOTDs are supported.
  2. If the server supports old p47 clients (like NGHL), enable sv_bhl_query_wait_for_id to prevent them from being kicked with svc_bad error.
  3. Enable sv_bhl_defer_motd. It will defer sending of MOTD until after query response was received. It may delay showing of the MOTD dialog but usually query response arrives before client is fully loaded so there are no issues with that.

Basically, looks like this is achievable by just using AMXX. My biggest concern was how to know if the player is using BHL without crashing the client if he was using an old client (p47). Using the old-api should workaround the issue.

@rtxa rtxa added the type: enhancement New feature or request label Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
Status: Backlog/Ideas 🤔
Development

No branches or pull requests

1 participant