AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011 (https://forums.alliedmods.net/showthread.php?t=148387)

berni 11-03-2011 16:09

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

Originally Posted by DarthNinja (Post 1588919)
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 ?

napalm00 11-03-2011 17:02

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

Originally Posted by berni (Post 1589369)
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.

DarthNinja 11-03-2011 17:41

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

Originally Posted by berni (Post 1589369)
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 (Post 1589405)
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:

http://content.screencast.com/users/...1f/Stunned.png

DarthNinja 11-03-2011 17:47

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

Originally Posted by DarthNinja (Post 1589420)
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.

napalm00 11-03-2011 17:55

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

Originally Posted by DarthNinja (Post 1589423)
I'm actually going to go test this now, I'll post back if I get anywhere.

Nice, thanks :up:

Antithasys 11-03-2011 18:45

Re: SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011
 
https://forums.alliedmods.net/showth...t=%5Cx06+event

berni 11-03-2011 18:57

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

Originally Posted by Antithasys (Post 1589455)

looks like a good start, now make it for one client only and invisible ^^

Antithasys 11-03-2011 19:02

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

Originally Posted by berni (Post 1589464)
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.

DarthNinja 11-03-2011 20:36

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

Originally Posted by Antithasys (Post 1589455)

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.

berni 11-03-2011 20:55

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

Originally Posted by DarthNinja (Post 1589519)
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


All times are GMT -4. The time now is 21:59.

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