PDA

View Full Version : DoD Grenade trail


Dr.G
03-20-2009, 10:56 PM
This plugin is VERY simple and might be a tutorial for some people...

/* Plugin generated by AMXX-Studio
----------------------------------------------------------------------------------------------------

INFO:

Make alittle smoke trail after grenades when they are thrown. The trail is either one color for all
nades or you can set it to be a team color, see CVARS.

All trail colors are in RGB format!

CREDIT:

DoD:S ??

CHANGELOG:


----------------------------------------------------------------------------------------------------

CVARS and default settings:

- plugin on/off | 1 = on 0 = off
"dod_grenade_trial" "1"

- use team color or not | 1 = on 0 = off
"dod_grenade_trial_team_color" "0"

- default trail colors
"dod_nt_default_1" "105" // r
"dod_nt_default_2" "105" // g
"dod_nt_default_3" "105" // b

- trail size
"dod_nt_default_size" "15"


- allies trail colors
"dod_nt_allies_1" "0" // r
"dod_nt_allies_2" "139" // g
"dod_nt_allies_3" "0" // b

- trail size
"dod_nt_allies_size" "10"


- axis trail colors
"dod_nt_axis_1" "139" // r
"dod_nt_axis_2" "0" // g
"dod_nt_axis_3" "0" // b

- trail size
"dod_nt_axis_size" "10"

----------------------------------------------------------------------------------------------------
*/
////////////////////////////////////////////////////////////////////////////////////////////////////

bugs etc goes in this thread...

- cheers


Public Stats (http://www.game-monitor.com/search.php?search=dod_gt_stats&type=variable)

diamond-optic
03-21-2009, 01:44 AM
dod_greande_trail.sma

GG SPELLING!

Dr.G
03-21-2009, 09:33 AM
FUCK you diamond optic

Merrill
04-12-2009, 02:55 PM
What would the code be to have grey or black trail colors?

diamond-optic
04-12-2009, 05:15 PM
What would the code be to have grey or black trail colors?

well 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..


"dod_nt_default_1" "105" // r
"dod_nt_default_2" "105" // g
"dod_nt_default_3" "105" // b

"dod_nt_allies_1" "0" // r
"dod_nt_allies_2" "139" // g
"dod_nt_allies_3" "0" // b

"dod_nt_axis_1" "139" // r
"dod_nt_axis_2" "0" // g
"dod_nt_axis_3" "0" // b

Dr.G
04-13-2009, 11:24 AM
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:

public plugin_precache() // <- Line 105!
{
trail_spr = precache_model("sprites/xsmoke3.spr")
/* alternative sprites -> smoke.spr || xsmoke3.spr */
}

just add your new sprite where it says "sprites/xsmoke3.spr" try and add the one from D-O's smokegrenades.

BE 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.


If you dont understand what iam saying here. Don't mess with it ;)