Skip to content

Add "sm_dsay" command to basechat for sending HUD messages#1889

Merged
psychonic merged 2 commits intomasterfrom
psy/dsay
Dec 20, 2022
Merged

Add "sm_dsay" command to basechat for sending HUD messages#1889
psychonic merged 2 commits intomasterfrom
psy/dsay

Conversation

@psychonic
Copy link
Member

This saves me from having to find/create a test plugin when checking for what games support this, has very low maintenance burden, and just may actually be useful for someone other than me.

"d" was chosen for the prefix over the more intuitive "h" since hint messages use that.

@Rushaway
Copy link
Contributor

Can't make it work on CS:S using SM 1.11

@psychonic
Copy link
Member Author

Can't make it work on CS:S using SM 1.11

Thanks for letting me know. In the specific case that I was using it for, I was already expecting it to not display (and it still doesn't, after having fixed the plugin). What I should have done, was also tested the positive case. Since no error was thrown, I had assumed the code was fine.

I was missing the SetHudTextParams call. Fixed now. I'm also going to add a check that could have caught this case and thrown an error.

@Rushaway
Copy link
Contributor

With 914e253, it's now working properly on CS:S. 👍

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