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

L4D - L4D Painter


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Sammy-ROCK!
Senior Member
Join Date: Jun 2008
Location: Near Mrs.Lag
Plugin ID:
662
Plugin Version:
1.3
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Sets a different color to the game players
    Old 12-07-2008 , 15:33   L4D - L4D Painter
    Reply With Quote #1

    Paints Players.

    Important Notes:
    Plugin executable's name changed. Delete old one (tankcolorer.smx).
    Enjoy and have Fun.

    Convars Configs File:
    cfg/sourcemod/l4dpainter (Edit this and not server.cfg to set default colors)

    ConVars:
    sm_l4d_painter_tank : RGB Value for tank. Usage: \"R G B\" or \"-1 -1 -1\" to do nothing.
    sm_l4d_painter_witch : RGB Value for witch. Usage: \"R G B\" or \"-1 -1 -1\" to do nothing.
    sm_l4d_painter_hunter : RGB Value for hunter. Usage: \"R G B\" or \"-1 -1 -1\" to do nothing.
    sm_l4d_painter_smoker : RGB Value for smoker. Usage: \"R G B\" or \"-1 -1 -1\" to do nothing.
    sm_l4d_painter_boomer : RGB Value for boomer. Usage: \"R G B\" or \"-1 -1 -1\" to do nothing.
    sm_l4d_painter_zoey : RGB Value for zoey. Usage: \"R G B\" or \"-1 -1 -1\" to do nothing.
    sm_l4d_painter_louis : RGB Value for louis. Usage: \"R G B\" or \"-1 -1 -1\" to do nothing.
    sm_l4d_painter_bill : RGB Value for bill. Usage: \"R G B\" or \"-1 -1 -1\" to do nothing.
    sm_l4d_painter_francis : RGB Value for francis. Usage: \"R G B\" or \"-1 -1 -1\" to do nothing.
    sm_l4d_painter_render_mode : Render mode of colored peoples.
    sm_l4d_painter_enabled : Enables painting zombies.

    Commands:
    sm_paint : Generic : sm_paint target "R G B" or sm_paint target R G B : Paints your target with the given RGB

    Please leave me suggestions or bug reports. Note that it paints players fully not just a part.

    V1.3:
    Fixed bugs: Not coloring. Paint command errors (common.phrases not loaded).
    Added ConVar: sm_l4d_painter_render_mode
    Changed file to set colors to "cfg/sourcemod/l4dpainter". (Outside addons folder)
    Added default colors for all players.
    V1.2:
    Added Witch's RenderMode change to Normal so she might grab the colors.
    Fixed Tank not coloring in versus.
    Fixed "Unknown Model: models/infected/hulk.mdl". (Valve named tank model as hulk. Sorry didn't notice it before)
    V1.1:
    Removed Alpha.
    Increased options.
    Changed plugin binary's name. (Delete old one)
    Changed plugin version convar.
    Added a bunch of convars.
    Added sm_paint command.
    V1.0:
    Initial Release.
    Attached Thumbnails
    Click image for larger version

Name:	green_tanker_1.jpg
Views:	8423
Size:	10.4 KB
ID:	34422   Click image for larger version

Name:	green_tanker_2.jpg
Views:	6907
Size:	23.1 KB
ID:	34423  
    Attached Files
    File Type: sp Get Plugin or Get Source (l4dpainter.sp - 6004 views - 7.2 KB)

    Last edited by Sammy-ROCK!; 12-12-2008 at 21:09. Reason: Updated
    Sammy-ROCK! is offline
    SAMURAI16
    BANNED
    Join Date: Sep 2006
    Old 12-07-2008 , 15:46   Re: L4D - Tank Colorer
    Reply With Quote #2

    instead of creating 4 cvars (sm_tank_colorer_red,sm_tank_colorer_green,sm _tank_colorer_blue,sm_tank_colorer_alpha) I suggest you to create one cvar, something like sm_tank_color and to be in this format "r g b alpha"
    And you'll use for example sm_tank_color "255 100 255 255"
    SAMURAI16 is offline
    Send a message via MSN to SAMURAI16
    subzero06
    Member
    Join Date: Nov 2008
    Old 12-07-2008 , 15:48   Re: L4D - Tank Colorer
    Reply With Quote #3

    oh nice can you post pics on how would the tank look?
    subzero06 is offline
    Sammy-ROCK!
    Senior Member
    Join Date: Jun 2008
    Location: Near Mrs.Lag
    Old 12-07-2008 , 15:56   Re: L4D - Tank Colorer
    Reply With Quote #4

    Quote:
    Originally Posted by SAMURAI16 View Post
    instead of creating 4 cvars (sm_tank_colorer_red,sm_tank_colorer_green,sm _tank_colorer_blue,sm_tank_colorer_alpha) I suggest you to create one cvar, something like sm_tank_color and to be in this format "r g b alpha"
    And you'll use for example sm_tank_color "255 100 255 255"
    I tough on it but if you look in the code line 42:
    SetEntityRenderColor(TankId, GetConVarInt(Red), GetConVarInt(Green), GetConVarInt(Blue), GetConVarInt(Alpha));
    it takes 5 args 1 is the entity and other 4 the int values. If I make it 1 single convar it's more confusing and would take more CPU to separate in 4 ints. So to make it easier and faster I made 4 convars.
    Sammy-ROCK! is offline
    SAMURAI16
    BANNED
    Join Date: Sep 2006
    Old 12-07-2008 , 16:01   Re: L4D - Tank Colorer
    Reply With Quote #5

    probably but i think it's not taking more CPU almost the same
    SAMURAI16 is offline
    Send a message via MSN to SAMURAI16
    Sammy-ROCK!
    Senior Member
    Join Date: Jun 2008
    Location: Near Mrs.Lag
    Old 12-07-2008 , 16:11   Re: L4D - Tank Colorer
    Reply With Quote #6

    Actualy I don't think cvars take to much memory otherwise there wouldn't be that many cvars.
    I'm posting pics of default painted tank.

    I'm finding a way to change with strings using KeyValues.

    Last edited by Sammy-ROCK!; 12-07-2008 at 16:22.
    Sammy-ROCK! is offline
    subzero06
    Member
    Join Date: Nov 2008
    Old 12-07-2008 , 16:32   Re: L4D - Tank Colorer
    Reply With Quote #7

    lol its looks like the hulk.
    wish u could change the pants purple color.
    subzero06 is offline
    Sammy-ROCK!
    Senior Member
    Join Date: Jun 2008
    Location: Near Mrs.Lag
    Old 12-07-2008 , 16:52   Re: L4D - Tank Colorer
    Reply With Quote #8

    I can only change the entire model color.
    SubZero I call him "The Incredible Zombie" xP
    Also Samurai if I use KeyValue using "0 255 0 128" like you said alpha gets no effect.
    Tried: DispatchKeyValue(Tank, "rendercolor", "0 255 0 128");
    The alpha value simply does nothing like that. If it worked Tank would be half transparent.
    Sammy-ROCK! is offline
    ChillyWI
    Senior Member
    Join Date: Aug 2008
    Old 12-07-2008 , 17:47   Re: L4D - Tank Colorer
    Reply With Quote #9

    sm_tank_colorer_allowed? Is this the enable/disable toggle? If so, you should consider changing it to sm_tank_colorer_enabled so it matches most other plugins.
    ChillyWI is offline
    subzero06
    Member
    Join Date: Nov 2008
    Old 12-07-2008 , 17:49   Re: L4D - Tank Colorer
    Reply With Quote #10

    Update:

    Works nicely on my server.
    subzero06 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 09:40.


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