SayParameters

From Sven Co-op
Revision as of 13:53, 16 April 2025 by Outerbeast (talk | contribs) (Created page with "The SayParameters class contains a player's text data when they say something in game chat. It can be used to interpret the text as though it were a command, and its visibilit...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The SayParameters class contains a player's text data when they say something in game chat. It can be used to interpret the text as though it were a command, and its visibility can be controlled. This is used for ClientSay hook.

It has a single property bool ShouldHide: Controls whether this text will be hidden or not. This is implemented as a property accessor and mutator. Default false.

Function Description
CBasePlayer@ GetPlayer() const Gets the player that is saying something.
ClientSayType GetSayType() const Gets the say type of this text.
const string& GetCommand() const Gets the entire command string.
const CCommand@ GetArguments() const Gets the arguments in this command.