Raised This Month: $168 Target: $400
 42% 

Enhanced Sprays | Dead Sprays


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: United States
Plugin ID:
3784
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    8 
    Plugin Description:
    Enhances player's ability to spray
    Old 07-26-2013 , 05:19   Enhanced Sprays | Dead Sprays
    Reply With Quote #1

    Enhanced Sprays | Dead Sprays

    Description:
    Change the distance player's can apply sprays to walls, change how fast you can spray, and apply player sprays to surfaces while dead. I'm mainly just experimenting with some smaller things and luckily I got this to work pretty quickly. Luckily, forcing player sprays onto surfaces wont emit sounds automatically, so I made the spray-can sound only emit if the player is alive. Yes, you can spray while spectating.
    Control Variables:
    • sm_spraywhiledead_enabled (default: 1) Enable/Disable the plugin
    • sm_enhancedsprays_distance (default: 115) Distance players can apply sprays to walls
    • decalfrequency (default: 10) How often players can apply sprays
    Overrides:
    • sm_enhancedsprays_deadflag (default: None) Who can spray while dead?
    Version Log:
    • Version 1.1
      • Added convar to change distance player's can apply sprays to walls
      • Added override to only allow certain people to spray while dead
    • Version 1.0
      • Initial release
    My Plugins
    intox Gaming
    Attached Files
    File Type: sp Get Plugin or Get Source (enhancedsprays.sp - 390 views - 4.4 KB)

    Last edited by ReFlexPoison; 07-30-2013 at 18:15. Reason: 1.1
    ReFlexPoison is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 07-27-2013 , 19:19   Re: Spray While Dead
    Reply With Quote #2

    Can admin find out who has sprayed something on the wall from spec using spray trace?
    __________________
    luki1412 is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: United States
    Old 07-27-2013 , 22:19   Re: Spray While Dead
    Reply With Quote #3

    Quote:
    Originally Posted by luki1412 View Post
    Can admin find out who has sprayed something on the wall from spec using spray trace?
    Haven't tested but don't see why not. I uses the TE_Start code from spray trace to force the spray onto the wall.
    PHP Code:
    TE_Start("Player Decal");
    TE_WriteVector("m_vecOrigin"fClientEyeViewPoint);
    TE_WriteNum("m_nPlayer"iClient);
    TE_SendToAll(); 
    __________________
    ReFlexPoison is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 07-28-2013 , 09:22   Re: Spray While Dead
    Reply With Quote #4

    I tested it with spray trace yesterday. Well it is working and you can see who sprayed it and spray trace-cmds work on them too.
    You have to be close to the wall in order to spray anything so it is harder to do in spec.
    Can you change the distance and also add admin flags so not everyone can spray from spec?

    Anyway, plugin is working and useful so thanks ;)
    __________________
    luki1412 is offline
    scorpadorp
    SourceMod Donor
    Join Date: May 2012
    Location: NC
    Old 07-28-2013 , 12:44   Re: Spray While Dead
    Reply With Quote #5

    Goes great with the ghost plugin, good stuff.
    scorpadorp is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: United States
    Old 07-28-2013 , 17:02   Re: Spray While Dead
    Reply With Quote #6

    Quote:
    Originally Posted by luki1412 View Post
    I tested it with spray trace yesterday. Well it is working and you can see who sprayed it and spray trace-cmds work on them too.
    You have to be close to the wall in order to spray anything so it is harder to do in spec.
    Can you change the distance and also add admin flags so not everyone can spray from spec?

    Anyway, plugin is working and useful so thanks ;)
    Will do later, rebuilding my computer in a new case with a new gpu so a wont be on until later. I tried making the distance to spray similar to the default distance.
    __________________
    ReFlexPoison is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: United States
    Old 07-29-2013 , 23:45   Re: Spray While Dead
    Reply With Quote #7

    Quote:
    Originally Posted by luki1412 View Post
    I tested it with spray trace yesterday. Well it is working and you can see who sprayed it and spray trace-cmds work on them too.
    You have to be close to the wall in order to spray anything so it is harder to do in spec.
    Can you change the distance and also add admin flags so not everyone can spray from spec?

    Anyway, plugin is working and useful so thanks ;)
    Updated
    Version 1.1
    • Added convar to change distance player's can apply sprays to walls
    • Added override to only allow certain people to spray while dead
    __________________

    Last edited by ReFlexPoison; 07-29-2013 at 23:45.
    ReFlexPoison is offline
    asherkin
    SourceMod Developer
    Join Date: Aug 2009
    Location: OnGameFrame()
    Old 11-13-2013 , 10:22   Re: Enhanced Sprays | Dead Sprays
    Reply With Quote #8

    You can optimize OnConVarChange by using else, the handle can never be multiple things at once.
    __________________
    asherkin is offline
    bazrael
    Senior Member
    Join Date: Jan 2010
    Location: Where Lucy became superw
    Old 11-13-2014 , 13:47   Re: Enhanced Sprays | Dead Sprays
    Reply With Quote #9

    Can plugin produce its convars?
    bazrael 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 16:16.


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