n- Version 1.6
n- 07.29.2009
n- original: Zor
n- modified: diamond-optic
n
nCredits:
n
- Zor: original DoD Smoke Grenades plugin (v0.7a)n- Original Thread: [URL]https://www.dodplugins.net/forums/showthread.php?t=9[/URL]Information:
n
- Allows you to throw smoke grenades... obviously...nn- Seperate loadouts for each classn- Voice command to yell out "Smoke Em!" with flood protectionn- Take damage when another player hits you with their smoke grenaden- Choking sound & damage within a certain radius of a grenadenn- Psychostats compatible log messages (registers as a new weapon)nn- File consistency on the smoke sprite, no more cheaters replacing it..nn- Server List: [URL]http://www.game-monitor.com/search.php?rulename=dod_smokegrenade2_stats[/URL]File Placement:
n
smoke_grenade.spr --> ../dod/sprites/nexplode_smoke.wav --> ../dod/sound/misc/ncough1.wav --> ../dod/sound/player/ncough2.wav --> ../dod/sound/player/nbrit_smoke.wav --> ../dod/sound/player/nger_smoke.wav --> ../dod/sound/player/nus_smoke.wav --> ../dod/sound/player/Commands:
n
throw_smoke //throws a smoke grenadenvoice_smoke //yells out "Smoke Em!"CVARs:
n
dod_smokegrenades "1" //Turn on(1)/off(0)nn//Number of grenades each class spawns with:ndod_smoke_garand "2"ndod_smoke_carbine "2"ndod_smoke_thompson "1"ndod_smoke_grease "1"ndod_smoke_sniper "2"ndod_smoke_bar "1"ndod_smoke_30cal "2"ndod_smoke_bazooka "3"ndod_smoke_kar "2"ndod_smoke_k43 "2"ndod_smoke_mp40 "1"ndod_smoke_mp44 "1"ndod_smoke_scharfschutze "2"ndod_smoke_fg42 "1"ndod_smoke_scoped_fg42 "1"ndod_smoke_mg34 "2"ndod_smoke_mg42 "2"ndod_smoke_panzerjager "3"ndod_smoke_enfield "2"ndod_smoke_sten "1"ndod_smoke_marksman "2"ndod_smoke_bren "1"ndod_smoke_piat "3"Compiler Defines:
n
SETTING_FLOODTIME 2.0 //How many seconds between using 'voice_smokeup' commandnnSETTING_SPREAD 80 //Spread (from the grenade itself)nSETTING_SIZEMIN 15 //Minimum smoke sprite sizenSETTING_SIZEMAX 70 //Maximum smoke sprite sizenSETTING_SPRITES 4 //Number of smoke sprites created each secondnSETTING_DURATION 15.0 //How many seconds grenades will give off smokenSETTING_THINKTIME 1.0 //How many seconds between creating new smoke puffsnnSETTING_DELAYSTART 2.0 //How many seconds after throw till grenade gives off smokenSETTING_DELAYTHROW 1.0 //How many seconds to delay between each thrownnSETTING_CHOKE 1 //Turn on(1)/off(0) chokingnSETTING_CHOKERADIUS 75.0 //Radius from smoke grenade for chokingnSETTING_CHOKECHANCE 2 //1 in # chance of playing choking soundnnSETTING_DAMAGE 1 //Turn on(1)/off(0) choke damagenSETTING_DAMAGEAMT 5 //Amount of damage given when chokingnSETTING_DAMAGECHANCE 3 //1 in # chance of giving damage while chokingnnSETTING_DAMAGEHIT 1 //Turn on(1)/off(0) hit damage (when grenade hits a player)nSETTING_DAMAGEHITAMT 20 //Amount of damage given per hitnnSETTING_MSGJOIN 0 //Shows commands 30 seconds after player has joined the servernSETTING_MSGSPAWN 0 //Shows how many smoke grenades you have when you spawnnSETTING_MSGTHROW 1 //Shows how many smoke grenades you have left after throwing onennSETTING_WARN 2 //Inconsistent file warning settingn // 0 = say nothingn // 1 = tell adminsn // 2 = tell publicnnSETTING_WARNACTION 2 //Inconsistent file action settingn // 0 = do nothingn // 1 = kickn // 2 = bannnSETTING_BANTIME 15 //Inconsistent file ban action lengthnnSETTING_AMXBANS 0 //Inconsistent file ban action amxbans supportn // 0 = offn // 1 = onn // 2 = on, alternate syntaxnnSETTING_MAXPLAYERS 32 //Max Player count for your server (keeping at 32 should be fine tho)nnSETTING_MAXSMOKE 25 //Sets the max number of smoke grenades allowed at once n // * Be careful messing with this one (default setting: 25)n // * Setting this too high could make your server vulnerable to crashingnnFULL_PRECACHE 0 //Controls whether all files are precached or not n // * If you find that some sounds dont work, enable thisn // * If you get 'file not precached' errors, enable thisExtra:
n
- If using AMXBans for the file consistency, I recommend that youn check out the following link for a fix for the banning:n * [URL]https://www.dodplugins.net/forums/showthread.php?t=1421[/URL]nn- If you run the ps_heatmaps plugin, for creating spatial stats forn creating heatmaps in PsychoStats 3.1+, I recommend that you check outn the following link for a fix for that plugin recreating suicide log msgsn * [URL]http://www.avamods.com/download.php?view.177[/URL]nn- I also recommend that you check out one of the following links for fixingn a possible problem that may occur with the DoD Stats & Stats Loggingn plugins that come with AMXX (as well as an improved display name)n * [URL]https://www.dodplugins.net/forums/showthread.php?t=1466[/URL]n * [URL]http://www.avamods.com/download.php?view.176[/URL]Change Log:
n
- 04.25.07 - Version 1.0n Finally Releasednn- 06.24.07 - Version 1.1n Fixed a cvar mistake (this also fixes incorrect hit damage)n Changed returns to FMRES on fakemeta forwardsn Added CVAR to control delay between throwsn Added MAX_SMOKE define to limit max smoke nades at oncen Hopefully fixed the consistency function from hooking all bad filesn Removed default DoD sounds from precache (dod already precaches them)n Added FULL_PRECACHE define to enable precaching all filesn Improved weaponstats log msgs and added victim's deathn Fixed bug with setting user killsn Various changes & improvements throughout the codenn- 07.30.07 - Version 1.2n Fixed rare runtime error in damage/choke functionsn Adjusted default choke/damage radiin Slight changes to consistency messagesnn- 11.05.07 - Version 1.3n Fix for annoying sound loop on stuck grenadenn- 12.25.08 - Version 1.4n Various code improvementsn Added custom weapon supportn Adjusted nade spin and velocityn Bots now will get smoke nades (for future plans)n Increased default choke radius to 75n Changed some variables to static'sn Replaced ResetHud & RoundState forwards with PStatus methodn Added PCVAR usage to mp_friendlyfire queriesn Added PCVARs to class grenade limit CVARsn Renamed 'dod_smoke_warncrc' CVAR to 'dod_smoke_bad_warn'n Added 'dod_smoke_bad_action' CVAR to control consistency responsen Added 'dod_smoke_bad_bantime' CVAR to set length of ban actionn Added 'dod_smoke_bad_amxbans' CVAR to enable amxbans supportn Improved file consistency stuffn Fixed throwing sound covering up weapon firen Now you cant throw nades while shootingn Added simulated throwing animationn Checks for godmode before giving damage n Changed touch & think forwards over to HamSandwichn n- 07.08.09 - Version 1.5n Made the inconsistent file kick/ban reason a little shortern Replaced PStatus spawn hook to HamSandwichn Changed most of the CVARs into compiler definesn Changed the order of some if statement checksn Various other code improvementsn n- 07.29.09 - Version 1.6n Fixed choke/damage chance methodn Fixed choking function (had an integer where it should have been a float)DOWNLOAD MIRROR: http://www.avamods.com/download.php?view.136

