Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

DoD Grenade trail

by Dr.G · 2009-03-21 · 7 replies · 9997 views · 26 downloads

Read the thread (8 posts)

From the first post

This plugin is VERY simple and might be a tutorial for some people...
n
n
/* Plugin generated by AMXX-Studio n----------------------------------------------------------------------------------------------------nnINFO:nnMake alittle smoke trail after grenades when they are thrown. The trail is either one color for allnnades or you can set it to be a team color, see CVARS. nnAll trail colors are in RGB format!nnCREDIT:nnDoD:S ??nnCHANGELOG:nnn----------------------------------------------------------------------------------------------------nnCVARS and default settings:nn- plugin on/off | 1 = on 0 = offn"dod_grenade_trial" "1"nn- use team color or not | 1 = on 0 = offn"dod_grenade_trial_team_color" "0"nn- default trail colors n"dod_nt_default_1" "105" // rn"dod_nt_default_2" "105" // g n"dod_nt_default_3" "105" // bnn- trail size n"dod_nt_default_size" "15"nnn- allies trail colors n"dod_nt_allies_1" "0" // rn"dod_nt_allies_2" "139" // g n"dod_nt_allies_3" "0" // bnn- trail size n"dod_nt_allies_size" "10"nnn- axis trail colors n"dod_nt_axis_1" "139" // rn"dod_nt_axis_2" "0" // g n"dod_nt_axis_3" "0" // bnn- trail size n"dod_nt_axis_size" "10" nn---------------------------------------------------------------------------------------------------- n*/ n////////////////////////////////////////////////////////////////////////////////////////////////////

n
nbugs etc goes in this thread...
n
n- cheers
n
n
nPublic Stats

Added later in the thread

dod_grenade_trail_1.0.sma Plugin Source 6 KB 26 dl Download Compile

The thread

All 8 posts from 5 people on DoD Grenade trail, kept as they were written.

Dr.G
started this thread
Posts: 776
Threads: 75
Joined: Nov 2007
03-20-2009, 09:56 PM #1

This plugin is VERY simple and might be a tutorial for some people...nn

/* Plugin generated by AMXX-Studio n----------------------------------------------------------------------------------------------------nnINFO:nnMake alittle smoke trail after grenades when they are thrown. The trail is either one color for allnnades or you can set it to be a team color, see CVARS. nnAll trail colors are in RGB format!nnCREDIT:nnDoD:S ??nnCHANGELOG:nnn----------------------------------------------------------------------------------------------------nnCVARS and default settings:nn- plugin on/off | 1 = on 0 = offn"dod_grenade_trial" "1"nn- use team color or not | 1 = on 0 = offn"dod_grenade_trial_team_color" "0"nn- default trail colors n"dod_nt_default_1" "105" // rn"dod_nt_default_2" "105" // g n"dod_nt_default_3" "105" // bnn- trail size n"dod_nt_default_size" "15"nnn- allies trail colors n"dod_nt_allies_1" "0" // rn"dod_nt_allies_2" "139" // g n"dod_nt_allies_3" "0" // bnn- trail size n"dod_nt_allies_size" "10"nnn- axis trail colors n"dod_nt_axis_1" "139" // rn"dod_nt_axis_2" "0" // g n"dod_nt_axis_3" "0" // bnn- trail size n"dod_nt_axis_size" "10" nn---------------------------------------------------------------------------------------------------- n*/ n////////////////////////////////////////////////////////////////////////////////////////////////////
nnbugs etc goes in this thread...nn- cheersnnnPublic Stats

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
03-21-2009, 12:44 AM #2

dod_greande_trail.smannGG SPELLING!

Dr.G
started this thread
Posts: 776
Threads: 75
Joined: Nov 2007
03-21-2009, 08:33 AM #3

FUCK you diamond optic

M Merrill
posted here
Posts: 38
Threads: 6
Joined: Sep 2005
04-12-2009, 01:55 PM #4

What would the code be to have grey or black trail colors?

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
04-12-2009, 04:15 PM #5
What would the code be to have grey or black trail colors?
nnwell you cant have black as far as i know... but for grey you just change the following cvar values to the RGB values for whatever sort of 'grey' you want..nn
n"dod_nt_default_1" "105"    // rn"dod_nt_default_2" "105"    // g n"dod_nt_default_3" "105"     // bnn"dod_nt_allies_1" "0"        // rn"dod_nt_allies_2" "139"        // g n"dod_nt_allies_3" "0"        // bnn"dod_nt_axis_1" "139"         // rn"dod_nt_axis_2" "0"        // g n"dod_nt_axis_3" "0"         // bn
Dr.G
started this thread
Posts: 776
Threads: 75
Joined: Nov 2007
04-13-2009, 10:24 AM #6

I dont think it can be black, but you could try and add a new another sprite. DL and open the script and the replace the sprite in:rnrn

public plugin_precache() // <- Line 105!rn{rn	trail_spr = precache_model("sprites/xsmoke3.spr") rn	/* alternative sprites -> smoke.spr || xsmoke3.spr */rn}
rnrnjust add your new sprite where it says "sprites/xsmoke3.spr" try and add the one from D-O's smokegrenades.rnrnBE a 100% sure that the new sprite is on the server, and in the right folder! Else it will crash on you, without a warning.rnrnrnIf you dont understand what iam saying here. Don't mess with it ;)

S sparky99
posted here
Posts: 263
Threads: 49
Joined: Jan 2006
04-26-2016, 10:50 PM #7

Hello

D DoD Info
posted here
Posts: 3
Threads: 1
Joined: Dec 2016
12-10-2016, 02:43 PM #8
Hello
rnThank you, sparky!

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC