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

REQ: hud element which receives strings from mods #953

Open
mushis opened this issue Oct 20, 2024 · 0 comments
Open

REQ: hud element which receives strings from mods #953

mushis opened this issue Oct 20, 2024 · 0 comments

Comments

@mushis
Copy link

mushis commented Oct 20, 2024

Is your feature request related to a problem? Please describe.
yes and no. its not a "problem".

Describe the solution you'd like
hud_modinfo - receives strings from mods
imagine that relevant information is printed on the screen when playing qw. depending on the situation, this string will be different. Examples:

    1. prewar scenario: mod sets hud_modinfo_string = "You are not ready! Type x to readyup!"
    1. spectator mode: mod sets hud_modinfo_string = "press x to change camera, y to join"
    1. CTF, you have the flag: mod sets hud_modinfo_string = "you have the flag!!"
    1. etc.

It would allow mods to assign different strings to hud_modinfo "variable", which would be only read only for the client.
The client just needs to place it on the screen, as with other hud elements.
bonus points if the message can include variables that are recognized by the client, so it can print the actually binded key of a command. like on example 1 and 2 above.

Describe alternatives you've considered
no

Additional context
no

Impact on server or mods
yes, there is. but the client needs to support :)

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

1 participant