core/metamod.cpp
changeset 839 eab123e5ee23
parent 805 dcc896d4c552
child 887 e30d4a37f5e5
     1.1 --- a/core/metamod.cpp	Mon May 13 14:17:17 2013 -0400
     1.2 +++ b/core/metamod.cpp	Mon May 13 15:03:41 2013 -0400
     1.3 @@ -784,6 +784,20 @@
     1.4  	return mylen;
     1.5  }
     1.6  
     1.7 +#if SOURCE_ENGINE == SE_DOTA
     1.8 +void MetamodSource::ClientConPrintf(int clientIndex, const char *fmt, ...)
     1.9 +{
    1.10 +	va_list ap;
    1.11 +	char buffer[2048];
    1.12 +
    1.13 +	va_start(ap, fmt);
    1.14 +	UTIL_FormatArgs(buffer, sizeof(buffer), fmt, ap);
    1.15 +	va_end(ap);
    1.16 +
    1.17 +	ClientConPrintf((edict_t *)(gpGlobals->pEdicts + clientIndex), "%s", buffer);
    1.18 +}
    1.19 +#endif
    1.20 +
    1.21  void MetamodSource::ClientConPrintf(edict_t *client, const char *fmt, ...)
    1.22  {
    1.23  	va_list ap;