AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSGO] Nade Tails (https://forums.alliedmods.net/showthread.php?t=240668)

Internet Bully 05-19-2014 18:18

[CSGO] Nade Tails
 
1 Attachment(s)
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:
http://i.imgur.com/yw2zVzW.png
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:


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!

Mitchell 05-20-2014 18:42

Re: [CSGO] Grenade Trails
 
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.

nguyenbaodanh 05-21-2014 04:42

Re: [CSGO] Grenade Trails
 
can we change how long trails stay remain ?

2NASTY4U 05-21-2014 12:27

Re: [CSGO] Grenade Trails
 
Quote:

Originally Posted by nguyenbaodanh (Post 2140616)
can we change how long trails stay remain ?

Yes.

Code:

#define TrailTime 20.0
#define FadeTime 0

Read first post.

ltgenkd 05-21-2014 16:44

Re: [CSGO] Grenade Trails
 
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

boombee 05-22-2014 09:35

Re: [CSGO] Grenade Trails
 
Quote:

Originally Posted by Mitchell (Post 2140493)
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 :x

Internet Bully 05-22-2014 15:53

Re: [CSGO] Grenade Trails
 
Quote:

Originally Posted by boombee (Post 2141093)
This. Having to compile every time kinda sucks :x

MASSIVE update, see first post.

m22b 08-11-2014 21:02

Re: [CSGO] Nade Tails
 
L 08/12/2014 - 04:54:31: SourceMod error session started
L 08/12/2014 - 04:54:31: Info (map "de_dust2") (file "errors_20140812.log")
L 08/12/2014 - 04:54:31: [SM] Native "GetEdictClassname" reported: Invalid edict (3129 - -463795143)
L 08/12/2014 - 04:54:31: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 08/12/2014 - 04:54:31: [SM] [0] Line 334, /home/forums/content/files/2/4/8/3/8/6/133755.attach::OnEntitySpawned()
L 08/12/2014 - 04:54:31: [SM] Native "GetEdictClassname" reported: Invalid edict (3130 - -1002304454)
L 08/12/2014 - 04:54:31: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 08/12/2014 - 04:54:31: [SM] [0] Line 334, /home/forums/content/files/2/4/8/3/8/6/133755.attach::OnEntitySpawned()
L 08/12/2014 - 04:54:31: [SM] Native "GetEdictClassname" reported: Invalid edict (3131 - -1621685189)
L 08/12/2014 - 04:54:31: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 08/12/2014 - 04:54:31: [SM] [0] Line 334, /home/forums/content/files/2/4/8/3/8/6/133755.attach::OnEntitySpawned()
L 08/12/2014 - 04:54:31: [SM] Native "GetEdictClassname" reported: Invalid edict (3132 - -372831172)
L 08/12/2014 - 04:54:31: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 08/12/2014 - 04:54:31: [SM] [0] Line 334, /home/forums/content/files/2/4/8/3/8/6/133755.attach::OnEntitySpawned()

natrios 08-12-2014 06:45

Re: [CSGO] Nade Tails
 
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 ?

m22b 08-13-2014 07:48

Re: [CSGO] Nade Tails
 
maybe you fix errors ?
Or delete this thread .....:)

nesterov86 08-16-2014 14:10

Re: [CSGO] Nade Tails
 
L 08/16/2014 - 21:54:15: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 08/16/2014 - 21:54:15: [SM] [0] Line 334, /home/forums/content/files/2/4/8/3/8/6/133755.attach::OnEntitySpawned()
L 08/16/2014 - 21:54:15: [SM] Native "GetEdictClassname" reported: Invalid edict (2056 - -947255288)
L 08/16/2014 - 21:54:15: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 08/16/2014 - 21:54:15: [SM] [0] Line 334, /home/forums/content/files/2/4/8/3/8/6/133755.attach::OnEntitySpawned()

errors) xD

m22b 08-17-2014 02:49

Re: [CSGO] Nade Tails
 
author fix errors please :)

nesterov86 08-23-2014 07:28

Re: [CSGO] Nade Tails
 
somebody can fix this plugin? autor Last Activity: 01-06-14 04:28

Ejziponken 10-05-2014 17:00

Re: [CSGO] Nade Tails
 
L 10/05/2014 - 22:58:47: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 10/05/2014 - 22:58:47: [SM] [0] Line 334, /home/forums/content/files/2/4/8/3/8/6/133755.attach::OnEntitySpawned()

h3bus 10-06-2014 04:55

Re: [CSGO] Nade Tails
 
1 Attachment(s)
Not tested but this should fix the errors:

asdfxD 12-26-2014 16:11

Re: [CSGO] Nade Tails
 
can someone make this plugin only for admin with flag t? only admins can use nade tails?

Freakmeister 02-14-2015 09:00

Re: [CSGO] Nade Tails
 
Non of cvars works. I can't disable this mod via console.

http://dl1.joxi.net/drive/0001/2051/...cdf3d38e2c.jpg

splewis 03-24-2015 16:53

Re: [CSGO] Nade Tails
 
Quote:

Originally Posted by Freakmeister (Post 2262176)
Non of cvars works. I can't disable this mod via console.

http://dl1.joxi.net/drive/0001/2051/...cdf3d38e2c.jpg

The commands are sm_tails, sm_tailsmenu, not tails, tailsmenu.

And the cvar is a server cvar. Either set it in a config file on the server or set it through rcon.

TomXPro 04-20-2015 07:17

Re: [CSGO] Nade Tails
 
Doesnt work anymore after the latest CSGO Update.

Jamiew_CS 04-24-2015 05:53

Re: [CSGO] Nade Tails
 
Quote:

Originally Posted by TomXPro (Post 2288253)
Doesnt work anymore after the latest CSGO Update.

Actually it works fine still. For proof, you can see it in this video, which was recorded on 23rd April '15: https://www.youtube.com/watch?v=rH1Co4cvSJo

sean3 06-06-2015 12:08

Re: [CSGO] Nade Tails
 
The problem I run into, is the menu never opens. And I cannot disable it. it'll say its disabled in console, but the tails are still there when you throw nades still.

I have WarMode plugin, and this plugin. I have a practice config I run for practicing nades. Is there a way to only have the tails enabled when the prac.cfg is executed? Then The when the default server.cfg is ran, it's disabled?

Sorry I'm a newb at this.

asdfxD 06-06-2015 16:56

Re: [CSGO] Nade Tails
 
Quote:

Originally Posted by sean3 (Post 2305366)
The problem I run into, is the menu never opens. And I cannot disable it. it'll say its disabled in console, but the tails are still there when you throw nades still.

I have WarMode plugin, and this plugin. I have a practice config I run for practicing nades. Is there a way to only have the tails enabled when the prac.cfg is executed? Then The when the default server.cfg is ran, it's disabled?

Sorry I'm a newb at this.

this plugin is totally outdated, trails still working fine yeah ...but most commands aren't working anymore. thats why i ask if someone can make this plugin for admins only or recode this and fix all bugs/commands.

sean3 06-10-2015 14:09

Re: [CSGO] Nade Tails
 
Quote:

Originally Posted by asdfxD (Post 2305437)
this plugin is totally outdated, trails still working fine yeah ...but most commands aren't working anymore. thats why i ask if someone can make this plugin for admins only or recode this and fix all bugs/commands.

Oh damn, so no updated plugin like this currently?

SOBgaming 07-18-2015 09:14

Re: [CSGO] Nade Tails
 
How hard is it to fix Cvars? I'd really use this if I could set the trail colors :(

hadesownage 07-19-2015 20:22

Re: [CSGO] Nade Tails
 
1 Attachment(s)
Quote:

Originally Posted by SOBgaming (Post 2321184)
How hard is it to fix Cvars? I'd really use this if I could set the trail colors :(

Delete AutoExecConfig(true); from OnPluginStart

Fixed version (fixed cvars and no log error)

SOBgaming 07-19-2015 21:56

Re: [CSGO] Nade Tails
 
Quote:

Originally Posted by hadesownage (Post 2321825)
Delete AutoExecConfig(true); from OnPluginStart

Fixed version (fixed cvars and no log error)

Oh wow thats all you had to do ?
Thanks a lot man !!

hadesownage 07-20-2015 06:11

Re: [CSGO] Nade Tails
 
Quote:

Originally Posted by SOBgaming (Post 2321859)
Oh wow thats all you had to do ?
Thanks a lot man !!

No, i added in public OnEntitySpawned(entity)

PHP Code:

if(!IsValidEdict(entity))
        return; 

© h3bus

Hunter6272 07-20-2015 19:28

Re: [CSGO] Nade Tails
 
Quote:

Originally Posted by hadesownage (Post 2322033)
No, i added in public OnEntitySpawned(entity)

PHP Code:

if(!IsValidEdict(entity))
        return; 

© h3bus

So now this plugin won't spam the server console anymore :shock: ?

hadesownage 07-20-2015 21:10

Re: [CSGO] Nade Tails
 
Quote:

Originally Posted by Hunter6272 (Post 2322439)
So now this plugin won't spam the server console anymore :shock: ?

Yes, use my fixed version and all be fine!

ZASTRELIS 07-22-2015 00:14

Re: [CSGO] Nade Tails
 
q ppl, today I got few errors:
Code:

L 07/22/2015 - 12:07:39: [SM] Native "GetEdictClassname" reported: Invalid edict (2049 - -1905457151)
L 07/22/2015 - 12:07:39: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 07/22/2015 - 12:07:39: [SM]  [0]  Line 334, NadeTails.sp::OnEntitySpawned()
L 07/22/2015 - 12:07:39: [SM] Native "GetEdictClassname" reported: Invalid edict (2050 - -388888574)
L 07/22/2015 - 12:07:39: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 07/22/2015 - 12:07:39: [SM]  [0]  Line 334, NadeTails.sp::OnEntitySpawned()
L 07/22/2015 - 12:07:39: [SM] Native "GetEdictClassname" reported: Invalid edict (2051 - -1773008893)
L 07/22/2015 - 12:07:39: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 07/22/2015 - 12:07:39: [SM]  [0]  Line 334, NadeTails.sp::OnEntitySpawned()
L 07/22/2015 - 12:07:39: [SM] Native "GetEdictClassname" reported: Invalid edict (2052 - -1234696188)
L 07/22/2015 - 12:07:39: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 07/22/2015 - 12:07:39: [SM]  [0]  Line 334, NadeTails.sp::OnEntitySpawned()

Code:
decl String:class_name[32];     GetEdictClassname(entity, class_name, 32);     new owner = GetEntPropEnt(entity, Prop_Data, "m_hOwnerEntity");

hadesownage 07-22-2015 00:54

Re: [CSGO] Nade Tails
 
Quote:

Originally Posted by ZASTRELIS (Post 2322903)
q ppl, today I got few errors:
Code:

L 07/22/2015 - 12:07:39: [SM] Native "GetEdictClassname" reported: Invalid edict (2049 - -1905457151)
L 07/22/2015 - 12:07:39: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 07/22/2015 - 12:07:39: [SM]  [0]  Line 334, NadeTails.sp::OnEntitySpawned()
L 07/22/2015 - 12:07:39: [SM] Native "GetEdictClassname" reported: Invalid edict (2050 - -388888574)
L 07/22/2015 - 12:07:39: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 07/22/2015 - 12:07:39: [SM]  [0]  Line 334, NadeTails.sp::OnEntitySpawned()
L 07/22/2015 - 12:07:39: [SM] Native "GetEdictClassname" reported: Invalid edict (2051 - -1773008893)
L 07/22/2015 - 12:07:39: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 07/22/2015 - 12:07:39: [SM]  [0]  Line 334, NadeTails.sp::OnEntitySpawned()
L 07/22/2015 - 12:07:39: [SM] Native "GetEdictClassname" reported: Invalid edict (2052 - -1234696188)
L 07/22/2015 - 12:07:39: [SM] Displaying call stack trace for plugin "NadeTails.smx":
L 07/22/2015 - 12:07:39: [SM]  [0]  Line 334, NadeTails.sp::OnEntitySpawned()

Code:
decl String:class_name[32];     GetEdictClassname(entity, class_name, 32);     new owner = GetEntPropEnt(entity, Prop_Data, "m_hOwnerEntity");

Use that version:
https://forums.alliedmods.net/showth...25#post2321825

ZASTRELIS 07-22-2015 21:00

Re: [CSGO] Nade Tails
 
Quote:

Originally Posted by hadesownage (Post 2322913)

Thanks. Already used.

ZASTRELIS 07-23-2015 08:52

Re: [CSGO] Nade Tails
 
In GetSetColor find

Code:
PrintToChatAll("%s", sTemp[3]);
and comment it

Code:
// PrintToChatAll("%s", sTemp[3]);

P.S. Maybe it's debug func

SOBgaming 07-23-2015 16:17

Re: [CSGO] Nade Tails
 
I'm not getting the right trails color (it keeps the same one since you fixed the script but it gives another color than the one I typed in), do I have to type the color in text or are there numbers?

asdfxD 07-25-2015 08:58

Re: [CSGO] Nade Tails
 
Quote:

Originally Posted by hadesownage (Post 2321825)
Delete AutoExecConfig(true); from OnPluginStart

Fixed version (fixed cvars and no log error)

thanks but is it possible to code/recode this plugin that every player with flag z or other flag have nade tails enabled automatically without using !tails or tailsmenu?

hadesownage 07-25-2015 09:15

Re: [CSGO] Nade Tails
 
1 Attachment(s)
I use that plugin, is without menu.

asdfxD 07-25-2015 10:27

Re: [CSGO] Nade Tails
 
Quote:

Originally Posted by hadesownage (Post 2324222)
I use that plugin, is without menu.

this is what i need, but this one is without admin only function... how to add an admincheck?

zarzy 09-14-2015 17:11

Re: [CSGO] Nade Tails
 
Hi, I want disable your plugins but I can't :( I deleted smx file and cfg file and it still works...

nlgenesis 10-22-2015 11:25

Re: [CSGO] Nade Tails
 
Dear all,

This mod is awesome! I use it now to practice grenades with my teammates. However there is one aspect that I don't understand:

In the config, I am able to set not only the colour, but also the alpha. However, even when the alpha is set to 255, I can look through the trails. This can make them difficult to see at times, especially when the map is very light.

Here a screenshot: https://dl.dropboxusercontent.com/u/...nade-trail.jpg

Is this a bug? Is there anyway to fix this and make them better visible?

Thanks in advance, and nice work on the mod.
- nlgenesis

P.S. Another less important point, the tails seem to be build up from straight line segments. Is it possible to decrease the length of these segments, such that the tails are more smooth?

Notifications 10-24-2015 22:47

Re: [CSGO] Nade Tails
 
How do you manually change the alpha etc? I can't load the sm menu..


All times are GMT -4. The time now is 15:08.

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