From 84b3b1d29c272b23ef34b6c190a3228765db1d21 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sat, 18 Jun 2011 14:34:17 -0400 Subject: [PATCH] Added HintTextMsg to IGameHelpers (bug 4950, r=Fyren). --- public/IGameHelpers.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/public/IGameHelpers.h b/public/IGameHelpers.h index a6510c44..fedafdee 100644 --- a/public/IGameHelpers.h +++ b/public/IGameHelpers.h @@ -40,7 +40,7 @@ */ #define SMINTERFACE_GAMEHELPERS_NAME "IGameHelpers" -#define SMINTERFACE_GAMEHELPERS_VERSION 6 +#define SMINTERFACE_GAMEHELPERS_VERSION 7 class CBaseEntity; class CBaseHandle; @@ -269,7 +269,16 @@ namespace SourceMod * @param prop SendProp pointer. * @return Uncomputed sendprop offset. */ - virtual int GetSendPropOffset(SendProp *prop) =0; + virtual int GetSendPropOffset(SendProp *prop) =0; + + /** + * @brief Sends a hint message to a client. + * + * @param client Client index. + * @param msg Message to send. + * @return True on success, false on failure. + */ + virtual bool HintTextMsg(int client, const char *msg) =0; }; }