Quote:
Originally Posted by asherkin
It would be exactly the same check... just in SourceMod, it doesn't magically know the client supports handling the extra codes.
|
The problem with the check as I wrote it is that is depends on a contiguous set of versions supporting it.
However, CS:GO will likely support this. SOURCE_SDK_CSGO is higher than SOURCE_SDK_ALIENSWARM, meaning we now have two range checks:
PHP Code:
if (SOURCE_SDK_EPISODE2VALVE <= GuessSDKVersion() < SOURCE_SDK_LEFT4DEAD || GuessSDKVersion() >= SOURCE_SDK_CSGO)
{
}
and then if the game after CS:GO doesn't support color codes, then this code has to be adjusted
again to add an upper bounds check to the second range.
Whereas SourceMod could just add a capabilities string to it that we could check and all this nasty code would be abstracted away into the core.
__________________