Raised This Month: $154 Target: $400
 38% 

Spray Pruning


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sslice
Senior Member
Join Date: Feb 2005
Location: Texas, USA
Plugin ID:
225
Plugin Version:
1.0.0.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    44 
    Plugin Description:
    Keeps old excess spray cache files from building up in the downloads/ folder.
    Old 12-06-2007 , 17:07   Spray Pruning
    Reply With Quote #1

    This simple plugin does one thing only: removes the old spray cache files that build up over time in the downloads/ folder. It does this every time a level is loaded so you don't have to worry about the folder getting too large.

    By default, it deletes only the files that have not been accessed in over 7 days.
    You can control this using the the sm_spraycachelifetime console variable (defualt value is 7).

    Mirror: SteamFriends
    Attached Files
    File Type: sp Get Plugin or Get Source (spraypruning.sp - 2627 views - 1.6 KB)
    __________________

    Last edited by sslice; 12-07-2007 at 16:27.
    sslice is offline
    Bloodlvst
    Senior Member
    Join Date: Jul 2007
    Location: Moncton, New Brunswick,
    Old 12-06-2007 , 17:19   Re: Spray Pruning
    Reply With Quote #2

    While I know these files take up space, do they do anything performancewise?
    __________________
    Quote:
    skywalker: I have cs source client 5 how to upgrade to client 7
    BAILOPAN: oh
    Bloodlvst is offline
    Send a message via ICQ to Bloodlvst Send a message via AIM to Bloodlvst Send a message via MSN to Bloodlvst
    sslice
    Senior Member
    Join Date: Feb 2005
    Location: Texas, USA
    Old 12-06-2007 , 17:28   Re: Spray Pruning
    Reply With Quote #3

    They are caches of the sprays uploaded by each client, so yes they are there so that the client does not have to upload their spray every time a new level loads. This plugin only deletes the more or less unused caches of the sprays, so it should have very little affect on bandwidth usage.
    __________________
    sslice is offline
    ottobohn
    Senior Member
    Join Date: Sep 2007
    Old 12-07-2007 , 16:55   Re: Spray Pruning
    Reply With Quote #4

    Does putting the default days to 0 prevents sprays from gathering at the end of the map?

    Is there a way to block sprays in general?

    otto
    ottobohn is offline
    sslice
    Senior Member
    Join Date: Feb 2005
    Location: Texas, USA
    Old 12-07-2007 , 19:05   Re: Spray Pruning
    Reply With Quote #5

    You can use the CVAR sv_allowupload and set it to 0 to disable sprays. You do not want to use this plugin for the purpose of disabling sprays.
    __________________

    Last edited by sslice; 12-10-2007 at 00:40.
    sslice is offline
    komat
    Member
    Join Date: Apr 2004
    Old 12-15-2007 , 03:01   Re: Spray Pruning
    Reply With Quote #6

    sv_allowupload 0 will disable custom maps or any custom files from the server
    komat is offline
    sslice
    Senior Member
    Join Date: Feb 2005
    Location: Texas, USA
    Old 12-21-2007 , 20:38   Re: Spray Pruning
    Reply With Quote #7

    sv_allowupload only prevents clients from uploading sprays (or maybe I am thinking of sv_allowdownload?).
    __________________

    Last edited by sslice; 12-23-2007 at 13:48.
    sslice is offline
    ottobohn
    Senior Member
    Join Date: Sep 2007
    Old 05-07-2008 , 23:57   Re: Spray Pruning
    Reply With Quote #8

    This isn't working on new sourcemod 1.x. Any plans for it and tested?

    otto
    ottobohn is offline
    DJ Tsunami
    DJ Post Spammer
    Join Date: Feb 2008
    Old 05-08-2008 , 03:03   Re: Spray Pruning
    Reply With Quote #9

    It's working fine for me on 1.1.0.2119 on both DoD:S and TF2.
    __________________
    DJ Tsunami is offline
    ulx
    SourceMod Donor
    Join Date: Sep 2006
    Old 09-15-2009 , 02:42   Re: Spray Pruning
    Reply With Quote #10

    Quote:
    Originally Posted by sslice View Post
    sv_allowupload only prevents clients from uploading sprays
    so why should anyone set this to 1? are there any benefits when uploading sprays from client to server?
    __________________
    ulx is offline
    Reply


    Thread Tools
    Display Modes

    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 10:21.


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