Hi,
I've got a lot of experience making SM Plugins, but I'm new to extensions. The reason I want to make an extension is partly curiosity, and partly frustration with the syntax and structure of the SourcePawn language.
One of the first hurdles I'm struggling with is how to best hook the chat event. I've managed to successfully do so by creating an IGameEventListener2 instance in my extension, but this seems redundant given that SM surely is already hooking this event somewhere else. I've pored over the
C++ Reference, but have yet to find an interface exposed to extensions for the chat event(s).
So my questions is: what is the best way to hook the chat (player_say) event with a Sourcemod Extension? Better yet, how can I replicate the functionality of
RegConsoleCmd() in an extension?
Thanks,
Lange