Raised This Month: $ Target: $400
 0% 

RGB, RGBA, Hex


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-26-2012 , 15:46   Re: RGB, RGBA, Hex
Reply With Quote #11

Quote:
Originally Posted by asherkin View Post
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.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-26-2012 at 15:46.
Powerlord is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode