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

[CSGO] Nade Tails


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Internet Bully
Member
Join Date: Apr 2014
Plugin ID:
4210
Plugin Version:
2.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Adds tails to projectiles (grenades)
    Old 05-19-2014 , 18:18   [CSGO] Nade Tails
    Reply With Quote #1

    This is perfect for people looking to practice their smokes or other projectiles for competitive play, or just to have fun on a server.

    I spent a bit of time basically rewriting most of it and adding a ton of functionality and changed the name.

    ConVars:

    g_Enabled - Enables Nade Tails (0/1). (Default: 1)
    g_AllowPlayers - Allow players to use nade tails with !tails, otherwise admins only (0/1) (Default: 1)
    g_DefaultAlpha - Default alpha for trails, all predefined colors will use this alpha (0 is invisible, 255 is solid). (Default: 255)
    g_DefaultOn - Tails on for all users, Set to 0 to require user to type !tails to use (Default: 1)
    g_EnableHETails - Enables Nade Tails on HE Grenades (0/1). (Default: 1)
    g_EnableFlashTails - Enables Nade Tails on Flashbangs (0/1). (Default: 1)
    g_EnableSmokeTails - Enables Nade Tails on Smoke Grenades (0/1). (Default: 1)
    g_EnableDecoyTails - Enables Nade Tails on Decoy Grenades (0/1). (Default: 1)
    g_EnableMolotovTails - Enables Nade Tails on Molotovs (0/1). (Default: 1)
    g_EnableIncTails[ - Enables Nade Tails on Incendiary Grenades (0/1). (Default: 1)
    g_HEColor - Tail color on HE Grenades. (Default: random)
    g_FlashColor - Tail color on Flashbangs. (Default: random)
    g_SmokeColor - Tail color on Smoke Grenades. (Default: random)
    g_DecoyColor - Tail color on Decoy Grenades. (Default: random)
    g_MolotovColor - Tail color on Molotovs. (Default: random)
    g_IncColor - Tail color on Incendiary Grenades. (Default: random)
    g_TailTime - Time the tail stays visible. (Default: 20.0)
    g_TailFadeTime - Time for tail to fade over. (Default: 1)
    g_TailWidth - Width of the tail. (Default 1.0)

    It is recomended you edit these ConVars inside csgo/cfg/sourcemod/plugin.NadeTails.cfg (which is created on first run) otherwise you might have some issues with your settings saving.

    Commands:

    tails - Toggles grenade tails.
    tailsmenu - Admin menu to toggle Nade Tails on players (Flag required: ADMFLAG_KICK or override using https://wiki.alliedmods.net/Overridi...ess_(SourceMod)

    Colors:

    Colors for the trails can be set in two different ways, using predefined colors, or manually defined RGB(A) values. (Alpha is optional).
    The predefined colors are:

    Manually defined colors are passed as RGBA strings.
    Color Examples:
    sm_tails_hecolor "red"
    sm_tails_flashcolor "white"
    sm_tails_decoycolor "0 0 128 255" //RED GREEN BLUE ALPHA
    sm_tails_smokecolor "0 255 255" //this defaults the alpha to 225
    sm_tails_inccolor "random" //chooses random color

    Preview image in spoiler:
    Spoiler


    ChangeLog:
    Version 1.0:
    • Initial Release
    Version 2.0:
    • Added Convars for everything ever (colors, time, invididual enable, etc..)
    • Added a menu to toggle tails on clients

    Current Version: 2.0

    Notes:
    I'm sure there are several issues, I did this more than a few beers in, so please let me know what issues you come across. If you have ideas for improvements, post them and I'll consider them. I set some default values to potentially undesirable values for some people, read the Cvar descriptions and change them yourself!
    Attached Files
    File Type: sp Get Plugin or Get Source (NadeTails.sp - 27125 views - 13.3 KB)
    __________________
    Buy me a beer
    or donate to Sourcemod
    Taking some private plugin requests

    Last edited by Internet Bully; 05-23-2014 at 14:57.
    Internet Bully is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 05-20-2014 , 18:42   Re: [CSGO] Grenade Trails
    Reply With Quote #2

    You should probably note that this will add a small trail on every projectile.
    Also you probably spent more time showing an image of defines, when you could've just made a few convars to ease the need of recompilation.
    Mitchell is offline
    nguyenbaodanh
    AlliedModders Donor
    Join Date: Jun 2007
    Location: HCMC, Vietnam
    Old 05-21-2014 , 04:42   Re: [CSGO] Grenade Trails
    Reply With Quote #3

    can we change how long trails stay remain ?
    __________________
    nguyenbaodanh is offline
    2NASTY4U
    Senior Member
    Join Date: Mar 2014
    Old 05-21-2014 , 12:27   Re: [CSGO] Grenade Trails
    Reply With Quote #4

    Quote:
    Originally Posted by nguyenbaodanh View Post
    can we change how long trails stay remain ?
    Yes.

    Code:
    #define TrailTime 20.0
    #define FadeTime 0
    Read first post.
    2NASTY4U is offline
    ltgenkd
    AlliedModders Donor
    Join Date: Sep 2008
    Old 05-21-2014 , 16:44   Re: [CSGO] Grenade Trails
    Reply With Quote #5

    Can this be made to work with Insurgency Standalone (Insurgency2)?

    I tried running this on my Ins server as-is just to see what errors were produced.

    Code:
    L 05/21/2014 - 16:38:12: [SM] Displaying call stack trace for plugin "grenadetrail.smx":
    L 05/21/2014 - 16:38:12: [SM]   [0]  Line 49, /home/groups/alliedmodders/forums/files/2/4/8/3/8/6/133670.attach::OnEntitySpawned()
    L 05/21/2014 - 16:38:12: [SM] Native "GetEdictClassname" reported: Invalid edict (2157 - -1437726611)
    Thanks
    ltgenkd is offline
    boombee
    SourceMod Donor
    Join Date: Nov 2013
    Old 05-22-2014 , 09:35   Re: [CSGO] Grenade Trails
    Reply With Quote #6

    Quote:
    Originally Posted by Mitchell View Post
    You should probably note that this will add a small trail on every projectile.
    Also you probably spent more time showing an image of defines, when you could've just made a few convars to ease the need of recompilation.
    This. Having to compile every time kinda sucks
    boombee is offline
    Internet Bully
    Member
    Join Date: Apr 2014
    Old 05-22-2014 , 15:53   Re: [CSGO] Grenade Trails
    Reply With Quote #7

    Quote:
    Originally Posted by boombee View Post
    This. Having to compile every time kinda sucks
    MASSIVE update, see first post.
    __________________
    Buy me a beer
    or donate to Sourcemod
    Taking some private plugin requests

    Last edited by Internet Bully; 05-23-2014 at 01:01.
    Internet Bully is offline
    m22b
    Senior Member
    Join Date: Jul 2013
    Old 08-11-2014 , 21:02   Re: [CSGO] Nade Tails
    Reply With Quote #8

    L 08/12/2014 - 04:541: SourceMod error session started
    L 08/12/2014 - 04:541: Info (map "de_dust2") (file "errors_20140812.log")
    L 08/12/2014 - 04:541: [SM] Native "GetEdictClassname" reported: Invalid edict (3129 - -463795143)
    L 08/12/2014 - 04:541: [SM] Displaying call stack trace for plugin "NadeTails.smx":
    L 08/12/2014 - 04:541: [SM] [0] Line 334, /home/forums/content/files/2/4/8/3/8/6/133755.attach::OnEntitySpawned()
    L 08/12/2014 - 04:541: [SM] Native "GetEdictClassname" reported: Invalid edict (3130 - -1002304454)
    L 08/12/2014 - 04:541: [SM] Displaying call stack trace for plugin "NadeTails.smx":
    L 08/12/2014 - 04:541: [SM] [0] Line 334, /home/forums/content/files/2/4/8/3/8/6/133755.attach::OnEntitySpawned()
    L 08/12/2014 - 04:541: [SM] Native "GetEdictClassname" reported: Invalid edict (3131 - -1621685189)
    L 08/12/2014 - 04:541: [SM] Displaying call stack trace for plugin "NadeTails.smx":
    L 08/12/2014 - 04:541: [SM] [0] Line 334, /home/forums/content/files/2/4/8/3/8/6/133755.attach::OnEntitySpawned()
    L 08/12/2014 - 04:541: [SM] Native "GetEdictClassname" reported: Invalid edict (3132 - -372831172)
    L 08/12/2014 - 04:541: [SM] Displaying call stack trace for plugin "NadeTails.smx":
    L 08/12/2014 - 04:541: [SM] [0] Line 334, /home/forums/content/files/2/4/8/3/8/6/133755.attach::OnEntitySpawned()
    m22b is offline
    natrios
    Senior Member
    Join Date: Feb 2014
    Old 08-12-2014 , 06:45   Re: [CSGO] Nade Tails
    Reply With Quote #9

    I have a question. How to make a trail for players with flag a (Slot reservation).
    Quote:
    public OnPluginStart()
    {
    RegConsoleCmd("sm_tails", Cmd_Tails, "Toggles grenade tails.");
    RegAdminCmd("sm_tailsmenu", Cmd_tail_menu, ADMFLAG_KICK, "Admin menu to toggle Nade Tails on players");
    Change ?

    Last edited by natrios; 08-12-2014 at 06:53.
    natrios is offline
    m22b
    Senior Member
    Join Date: Jul 2013
    Old 08-13-2014 , 07:48   Re: [CSGO] Nade Tails
    Reply With Quote #10

    maybe you fix errors ?
    Or delete this thread .....
    m22b 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 19:45.


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