Raised This Month: $ Target: $400
 0% 

[INC] More Colors (1.9.1)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 05-18-2012 , 22:23   Re: [INC] More Colors (1.0.0BETA)
Reply With Quote #1

bl4nk, wouldn't it be easier to just use GetRandomInt(0, MAXSIZE) and set the alpha bits to 0xFF ?
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 05-22-2012 , 02:15   Re: [INC] More Colors (1.0.0BETA)
Reply With Quote #2

Quote:
Originally Posted by berni View Post
bl4nk, wouldn't it be easier to just use GetRandomInt(0, MAXSIZE) and set the alpha bits to 0xFF ?
I suppose that would work as well.
bl4nk is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-22-2012 , 16:33   Re: [INC] More Colors (1.0.0BETA)
Reply With Quote #3

Quote:
Originally Posted by berni View Post
bl4nk, wouldn't it be easier to just use GetRandomInt(0, MAXSIZE) and set the alpha bits to 0xFF ?
Why would the alpha bits be necessary? There's a reason Valve included two versions of the colored code... so you only had to set the alpha if you wanted transparency.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 05-22-2012 , 17:45   Re: [INC] More Colors (1.0.0BETA)
Reply With Quote #4

sure, but you don't want to have random transparency, do you ?
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-22-2012 , 19:08   Re: [INC] More Colors (1.0.0BETA)
Reply With Quote #5

Quote:
Originally Posted by berni View Post
sure, but you don't want to have random transparency, do you ?
Text is fully opaque if you use \x07. Alpha is only present if you use \x08.
__________________

Last edited by Dr. McKay; 05-22-2012 at 19:08.
Dr. McKay is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 05-23-2012 , 04:19   Re: [INC] More Colors (1.0.0BETA)
Reply With Quote #6

Ok, but my previous question was just pointed at bl4nk's code
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
Reply



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 02:20.


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