Enumerations2
SymbolDescription
UserMessageTypeUserMsg message serialization formats
UserMsgUserMsg helper values.
Type Sets1
SymbolDescription
MsgHookHook function types for user messages.
Type Definitions1
SymbolDescription
MsgPostHookCalled when a message hook has completed.
Defines3
SymbolDescription
USERMSG_BLOCKHOOKSPrevents the message from triggering SourceMod and Metamod hooks
USERMSG_INITMSGMessage will be considered to be an initmsg
USERMSG_RELIABLEMessage will be set on the reliable stream
Functions13
SymbolDescription
EndMessageEnds a previously started user message (network message).
GetUserMessageIdReturns the ID of a given message, or -1 on failure.
GetUserMessageNameRetrieves the name of a message by ID.
GetUserMessageTypeReturns usermessage serialization type used for the current engine
HookUserMessageHooks a user message.
StartMessageStarts a usermessage (network message).
StartMessageAllStarts a usermessage (network message) that broadcasts to all clients.
StartMessageExStarts a usermessage (network message).
StartMessageOneStarts a simpler usermessage (network message) for one client.
UnhookUserMessageRemoves one usermessage hook.
UserMessageToBfReadMake sure to only call this on readable buffers (eg from a message hook).
UserMessageToBfWriteMake sure to only call this on writable buffers (eg from StartMessage).
UserMessageToProtobuf