PDA

View Full Version : DoD Light Grenades


Dr.G
05-15-2009, 11:01 PM
/* Plugin generated by AMXX-Studio */
////////////////////////////////////////////////////////////////////////////////////////////////////
/*

INFO:

Make you able to throw light grenades :O. Note the cvar for setting a glow on the grenades, I made
that because this plugin, uses the same grenade model as DoD Smoke Grenades 2, and i want to see
the difference on them while playing.



CVARS:

- Plugin on /off | 1 is ON - 0 is OFF
dod_light_grenades 1

- Should grenades glow when thrown? | 1 is ON - 0 is OFF
dod_light_grenades_glow 1

- How long should a light grenade light up in seconds?
dod_light_grenades_duration 20

- How big a fuse should light grenades have?
dod_light_grenades_fuse 2

- Max amount of light grenades that may be alive at the same time?
dod_light_grenades_max_alive 10


- Light grenades give at spawn, by class...

* Allies classes
dod_light_grenades_garand 2
dod_light_grenades_carbine 2
dod_light_grenades_thompson 2
dod_light_grenades_grease 2
dod_light_grenades_sniper 0
dod_light_grenades_bar 2
dod_light_grenades_30cal 0
dod_light_grenades_bazooka 1

* Axis classes
dod_light_grenades_kar 2
dod_light_grenades_k43 2
dod_light_grenades_mp40 2
dod_light_grenades_mp44 2
dod_light_grenades_scharfschutze 0
dod_light_grenades_fg42 2
dod_light_grenades_scoped_fg42 0
dod_light_grenades_mg34 0
dod_light_grenades_mg42 0
dod_light_grenades_panzerjager 1

* Brit classes
dod_light_grenades_enfield 2
dod_light_grenades_sten 2
dod_light_grenades_marksman 0
dod_light_grenades_bren 2
dod_light_grenades_piat 1



CONSOLE COMMAND:

throw_light



THANKS TO:

tuty @ alliedmodders, his version for CS gave me the idea for this.


CHANGELOG:

16-05-09
release

17-06-09
removed wpn aim msg. what was i thinking lol

*/
////////////////////////////////////////////////////////////////////////////////////////////////////

Bug etc goes in this thread...

- cheers


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

Dr.G
06-17-2009, 12:22 PM
Updated! See changelog

- Cheers

gunsofnavarone
10-22-2009, 09:19 AM
I don't know how I missed this plugin before, this is very nice. I was recently asked to find a "flare" plugin for use on the server and the one I found didn't seem to work in DOD. This is a nice substitute.

I do have one small comment though if you don't mind: When the light goes out, it simply goes off, like a lightswitch. A fade out effect would improve this greatly.

Dr.G
10-22-2009, 12:10 PM
Well the reason why i made this was because the flare model looks pretty gay, and we have a fine default smoke grenade model, so light grenades it was. Yea it would be pretty cool if it slowly burned out. But the way i made this its either on or off, its not a adjustable message. So for now you gotta live with it, i will look for another way to do it if i get time. But wth no one is using it anyway....

=*MDMILBURN*=
11-20-2009, 01:25 AM
is the compile not here for a developing reason?

Tank
11-20-2009, 07:59 AM
There is an sma provided and you can either use the automated compile function or use the compiler on your left hand menu.

If with the compile you mean the amxx file. For security reasons we do not allow people to only post the amxx file (with one exception but that has been cleared by certain people).

=*MDMILBURN*=
11-21-2009, 12:48 AM
its all good i did it somewhere else