HL2DM - Grenade Trails
1 Attachment(s)
This is my first plugin. I will start by confessing i'm a total n00b at coding, so... this is just a modification of scorp's crossbow trail plugin (inspired on Trailball by raziEil) that he was kind enough to develop for me some months ago.
This plugin attaches trails to grenades giving it a cool visual effect. What I did was to just change the entity to attach trails to, which is the npc_grenade_frag. I also added a ConVar named sm_grenadetrail_material to allow you to change the material of the trail instantly. The only advice is to pay attention to spelling or if your texture exists in your materials folder because invalid textures can cause clients to crash when they throw a grenade. http://oppressiveterritory.ddns.net/...nadetrails.jpg It can even supports custom materials as long as you have a plugin to force clients to download and precache, i would recommend SWAT_88's great plugin for this. More info HERE http://oppressiveterritory.ddns.net/trollnade.jpeg To install:, copy sm_grenadetrails.smx to sourcemod/plugins folder After installing the plugin and loading it for the first time, it will generate a config file in cfg/sourcemod named sm_grenadetrail.cfg Note: I am also looking for a way to remove the original npc_grenade_frag red trail. Suggestions are welcome! =) Support me? *-* paypal: [email protected] sm_grenadetrail.cfg: Code:
// The default Combine team trail color (Team deathmatch). Three values between 0-255 separated by spaces. RGB - Red Green Blue. |
Re: HL2DM - Grenade Trails
I get this using your plugin
/01/2020 - 09:55:53: [SM] Exception reported: Client index -1 is invalid L 12/01/2020 - 09:55:53: [SM] Blaming: sm_grenadetrail.smx L 12/01/2020 - 09:55:53: [SM] Call stack trace: L 12/01/2020 - 09:55:53: [SM] [0] IsClientInGame L 12/01/2020 - 09:55:53: [SM] [1] Line 123, /home/groups/sourcemod/upload_tmp/php66tB7V.sp::CreateSpriteTrail L 12/01/2020 - 09:55:53: [SM] [2] Line 117, /home/groups/sourcemod/upload_tmp/php66tB7V.sp::On_npc_grenade_frag_EntityCreat edNextFrame please help. |
Re: HL2DM - Grenade Trails
Quote:
Actually i get this error too when using the scorp's crossbow trail plugin that he made for me. Since this plugin is a "mod" from his and i am a total noob at coding, I don't really know how to solve this issue yet and I will post an update as soon as i get this fixe. For now, any help will be much appreciated. =) |
Re: HL2DM - Grenade Trails
1 Attachment(s)
Here, that should solve that error.
|
All times are GMT -4. The time now is 00:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.