//rn// DESCRIPTION:rn// ============rn//rn// - players drop exactly the grenades they have left onrn// death and alive players can pickup thosern// (example: Axis player dies and drops a stickgrenadern// -> Allied player picked it up while still having a handgrenadern// -> Allies player dies and drops 1x Stick- and 1x Handgrenadern// -> A player that has no grenades picks up both and will droprn// both on death as well)rn// - grenades will be removed once a round is finishedrn// - additionally each player's previously dropped grenade(s) can be removedrn// before dropping new ones.rn//
rn
rn
// rn// USAGE:rn// ======rn//rn// CVARS:rn//rn// dod_dropgrenades_enabled <1/0> = enable/disable DoD DropGrenadesrn// 1 = enabledrn// 0 = disabledrn//rn// dod_dropgrenades_removeold <1/0> = enable/disable removing player'srn// previously dropped grenade(s) beforern// dropping new onesrn// 1 = enabledrn// 0 = all grenades stay until roundendrn//rn// dod_dropgrenades_ignorebots <1/0> = enable/disable ignoring botsrn// 1 = ignore bots (bots don't drop or pickup grenades)rn// 0 = don't ignore bots (bots drop and pickup grenades)rn//rn//rn// ADMIN COMMAND:rn//rn// amx_dropgrenades <1/0> = enable/disable DoD DropGrenadesrn// 1 = enablern// 0 = disable and remove all dropped grenadesrn//
rn
rn
//rn// CHANGELOG:rn// ==========rn//rn// - 26.07.2005 Version 0.5betarn// Initial Public Releasern//rn// - 21.08.2005 Version 0.5beta2rn// workaround:rn// - added a fix for strange behavior on AMXX 1.50betarn//rn// - 27.08.2005 Version 0.6betarn// changes:rn// - removed workaround for AMXX 1.50beta as the bug isrn// fixed in AMXX 1.55 which everyone should rather usern// than 1.50beta!rn//rn// - 12.01.2007 Version 0.6rn// changes:rn// - made it so that whatever side you are it will pickup your type of nadesrn// this is to make it compatiable with zors smoke nades pluginrn// - added cvar to change amount of grenades allowed to havern//rn// - 30.06.2007 Version 0.7rn// - discarded changes from v0.6rn// - changed Engine- to Fakemeta-Module for better performancern// - removed need for DoDFun modulern// - changed to using pcvarsrn// - added full Linux compatibility with removing dod_get_user_ammorn// and counting players' grendades depending on their class after spawningrn// - using grenade_throw forward to decrease amount of dropable grenadesrn// when a player throws a grenade.rn// - players now drop exactly the grenades they have left onrn// death and alive players can pickup thosern// (example: Axis player dies and drops a stickgrenadern// -> Allied player picked it up while still having a handgrenadern// -> Allies player dies and drops 1x Stick- and 1x Handgrenadern// -> A player that has no grenades picks up both and will droprn// both on death as well)rn// - removed all effects and ability to use an AmmoBox-Model instead of thern// grenade models for dropped grenades for more realismrn// - added cvar dod_dropgrenades_ignorebots with that bots can be preventedrn// from dropping and picking up grenadesrn//rn// - 30.06.2007 Version 0.75rn// - added ability to adjust the amount of grenades a player has by defaultrn// NOTE: if you are not using any plugins that mess with thern// amount of grenades per player, keep the default value!rn// - added ability to adjust the amount of grenades a player can pickuprn// from the groundrn// NOTE: if you are not using any plugins that mess with thern// amount of grenades per player, keep the default value!rn// - added ability to adjust the amount of grenades that will be droppedrn// when a player diesrn// NOTE: if you are not using any plugins that mess with thern// amount of grenades per player, keep the default value!rn//rn// - 02.07.2007 Version 0.8rn// - added roundstate "Draw" to clean up of dropped grenadesrn// - added global tracking cvarrn//
rn
rn
rnPLEASE NOTE:
rnFrom now on this Plugin is considered a realism Plugin, if you
rnwish to have funny effects or different models for the dropped
rngrenades, please use "DoD DropGrenades 2" modded by "Wilson [29th ID]".
rnIt contains a lot more features other than the basic realism features.
rnIf you like realism though, DropGrenades v0.7 is the right one for you!
rn
rn
rnPLEASE NOTE #2:
rnIf you are running a Plugin that messes with or just changes the DoD default
rnamount of grenades that a specific player class has, you can adjust
rnDoD DropGrenades to fit to the changed amounts with editing the source code
rn(dod_dropgrenades.sma) with your text editor before compiling!
rnLook for the following lines:
rn
// PLEASE ONLY CHANGE THE FOLLOWING NUMBERS THAT DECLARE THErn// NUMBER OF GRENADES EACH GROUP OF CLASSES HAVE IF YOU ARErn// USING A PLUGIN THAT CHANGES THE STANDARD AMOUNT OF GRENADES!rnrn#define DOD_RIFLE_CLASSES 2 // GARAND, CARBINE, ENFIELD, K98, K43rn#define DOD_MP_CLASSES 1 // THOMPSON, BAR, GREASEGUN, BREN, STEN, MP40, STG44, FG42, SCOPED FG42rn#define DOD_SNIPER_CLASSES 0 // SPRINGFIELD, SCOPED ENFIELD, SCOPED K98rn#define DOD_MG_CLASSES 0 // 30CAL, MG34, MG42rn#define DOD_ROCKET_CLASSES 0 // BAZOOKA, PIAT, PANZERSCHRECKrnrnrn// THE FOLLOWING IS THE MAX AMOUNT OF GRENADES A PLAYER CANrn// PICKUP! ADJUST THIS VALUE CAREFULLY!rnrn#define DOD_GRENADES_PICKUP 2rnrnrn// THE FOLLOWING IS THE MAX AMOUNT OF GRENADES THAT WILL BE DROPPEDrn// WHEN A PLAYER DIES THAT HAD MORE THAN THE DOD STANDARD LIMIT!rn// TO PREVENT GRENADE-SPAMMING DEFAULT VALUE IS HIGHLY RECOMMENDED!rnrn#define DOD_DROPGRENADES_MAX 2
rn
rnIF NO OTHER PLUGIN MESSES WITH PLAYER'S GRENADES YOU
rnCAN LEAVE THE SOURCE CODE UNTOUCHED!
rn
rn
rnNow enjoy playing with a bit more realism! :D

