View Single Post
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 10-26-2011 , 09:51   Re: [ANY] SteamTools Game Description Override
Reply With Quote #7

Nice that SteamTools has this now. You could make this plugin support all mods by doing something like this:

Code:
#include <sourcemod> #undef REQUIRE_EXTENSIONS #include <sdkhooks> #include <steamtools> public CvarChanged(Handle:cvar, const String:oldVal[], const String:newVal[]) {     if (GuessSDKVersion() == SOURCE_SDK_EPISODE2VALVE)     {         // Use SteamTools     }     else     {         // Use SDK Hooks     } }
__________________
GoD-Tony is offline