-
Notifications
You must be signed in to change notification settings - Fork 175
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
feat(comms): provide custom reason #615
base: v1.x
Are you sure you want to change the base?
Conversation
AddCommandListener(CommandCallback, "sm_gag"); | ||
AddCommandListener(CommandCallback, "sm_mute"); | ||
AddCommandListener(CommandCallback, "sm_silence"); | ||
AddCommandListener(CommandCallback, "sm_ungag"); | ||
AddCommandListener(CommandCallback, "sm_unmute"); | ||
AddCommandListener(CommandCallback, "sm_unsilence"); | ||
|
||
AddCommandListener(ReasonHook, "say"); | ||
AddCommandListener(ReasonHook, "say_team"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://sm.alliedmods.net/new-api/console/OnClientSayCommand
Absolute identically forward. Calls when client use say
or say_team
.
|
||
GetCmdArgString(sReason, sizeof sReason); | ||
|
||
if (StrEqual(sReason, "!noreason")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On TF2, result of execution say
command is located in quotation marks, so you receive string like "!noreason"
(with quotes, yes)
@rumblefrog would this PR be to include the option to customize the reason, insert a reason in the punishments of the comms? I would like to know just so that I can test, I would like to see this feature in future updates. In any case, I will test these changes and inform you here. |
Can it be merged into the |
Description
Adds a hook and option to allow custom reason input via chat
Motivation and Context
Implements and closes #578
How Has This Been Tested?
Not yet tested
Types of changes
Checklist: