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

SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011


Post New Thread Reply   
 
Thread Tools Display Modes
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 11-03-2011 , 16:09   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #201

Quote:
Originally Posted by DarthNinja View Post
It's \x06 for item colors. It (the client) uses the color that corresponds to the item quality from the last item_found event the client saw (or black if no event was seen yet).
Maybe this event can be invisibly faked ?
__________________
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
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 11-03-2011 , 17:02   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #202

Quote:
Originally Posted by berni View Post
Maybe this event can be invisibly faked ?
That's what I was wondering, too.
I played in a lotus server but it didn't seem any different to me, all the messages where white before an item_found event and then, after somebody found an item (unique quality = yellow color) the ads turned to yellow color.
__________________
napalm00 is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 11-03-2011 , 17:41   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #203

Quote:
Originally Posted by berni View Post
Maybe this event can be invisibly faked ?
If the found_item event is fired using an invalid item index, nothing is printed.
However I have not tested if this has any effect on what the next color used is.

Quote:
Originally Posted by napalm00 View Post
That's what I was wondering, too.
I played in a lotus server but it didn't seem any different to me, all the messages where white before an item_found event and then, after somebody found an item (unique quality = yellow color) the ads turned to yellow color.
Their ads plugin just uses straight-up \x06. The last color the client saw is the color of their ads text.

On a related note; the Monoculus events also use the item color pool (only purple though) which can be tapped into the same way:


__________________

Last edited by DarthNinja; 11-03-2011 at 17:42.
DarthNinja is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 11-03-2011 , 17:47   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #204

Quote:
Originally Posted by DarthNinja View Post
If the found_item event is fired using an invalid item index, nothing is printed.
However I have not tested if this has any effect on what the next color used is.
I'm actually going to go test this now, I'll post back if I get anywhere.
__________________
DarthNinja is offline
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 11-03-2011 , 17:55   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #205

Quote:
Originally Posted by DarthNinja View Post
I'm actually going to go test this now, I'll post back if I get anywhere.
Nice, thanks
__________________
napalm00 is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 11-03-2011 , 18:45   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #206

https://forums.alliedmods.net/showth...t=%5Cx06+event
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 11-03-2011 , 18:57   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #207

Quote:
Originally Posted by Antithasys View Post
looks like a good start, now make it for one client only and invisible ^^
__________________
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
Antithasys
Moderator
Join Date: Apr 2008
Old 11-03-2011 , 19:02   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #208

Quote:
Originally Posted by berni View Post
looks like a good start, now make it for one client only and invisible ^^
Why not hook the event and stop it, not sure if that would stop the color or not, but worth a try.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 11-03-2011 , 20:36   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #209

Quote:
Originally Posted by Antithasys View Post
That thread is very outdated.

If you fire the event with an invalid item index, it prints #TF_Default_ItemDef instead of the item name, so no luck there.
If you fire it using an "invalid" client index (like a bot) the event isn't shown but it also doesn't change the color on the client. - I'm not sure if the event even fires, or if it dies on the server.
__________________
DarthNinja is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 11-03-2011 , 20:55   Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
Reply With Quote #210

Quote:
Originally Posted by DarthNinja View Post
That thread is very outdated.

If you fire the event with an invalid item index, it prints #TF_Default_ItemDef instead of the item name, so no luck there.
If you fire it using an "invalid" client index (like a bot) the event isn't shown but it also doesn't change the color on the client. - I'm not sure if the event even fires, or if it dies on the server.
Enable cl_showevents or net_showevents, it will show you the events the client receives. I doubt that the server does any event validity checking except the count/type of arguments
__________________
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 18:06.


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