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

[REQ] Spray filename logger


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ratty
SourceMod Donor
Join Date: Jan 2006
Old 05-09-2008 , 10:54   [REQ] Spray filename logger
Reply With Quote #1

Here's a start:
http://forums.alliedmods.net/showthread.php?t=63631

I don't know if anyone else extracts the sprays out of their downloads directory on the server, but it would be so useful if I can have the data on the player name of the spray owner. Filenames look like "c7914e32.dat", which is apparently a hex representation of a CRC done on... I dont know what. If I can match up the sprays to the player names (and maybe steamid too in case they change their name).
Its understandable if nobody cares about this, I'm probably the only one that bothers with sprays, they're mostly stupid anyway.
ratty is offline
pRED*
Join Date: Dec 2006
Old 05-09-2008 , 16:01   Re: [REQ] Spray filename logger
Reply With Quote #2

http://docs.sourcemod.net/api/index....layerDecalFile
pRED* is offline
ratty
SourceMod Donor
Join Date: Jan 2006
Old 05-10-2008 , 02:16   Re: [REQ] Spray filename logger
Reply With Quote #3

Thank you so much!!!!!
ratty is offline
ratty
SourceMod Donor
Join Date: Jan 2006
Old 05-17-2008 , 18:00   Re: [REQ] Spray filename logger
Reply With Quote #4

BTW I made a tiny plugin that uses GetPlayerDecalFile, and hooks OnClientPutInServer and just saves the filename and steamid to the log. One buggy thing is, it will continously match up the wrong spray with the wrong person, but as far as I can tell, it never makes a mistake the first time a spray is seen. So all I had to do was take care to only honor the first time it logs a given spray, and so far it looks completely accurate.

If anyone is curious what I'm doing, here it is:
http://www.nom-nom-nom.us/sprays/

Anyone seen anything like that before? I've never heard of anyone doing that on their server, though maybe thats due to lack of interest. Hey I get bored at work and like to laugh at funny sprays.

Last edited by ratty; 05-17-2008 at 18:03.
ratty 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 07:36.


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