MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / HookUserMessage

Method HookUserMessage

core/UserMessages.cpp:382–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382bool UserMessages::HookUserMessage(int msg_id, IUserMessageListener *pListener, bool intercept)
383{
384#ifdef USE_PROTOBUF_USERMESSAGES
385 return InternalHook(msg_id, (IProtobufUserMessageListener *)pListener, intercept, false);
386#else
387 return InternalHook(msg_id, (IBitBufUserMessageListener *)pListener, intercept, false);
388#endif
389}
390
391bool UserMessages::UnhookUserMessage(int msg_id, IUserMessageListener *pListener, bool intercept)
392{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected