Raised This Month: $51 Target: $400
 12% 

[INC] More Colors (1.9.1)


Post New Thread Reply   
 
Thread Tools Display Modes
FaTony
Veteran Member
Join Date: Aug 2008
Old 09-23-2012 , 17:48   Re: [INC] More Colors (1.3.0)
Reply With Quote #71

It is possible to check game at runtime and use different functions depending on the version of the engine.
__________________
FaTony is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 09-23-2012 , 17:55   Re: [INC] More Colors (1.3.0)
Reply With Quote #72

That's me just come
__________________
dordnung is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 09-23-2012 , 18:27   Re: [INC] More Colors (1.3.0)
Reply With Quote #73

Quote:
Originally Posted by FaTony View Post
It is possible to check game at runtime and use different functions depending on the version of the engine.
I know, but I'm leaving this to plugin authors.
__________________
Dr. McKay is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-23-2012 , 18:32   Re: [INC] More Colors (1.3.0)
Reply With Quote #74

Quote:
Originally Posted by FaTony View Post
It is possible to check game at runtime and use different functions depending on the version of the engine.
Pretty sure that the function names being identical between the two files presents a problem with that... compile errors when attempting to include both files, for example.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 09-23-2012 , 18:35   Re: [INC] More Colors (1.3.0)
Reply With Quote #75

Yes, creating different functions having the same name was really bad idea.
__________________
FaTony is offline
The 5th Survivor
Senior Member
Join Date: Mar 2012
Old 09-24-2012 , 23:19   Re: [INC] More Colors (1.3.0)
Reply With Quote #76

Quote:
Originally Posted by Dr. McKay View Post
No, it's still limited by the game itself. By backwards-compatible, I mean that in any plugin that uses colors, you should be able to substitute more colors and it will work (on Source 2009).
I see. Damn, I was hoping you said otherwise But thanks for the clarification

By the way, does anyone know if in fact the mods themselves store the chat colors in the client.dll? I'm curious as to what determines what team colors is used to see if I can change it (at least client side). I wish the chat colors were in the ClientScheme.res file as it's so easy to modify colors there (such as the color to HINT type of text).

I think it sucks that \x03 controls four different colors and doesn't let you mix them. and yet \x02 can only be used under certain conditions, which is also for the team color. Would there be any way to manipulate that so that it would be like the example below through an include or plugin?

Code:
\x01 Default color
\x02 Light green
\x03 Blue
\x04 Red
\x05 Grey
\x06 Green/Orange
\x07 Olive
\x08 Black/Yellow
Not only that, but since chat messages appear in the console window, the console has additional colors that appear there as well. In L4D as an example, there's white, cyan, and another shade of both red and green. Would it be possible to utilize those colors in chat as well?

Last edited by The 5th Survivor; 09-27-2012 at 14:37.
The 5th Survivor is offline
rediem
SourceMod Donor
Join Date: Jul 2010
Old 10-03-2012 , 07:06   Re: [INC] More Colors (1.3.0)
Reply With Quote #77

Is there a way to color ReplyToCommand ?
rediem is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-03-2012 , 08:47   Re: [INC] More Colors (1.3.0)
Reply With Quote #78

Quote:
Originally Posted by rediem View Post
Is there a way to color ReplyToCommand ?
ReplyToCommand is just a shortcut that sends message destined for client 0 using PrintToServer, while sending replies to any other client using PrintToChat.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 10-03-2012 , 09:05   Re: [INC] More Colors (1.3.0)
Reply With Quote #79

Quote:
Originally Posted by Powerlord View Post
ReplyToCommand is just a shortcut that sends message destined for client 0 using PrintToServer, while sending replies to any other client using PrintToChat.
No, it uses reply source which corresponds to how command was entered - console or chat trigger. Not everyone is using chat, you know.
__________________
FaTony is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 10-03-2012 , 09:25   Re: [INC] More Colors (1.3.0)
Reply With Quote #80

Quote:
Originally Posted by rediem View Post
Is there a way to color ReplyToCommand ?
Planned

As it is, ReplyToCommand is a stock anyway.
__________________

Last edited by Dr. McKay; 10-03-2012 at 09:26.
Dr. McKay 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 01:27.


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