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

[ANY] Resizable Sprays (v3.4.0, 2022/10/16)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Sappykun
Member
Join Date: Nov 2019
Plugin ID:
7638
Plugin Version:
3.4.0
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    7 
    Plugin Description:
    Place your spray as many times as you want and as large as you want.
    Old 05-11-2021 , 14:20   [ANY] Resizable Sprays (v3.4.0, 2022/10/16)
    Reply With Quote #1

    Resizable (and spammable) Sprays



    (art by i-junnosuke)

    This plugin allows you to place your spray as many times as you want and as large as you want.
    This is accomplished by writing a VMT file using the player's spray as a base texture, sending
    the VMT file to all connected clients, precaching the material, then placing the decal in the world.

    FEATURES
    • Place multiple sprays similar to Goldsrc
    • Place sprays on brush entities similar to Goldsrc
    • Dynamic resizing of player sprays

    DEPENDENCIES
    • LINUX ONLY (for the time being)
    • My LateDL fork (builds available here)
      • Builds available for TF2, L4D1/2, CS:S, HL2DM, and Source 2013
    • sv_allowdownload and sv_allowupload must be enabled on your server. This is not the same as having a fastdl server!

    COMMANDS

    PHP Code:
    // Places a "world" decal. This is the default (and safer) option. These decals are controlled
    // by the client's r_decals cvar.  Placing too many of these will remove the oldest one.
    sm_spray [desired scale]

    // Places a "BSP" decal. These are "permanent" decals and won't decay.
    // May cause issues if they are spammed on a single surface.  If the
    // player using this command does not have rspr_adminoverride access,
    // using this command will be equivalent to sm_spray.
    sm_bspray [desired scale]

    // Debug command, will display who is downloading your spray and which sprays 
    // you are downloading.
    // Meant to be user-facing. Only admins can see status of other users, normal 
    // players will only be able to run the command on themselves.
    sm_sprayinfo [user
    CVARS

    PHP Code:
    // Spray frequency for non-admins. 0 is no delay.
    // -
    // Default: "0.5"
    // Minimum: "0.000000"
    rspr_decalfrequency "0.5"

    // Enables the plugin.
    // -
    // Default: "1.0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    rspr_enabled "1.0"

    // Max range for placing decals. 0 is infinite range
    // -
    // Default: "128.0"
    // Minimum: "0.000000"
    rspr_maxspraydistance "128.0"

    // Maximum scale for sprays for regular players.
    // -
    // Default: "2.0"
    // Minimum: "0.000000"
    rspr_maxsprayscale "2.0"

    // Maximum scale for all sprays.
    // -
    // Default: "32.0"
    // Minimum: "0.000000"
    rspr_maxsprayscale_absolute "32.0"

    // Max time to wait for clients to download spray files. 0 to wait forever.
    // -
    // Default: "10.0"
    // Minimum: "0.000000"
    rspr_spraytimeout "10.0"

    // Logging level. Higher number = more console spam.
    // -
    // Default: "2.0"
    rspr_loglevel "2" 
    TODO
    • General code optimization and cleanup

    CHANGELOG
    Spoiler


    Gitlab repo (work is currently in the dev branch)

    Special thanks to Bakugo for putting up with all the stupid questions I asked helping me with this project.

    This plugin won't compile on the forum due to the aforementioned dependency.
    Attached Files
    File Type: sp Get Plugin or Get Source (resizablesprays.sp - 149 views - 27.0 KB)
    File Type: smx resizablesprays.smx (16.2 KB, 140 views)

    Last edited by Sappykun; 10-16-2022 at 15:24.
    Sappykun is offline
    Sappykun
    Member
    Join Date: Nov 2019
    Old 05-11-2021 , 14:29   Re: [ANY] Resizable Sprays
    Reply With Quote #2

    Reserved. V2 is still available on the git repo if you really want it.

    Last edited by Sappykun; 11-04-2021 at 01:40.
    Sappykun is offline
    Cruze
    Veteran Member
    Join Date: May 2017
    Old 05-11-2021 , 14:36   Re: [ANY] Resizable Sprays
    Reply With Quote #3

    Seems promising! Good job man!
    __________________
    Taking paid private requests! Contact me
    Cruze is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-11-2021 , 16:50   Re: [ANY] Resizable Sprays
    Reply With Quote #4

    This is amazing! Good job!
    __________________
    Silvers is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 05-11-2021 , 21:29   Re: [ANY] Resizable Sprays
    Reply With Quote #5

    Sappykun, the FileNetMessages link you have leads to a trashed thread.

    Last edited by Sreaper; 05-11-2021 at 21:34.
    Sreaper is offline
    Sappykun
    Member
    Join Date: Nov 2019
    Old 05-11-2021 , 21:42   Re: [ANY] Resizable Sprays
    Reply With Quote #6

    Quote:
    Originally Posted by Sreaper View Post
    Sappykun, the FileNetMessages link you have leads to a trashed thread.
    Fixed, the link lost a 9 somewhere.
    Sappykun is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 05-12-2021 , 01:52   Re: [ANY] Resizable Sprays
    Reply With Quote #7

    The plugin doesn't seem to work for me on TF2. No loading issues or errors generated. All it does is generate a missing decal dot regardless of the admin spraying or the flags defined in the convar. I also attempted to rejoin the server afterwards, as well as a server map change. There are also no duplicate command entries for sm_spray or sm_bspray. I am running super spray handler but that doesn't use those command names. Edit: Attempted to remove ssh just now, didn't fix. sv_download is also set to 1.



    I have filenetmessages.ext.2.tf2.so loaded.

    Sourcemod version: 1.10.0.6502
    Metamod:Source version: 1.12.0-dev+1147

    Last edited by Sreaper; 05-12-2021 at 02:20.
    Sreaper is offline
    Sappykun
    Member
    Join Date: Nov 2019
    Old 05-12-2021 , 02:20   Re: [ANY] Resizable Sprays
    Reply With Quote #8

    Quote:
    Originally Posted by Sreaper View Post
    The plugin doesn't seem to work for me on TF2. No loading issues or errors generated. All it does is generate a missing decal dot regardless of the admin spraying or the flags defined in the convar. I also attempted to rejoin the server afterwards, as well as a server map change. There are also no duplicate command entries for sm_spray or sm_bspray. I am running super spray handler but that doesn't use those command names. Edit: Attempted to remove ssh just now, didn't fix. sv_download is also set to 1.



    I have filenetmessages.ext.2.tf2.so loaded.

    Sourcemod version: 1.10.0.6502
    Metamod:Source version: 1.12.0-dev+1147
    You need to create a folder called customsprays in your server's install directory. I forgot to mention it in the OP, my bad.
    I'll add it to the list of things to fix for 1.1.0.

    Last edited by Sappykun; 05-12-2021 at 02:24.
    Sappykun is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 05-12-2021 , 03:34   Re: [ANY] Resizable Sprays
    Reply With Quote #9

    Quote:
    Originally Posted by Sappykun View Post
    You need to create a folder called customsprays in your server's install directory. I forgot to mention it in the OP, my bad.
    I'll add it to the list of things to fix for 1.1.0.
    Worked after adding tf/materials/customspray. Thank you.

    Will there be support for spraying other people's sprays?

    Last edited by Sreaper; 05-12-2021 at 04:39.
    Sreaper is offline
    Sappykun
    Member
    Join Date: Nov 2019
    Old 05-12-2021 , 20:28   Re: [ANY] Resizable Sprays
    Reply With Quote #10

    Changelog for version 1.1.0:

    - Replace world decals with regular (entity) decals. Regular decals can be sprayed on brush entities while also being controlled by r_decals.
    - Allow admins to spray other client's sprays by entering a single target name as an optional second argument to sm_spray or sm_bspray.
    - Auto-create required directory for plugin to function
    Sappykun 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 03:00.


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