Add initial version of safety checks for CS:GO to attempt to avoid user GSLT bans.

This commit is contained in:
Nicholas Hastings
2016-03-02 15:25:01 -05:00
parent 7bd1ed2339
commit b65de29c92
7 changed files with 124 additions and 0 deletions
+9
View File
@@ -170,6 +170,15 @@ bool SDKTools::SDK_OnLoad(char *error, size_t maxlength, bool late)
InitSDKToolsAPI();
#if SOURCE_ENGINE == SE_CSGO
m_bFollowCSGOServerGuidelines = true;
const char *pszValue = g_pSM->GetCoreConfigValue("FollowCSGOServerGuidelines");
if (pszValue && strcasecmp(pszValue, "no") == 0)
{
m_bFollowCSGOServerGuidelines = false;
}
#endif
return true;
}