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

DoD Smoke Grenades 2 (v1.6)

by diamond-optic · 2007-04-26 · 98 replies · 52758 views · 949 downloads

Read the thread (99 posts)

From the first post

DoD Smoke Grenades 2
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 this
Extra:
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

Files

dod_smokegrenade2.sma Plugin Source 38 KB 374 dl Download Compile
dod_smokegrenade2-files.zip Archive 252 KB 575 dl Download

The thread

All 99 posts from 28 people on DoD Smoke Grenades 2 (v1.6), kept as they were written.

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
04-25-2007, 09:41 PM #1

DoD Smoke Grenades 2n- Version 1.6n- 07.29.2009n- original: Zorn- modified: diamond-opticnnCredits:n

n- Zor: original DoD Smoke Grenades plugin (v0.7a)n- Original Thread: https://www.dodplugins.net/forums/showthread.php?t=9n
Information:n
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: http://www.game-monitor.com/search.php?rulename=dod_smokegrenade2_statsn
File Placement:n
nsmoke_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/n
Commands:n
nthrow_smoke //throws a smoke grenadenvoice_smoke //yells out "Smoke Em!"n
CVARs:n
ndod_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"n
Compiler Defines:n
nSETTING_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 thisn
Extra:n
n- If using AMXBans for the file consistency, I recommend that youn check out the following link for a fix for the banning:n * https://www.dodplugins.net/forums/showthread.php?t=1421nn- 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 * http://www.avamods.com/download.php?view.177nn- 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 * https://www.dodplugins.net/forums/showthread.php?t=1466n * http://www.avamods.com/download.php?view.176n
Change Log:n
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)n
DOWNLOAD MIRROR: http://www.avamods.com/download.php?view.136

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
04-25-2007, 10:44 PM #2

WAY HAY Right m8 im away untill friday but as soon as i get back this will be on my server ill report back then Fan dabi Dosey m8 im chuffed even if it wont work LMAOnnRegardsnnBlobby

S scorpionsinz
posted here
Posts: 20
Threads: 2
Joined: Aug 2006
04-26-2007, 10:30 PM #3

I will try this new version out on our server and see how it goes. Btw does anyone have an older version of metamod in teh 1.18a era? Since my update i have been having alot of crashes and problems loading maps. Thanks all.

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
04-26-2007, 11:53 PM #4

well for this plugin (and probably most of the 'newer' plugins here) you need to have one of the more recent amxx versions.. like 1.7x at least (guessing i cant remember exact changelogs :P) which i believe require at least mm 1.19

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
04-27-2007, 10:39 AM #5

Ok m8 right what can i say appart from it is amazing and it fully works and the smoke spr is one of the best ones i have seen in time the plugin is amazing its full working no bugs no server crashes no errors my clan ias so pleased with this thanks alot m8 +KARMA for diamond-opticnnRegardsnnBlobby

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
04-27-2007, 07:42 PM #6
+KARMA for diamond-optic
nnnhahahah :D

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
04-27-2007, 09:10 PM #7

:-) i also just added to my server the force cl_particle affects plugin that peed some peeps off LMAO another nice one m8 if only you was the guy doing the drop nades pluginnnRegardsnnBlobby

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
04-27-2007, 09:26 PM #8

i tried messing with the drop nades plugin a while back and ran into all sorts of problems...nnwilson does a great job.. just he has a windows server so that would make it difficult for him to really even test any possible fixes for why linux servers are having trouble with the drop nades

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
04-27-2007, 10:24 PM #9

Well if he wants top try agine i will test it for him if he directs me into what he wants back from it as i am dying to get my hands on drop nades for linux

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
04-27-2007, 10:47 PM #10

ya id like it too lol.. but i dont really like 'play testing' plugins on my dedicated lol.. especially since im usually only around when theres a lot of ppl playing.. but im sure he'll get it.. and i believe team06 was helping and thats a positive thing too

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
04-28-2007, 11:50 AM #11

Ive run into a small problem with this plugin now dimond m8 when i bind the throw_smoke command on its own it works but if i do the following to get also voice as i throw my smoke nalias smoke"voice_smoke;throw_smoke"nand then bind key smokennit works untill i close dod then if i open dod agine the bind has gone and it also happens to my other members can you help me solve this as it is amazing to have the voice as you throw the nadesnnRegardsnnBlobby

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
04-28-2007, 01:58 PM #12
Ive run into a small problem with this plugin now dimond m8 when i bind the throw_smoke command on its own it works but if i do the following to get also voice as i throw my smoke nalias smoke"voice_smoke;throw_smoke"nand then bind key smoken nit works untill i close dod then if i open dod agine the bind has gone and it also happens to my other members can you help me solve this as it is amazing to have the voice as you throw the nadesn nRegardsn nBlobby
n n nyou dont need an "alias" to do this...n nopen config.cfg and manually write the bind in there ...n n
bind "f" "voice_smoke;throw_smoke"
M MBosta
posted here
Posts: 208
Threads: 30
Joined: Sep 2006
04-28-2007, 02:00 PM #13

wouldn't it be easier to just go ingame and type rnrnbind "f" "voice_smoke;throw_smoke"rnrnin console?

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
04-28-2007, 02:11 PM #14
wouldn't it be easier to just go ingame and type n nbind "f" "voice_smoke;throw_smoke"n nin console?
n nit would if you were not too smart and didn't have your config.cfg file read only...n n nTRUST ME .. you want config.cfg read-only .... and better yet.. you DO want to use a secondary cfg file instead of config.cfg ...

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
04-28-2007, 08:55 PM #15

just like to add.. nnim pretty sure aliases that you add midgame.. wont be saved...nbut ya.. no need to use an alias to use both commands at the same time/keynnn...heh i no longer run my config readonly.. i have a backup copy of it just incase, but ive been making a lot of changes to it while im playing and im tired of forgetting that its readonly and having to put the changes in my console each time lol.. and im too lazy to go in developer mode as i believe you can save readonly configs that way

S scorpionsinz
posted here
Posts: 20
Threads: 2
Joined: Aug 2006
04-29-2007, 01:48 AM #16

I get this for an error when trying to compile.rnrnWelcome to the AMX Mod X 1.70-300 Compiler.rnCopyright (c) 1997-2005 ITB CompuPhase, AMX Mod X Teamrnrntemp.sma(408) : error 017: undefined symbol "velocity_by_aim"rntemp.sma(420) : error 017: undefined symbol "angle_vector"rntemp.sma(420) : warning 215: expression has no effectrntemp.sma(420) : error 001: expected token: ";", but found ")"rntemp.sma(420) : error 029: invalid expression, assumed zerorntemp.sma(420) : fatal error 107: too many error messages on one linernrnCompilation aborted.rn5 Errors.rnCould not locate output file ../amxx/dod_smokegrenade2.1.71.amx (compile failed).

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
04-29-2007, 11:02 AM #17

well im gonna assume this:n

Could not locate output file ../amxx/dod_smokegrenade2.1.71.amx (compile failed).
nmeans your trying to compile it on amxx 1.71nnthe natives velocity_by_aim & angle_vector were moved from the engine module to the core in amxx 1.75 i believe..nnyou could try adding:n
#include <engine>
nafter the other '#include' lines in the source and it might work...nnbut cant say for sure, its very possible that other parts of the plugin use some other scripting changes from more recent versions of amxx.. so running it on an old version could break it, even if it doesnt give any errors..

R rplatt
posted here
Posts: 4
Threads: 1
Joined: Apr 2007
04-29-2007, 12:55 PM #18

what files do i put where and do i add the cvars u provided into my cvars.ini fiel

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
04-29-2007, 06:27 PM #19
what files do i put where
nwhen getting a new plugin, you should at least read the 1st post.. sometimes theres important information there...n
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/n
nnn
do i add the cvars u provided into my cvars.ini fiel
nyou could add them to the cvars.ini if you want them to show up on the cvar menu.. but for the most part.. i would say the amxx.cfg file is the only place you should really add them..nnthe cvars.ini will allow you to easily/quickly change them (to whatever values you specify in the ini file) midgame without having to go in rcon.. (or using the amx_cvar command)

C Country
posted here
Posts: 12
Threads: 0
Joined: Aug 2006
05-01-2007, 12:22 AM #20
i tried messing with the drop nades plugin a while back and ran into all sorts of problems...rnrnwilson does a great job.. just he has a windows server so that would make it difficult for him to really even test any possible fixes for why linux servers are having trouble with the drop nades
rnrnrnSo this plugin will work for Linux servers right?

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
05-01-2007, 11:18 AM #21

yup.. been running for like a year on my linux dedicated :D

C Country
posted here
Posts: 12
Threads: 0
Joined: Aug 2006
05-01-2007, 01:17 PM #22
yup.. been running for like a year on my linux dedicated :D
rnrnAhh..where have I been:eek: rnVery nice plugin works great diamond:D rnOne suggestion if I may...is there a way to add a model to this so that you can see it in your hand and then throw it rather than bind a key to throw it?

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
05-01-2007, 07:20 PM #23

i dont really see myself adding that at any point... especially any time soon..nn...i dont even know a good way of doing it.. as i dont really like the way zor does it in his plugin.. and that could very well be whats causing problems on linux servers...

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
05-01-2007, 10:25 PM #24

...also i forgot to mention there is a bit of a cvar error :-(nndoesnt really mess anything up.. and you probably wouldnt really notice it if i didnt say anything.. but you can grab it off the SVN if you'd like:nnCLICK HEREnnnor THIS LINK might be easier for you to save itnnnthe reason im not just posting it here is because thats such a little thing i'd prefer to wait till i make some more changes before actually releasing a new version..

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
05-02-2007, 12:04 PM #25

A small question for you dimond-optic m8 you know when you throw the nades it says you have n3smoke nades leftn2smoke nades leftn1smoke nades leftn0smoke nades leftnnwhere can i find this message in the sma code as i have scanned over it 6 or 7 times and i cant find it the reason i want to find this is because i want to change the message as ive had to limit all the classes to 1 smoke nade each due to gready people throwing 3 all at once and lagging people witch is a bit of a helper to get frags if you could find this and tell me what like or show me on here i will be very great fullnnRegardsnnBlobby

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
05-02-2007, 05:59 PM #26
A small question for you dimond-optic m8 you know when you throw the nades it says you have n3smoke nades leftn2smoke nades leftn1smoke nades leftn0smoke nades leftn nwhere can i find this message in the sma code as i have scanned over it 6 or 7 times and i cant find it the reason i want to find this is because i want to change the message as ive had to limit all the classes to 1 smoke nade each due to gready people throwing 3 all at once and lagging people witch is a bit of a helper to get frags if you could find this and tell me what like or show me on here i will be very great fulln nRegardsn nBlobby
n nyou don't need to change the message code... it will not say you have 2 or 3 or more grenades if you only set that class (or everyone) to only one each...

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
05-02-2007, 07:47 PM #27

ya im a bit confusednnmaybe its just the way you typed it but it shouldnt say "1 nades" or whatver in pluralnnnand ya like TatsuSaisei, if thats what you mean to change with it.. it will only say how many they actually have.. so if you have one to start with.. after throwing it.. it should say you have 0 left.. nnnmaybe im just not following what your looking to do..nnnbut its line 465 in the throwsmoke function.. looks like this:n

    if(get_pcvar_num(p_msg_throw))n        client_print(id, print_chat, "You have %d Smoke %s Left...", playerGrensCount[id], (playerGrensCount[id] != 1) ? "Grenades" : "Grenade")
blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
05-02-2007, 08:21 PM #28

LMAO you are all getting mixed up with me aint you and im sorry i have had to limit my great smoke nades to one per weapon and i wanted to change the message to use you smoke nade wisely next time instead of you have 0 nades left if you get mennSorry about my typing never whent to schoolnnRegardsnnBlobby

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
05-02-2007, 08:47 PM #29

if you want.. i could probably put in a cvar that controls a 'delay' between throws.. so then you could set it to say 60 seconds or whatever so they cant throw them all at oncenn..it probably would be more realistic with at least some delay anyway.. cause you wouldnt be able to get off a bunch smoke nades in half a second lol in real life..

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
05-02-2007, 10:05 PM #30

Im likeing m8 if you could do that for me i would be so pleased i have another question how come the smoke nades arnt actually held in hand is this extreamly hard or just impossiblennRegardsnnBlobby

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
05-03-2007, 12:05 AM #31

here you go blobby.. grab it off the SVN if you want...nnthe cvar is: dod_smoke_throwdelay "1.0" //How many seconds to delay between each thrownndefaults at 1 second, so dont forget to change it :)nn

nn CLICK HEREnnnor THIS LINK might be easier for you to save itnn
blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
05-05-2007, 09:43 AM #32

What am i actually ment to do to download this i can only select it all with copy but it wont compile if i paste it m8

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
05-05-2007, 07:20 PM #33

ahh damnit my mistake...n nmessed up one of the links..n nHERE THIS SHOULD WORK

S scorpionsinz
posted here
Posts: 20
Threads: 2
Joined: Aug 2006
05-06-2007, 09:54 PM #34

So what you are saying is that this plugin is now working correctly with Amx version 1.76c? That's what i'm using and metamod 1.19 and it's supposed to work?nnI will try it out this week and post my findings.

S scorpionsinz
posted here
Posts: 20
Threads: 2
Joined: Aug 2006
05-06-2007, 10:27 PM #35

Ok so i just put the plugin and cvars in. And low and behold the server crashes when the map restarts. rnrnEither the plugin doesn't work right or i'm doing something wrong. I have compiled the plugin, renamed it to dod_smokegrenades2.amxx put in all the cvars just like in the sma file and restarted the server, it crashes the server and will not allow it to reboot. SO i have to disable the plugin and restart the server and it comes back up. rnrnAny thoughts?

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
05-06-2007, 10:34 PM #36
Ok so i just put the plugin and cvars in. And low and behold the server crashes when the map restarts. n nEither the plugin doesn't work right or i'm doing something wrong. I have compiled the plugin, renamed it to dod_smokegrenades2.amxx put in all the cvars just like in the sma file and restarted the server, it crashes the server and will not allow it to reboot. SO i have to disable the plugin and restart the server and it comes back up. n nAny thoughts?
n nYou NEED models/sprites... if your server does NOT have the models/sprites the plugin uses then you WILL crash !!n nhttps://www.dodplugins.net/forums/attachment.php?attachmentid=472&d=1177548098n nhmm, just downloaded the zip ... no models, but the models he uses are from HL so that is not the issue, it is most likely the sprite (sounds generally will not crash the server)

S scorpionsinz
posted here
Posts: 20
Threads: 2
Joined: Aug 2006
05-07-2007, 06:28 AM #37

Thank you so much Tatsu! What you said worked like a charm and the plugin is running better than the first one. nnThanks all for the help in getting this working. My team appreciates it to the fullest extent!

F Fyrmn472
posted here
Posts: 13
Threads: 1
Joined: Mar 2005
06-24-2007, 02:39 PM #38

I have a rental client using the plugin with Amxmodx 1.76d and Metamod 1.19p28. The plugin appears fine, BUT occasionally a message pops up for players that says "WARNING!!! Playername Has a bad file! Removing cheater the server!!!". The rental client seems to think it may be a glitch with either this plugin or another. Is that possible?

FeuerSturm
posted here
Posts: 166
Threads: 15
Joined: Jun 2007
06-24-2007, 02:45 PM #39
I have a rental client using the plugin with Amxmodx 1.76d and Metamod 1.19p28. The plugin appears fine, BUT occasionally a message pops up for players that says "WARNING!!! Playername Has a bad file! Removing cheater the server!!!". The rental client seems to think it may be a glitch with either this plugin or another. Is that possible?
rnrnIs it possible that your client is running an old version of HLGuard on his server or anrnAmx Mod X plugin that is checking for file consistency?rnThose files aren't even standard DoD files, so a consistency checkrnwould never apear anywhere unless you set it up.rnrnOtherwise there wouldn't really be anything that could remove peoplernfrom his server!

F Fyrmn472
posted here
Posts: 13
Threads: 1
Joined: Mar 2005
06-24-2007, 03:17 PM #40

No HL Guard and here's a list of plugins running currently:rn

rn11:15:15 Currently loaded plugins:rn                name                    version  author            file             status   rn          [  1] Admin Base              1.75     AMXX Dev Team     admin.amxx       running  rn          [  2] Admin Commands          1.75     AMXX Dev Team     admincmd.amxx    running  rn          [  3] Admin Help              1.75     AMXX Dev Team     adminhelp.amxx   running  rn          [  4] Slots Reservation       1.75     AMXX Dev Team     adminslots.amxx  running  rn          [  5] Multi-Lingual System    1.75     AMXX Dev Team     multilingual.am  running  rn          [  6] Menus Front-End         1.75     AMXX Dev Team     menufront.amxx   running  rn          [  7] Commands Menu           1.75     AMXX Dev Team     cmdmenu.amxx     running  rn          [  8] Players Menu            1.75     AMXX Dev Team     plmenu.amxx      running  rn          [  9] Teleport Menu           1.75     AMXX Dev Team     telemenu.amxx    running  rn          [ 10] Maps Menu               1.75     AMXX Dev Team     mapsmenu.amxx    running  rn          [ 11] Admin Chat              1.75     AMXX Dev Team     adminchat.amxx   running  rn          [ 12] Anti Flood              1.75     AMXX Dev Team     antiflood.amxx   running  rn          [ 13] Scrolling Message       1.75     AMXX Dev Team     scrollmsg.amxx   running  rn          [ 14] Info. Messages          1.75     AMXX Dev Team     imessage.amxx    running  rn          [ 15] Admin Votes             1.75     AMXX Dev Team     adminvote.amxx   running  rn          [ 16] NextMap                 1.75     AMXX Dev Team     nextmap.amxx     running  rn          [ 17] Nextmap Chooser         1.75     AMXX Dev Team     mapchooser.amxx  running  rn          [ 18] TimeLeft                1.75     AMXX Dev Team     timeleft.amxx    running  rn          [ 19] Stats Configuration     1.75     AMXX Dev Team     statscfg.amxx    running  rn          [ 20] DoD Stats               1.75     AMXX Dev Team     stats.amxx       running  rn          [ 21] DoD Sounds Precache     1.75     AMXX Dev Team     statssounds.amx  running  rn          [ 22] Stats Logging           1.75     AMXX Dev Team     stats_logging.a  running  rn          [ 23] DoD EvilAdmin           0.5beta  AMXX DoD Team     dod_eviladmin.a  running  rn          [ 24] AMXX Parachute          1.0      KRoT@L (Ported b  amx_parachute.a  running  rn          [ 25] DoD Limits              0.3a     AMXX DoD Communi  dod_limits.amxx  running  rn          [ 26] GHW Ultimate Punishmen  1.0      GHW_Chronic       GHW_Uslays.amxx  running  rn          [ 27] DoD Ninja               1.4      AMXX DoD Communi  dod_ninja.amxx   debug    rn          [ 28] Dod Invisibility        1.0      Wilson - Dodplug  dod_invisibilit  running  rn          [ 29] Ejaculate               0.2      KRoTaL & diamond  amx_ejaculate.a  running  rn          [ 30] Admin Blink             1.0      scoutPractice     blink.amxx       running  rn          [ 31] DoD FadeToBlack         0.8beta  AMXX DoD Team     dod_fadetoblack  running  rn          [ 32] loading with music      2.0      eFrigid           loadingsongadva  running  rn          [ 33] MP3 + Wav Player W/ mu  1.3      GHW_Chronic + bi  mp3-wav_player.  running  rn          [ 34] FlameThrower [DoD]      1.0.1    SidLuke           dod_flamethrowe  debug    rn          [ 35] DoD Smoke Grenades 2    1.0      AMXX DoD Team     dod_smokegrenad  running  rn          [ 36] DoD DropGrenades        0.6beta  AMXX DoD Team     dod_dropgrenade  running  rn          [ 37] Glow Menu               v1.2     FireWalker877     glow_menu.amxx   running  rn          [ 38] DoD ClanMatch           0.7pref  AMXX DoD Team     dod_clanmatch.a  running  rn          [ 39] DoD TeamManager         1.0      AMXX DoD Team     dod_teammanager  running  rn          [ 40] Admin Spectator ESP     1.2      KoST              sea_spec_esp.am  debug    rn         40 plugins, 40 running
rnrnI'm not sure which plugins might be checking for file consistency...

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
06-24-2007, 05:29 PM #41

what that msg means is..nna client replaced the smoke_grenade.spr or whatever sprite file.. which could allow the client to get rid of the smoke (by using a empty or null sprite) so this plugin checks to make sure the client is using the same sprite file thats on the server.. if not they get kicked and thats when that msg should appear...nnthe dod_smoke_warncrc cvar should control who, if anyone, the message shows to..nnnbut heh this reminded me i never posted an update that has various fixes and some improvement on the file consistency check.. i'll try posting that tonight so once i get that posted.. i would highly suggest updating.. :)

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
06-24-2007, 05:41 PM #42

ok lol so i got around to doing it rather quickly :DnnnUpdate to Version 1.1nnChanges:n

- 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 coden
P Price [508th PIR]
posted here
Posts: 70
Threads: 4
Joined: Jul 2007
07-06-2007, 05:03 PM #43

I am really confused on how to upload this plugin. Do you just upload the whole zip file or what?

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
07-06-2007, 11:02 PM #44
;6683']I am really confused on how to upload this plugin. Do you just upload the whole zip file or what?
nnyou compile the .sma and upload the .amxx it creates to your amxmodx/plugins/ directory.. then add: dod_smokegrenade2.amxx to a new line in your plugins.ini file (amxmodx/configs/)nnnthen the files in the zip file you want to put in these locations:n
nsmoke_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/
us_smoke.wav --> ../dod/sound/player/

P Price [508th PIR]
posted here
Posts: 70
Threads: 4
Joined: Jul 2007
07-11-2007, 04:23 PM #45

thank you very much. I think ill be a le to get it now....

P Price [508th PIR]
posted here
Posts: 70
Threads: 4
Joined: Jul 2007
07-16-2007, 04:38 AM #46

I dont have dod/sound/misc ... would it be dod/sound/items?

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
07-16-2007, 08:37 AM #47

just create the folder called misc and put the sounds in it thats what i did and it worked :p

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
07-16-2007, 09:46 AM #48

ya just create the folder..nnit probably would have been a good idea to change up the folders used.. but i believe i just left them the way zor had them so ppl who already had the files didnt have to download them again.... but it does make it a bit more confusing.. :-

P Price [508th PIR]
posted here
Posts: 70
Threads: 4
Joined: Jul 2007
07-16-2007, 03:59 PM #49

I uploaded it to items... so ill go see if it works right now.

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
07-16-2007, 04:02 PM #50
;6824']I uploaded it to items... so ill go see if it works right now.
n nwill not work in a folder called 'items'... you HAVE to create a folder named misc.... its easy.. right click in the white space in the sounds fodler and create a new folder/directory and name it 'misc'

P Price [508th PIR]
posted here
Posts: 70
Threads: 4
Joined: Jul 2007
07-16-2007, 04:08 PM #51

Ok, Thanks alot tatsu. Your plugins are awesome.

P Price [508th PIR]
posted here
Posts: 70
Threads: 4
Joined: Jul 2007
07-16-2007, 08:26 PM #52

its says unknow cvar everytime... I uploaded the sma and the amxx to the right spot, and then updated the plugins.ini what else do i have 2 do?

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
07-16-2007, 09:30 PM #53

if your getting the same error with other plugins (like your posts HERE & HERE)nnyou must be doing something wrong.. does it show as running on the plugin list?nn...and obviously its not something specific to the plugins themselves.. so you didnt really need to post the same thing in 3 different places...

P Price [508th PIR]
posted here
Posts: 70
Threads: 4
Joined: Jul 2007
07-17-2007, 03:53 AM #54

I am sorry... Its only been these few plugins... Every other plugin works fine, and i uploaded these like i did on my other ones.... I put the sound files where you told me too....

H Haddock
posted here
Posts: 5
Threads: 0
Joined: Aug 2005
08-24-2007, 01:38 PM #55

Hello there,rnrnWhen compiling with 1.75-300 compiler, here is the error I have:rnrndod_smokegrenade2.sma(766) : error 017: undefined symbol "user_silentkill"rndod_smokegrenade2.sma(896) : error 017: undefined symbol "user_silentkill"rn// rn// 2 Errors.rn// Could not locate output file compileddod_smokegrenade2.amx (compile failed).rnrnIs it only for 1.76 and above ?rnrnThanks for any help.rnH@ddock

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
08-25-2007, 12:32 AM #56

that stock was probably added in a later version...nnbut if you add this stock at the bottom of the plugin, it should then work, unless theres more problems.. i dont really know lol..nn

/* Kills a user without a message. */nstock user_silentkill(index)n{n    static msgid = 0;n    new msgblock;n    if (!msgid)n    {n        msgid = get_user_msgid("DeathMsg");n    }n    msgblock = get_msg_block(msgid);n    set_msg_block(msgid, BLOCK_ONCE);    n    user_kill(index, 1);n    set_msg_block(msgid, msgblock);nn    return 1;n}
H Haddock
posted here
Posts: 5
Threads: 0
Joined: Aug 2005
09-02-2007, 08:51 AM #57

Thanks Diamond, that solved it !!!

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
09-12-2007, 08:20 PM #58

Update to Version 1.2nn

    - 07.30.07 - Version 1.2n        Fixed rare runtime error in damage/choke functionsn        Adjusted default choke/damage radiin        Slight changes to consistency messages
W watson
posted here
Posts: 13
Threads: 2
Joined: Jun 2007
09-13-2007, 08:23 PM #59

hey, optic sweet plugins ^^ 1 thing tho where do i get a compiler to make it into a amxx file? to add in the plugins.ini?

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
09-14-2007, 01:13 AM #60

well you can do it locally: https://www.dodplugins.net/forums/showthread.php?t=50nnor you can use an online compiler.. theres on on the amxmodx.org main site, as well as the main site at dodplugins.net

M MTCoors
posted here
Posts: 8
Threads: 1
Joined: Aug 2006
11-02-2007, 06:23 PM #61

New bug i am getting. I just updated to 1.8.0 amx and the axis side works just fine but on the allies side it shows the smoke canister but when you throw it out to an area it turns into a german nade...Why is this?:confused:rnBoth versions of the smokegrenades do the same exact thing.

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
11-02-2007, 06:29 PM #62

i havent had a chance to upgrade to 1.8.0 just yet, but will do so over the next few nights.. then ill take a look and see whats going on as that sounds quite odd lol

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
11-03-2007, 09:14 PM #63

just checked this on a win32 LAN running 1.8.0nnno problems for me at all so far.. smoke grenade models for all 3 teams dont change for me.. they all work fine :-

M MTCoors
posted here
Posts: 8
Threads: 1
Joined: Aug 2006
11-07-2007, 12:46 AM #64

Ok...The second version is working now with 1.8.0. Recompiled it and works perfect. Thanks for all your cool plugins!:D

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
11-30-2007, 10:10 PM #65

Updated to Version 1.3nn

- 11.05.07 - Version 1.3n       Fix for annoying sound loop on stuck grenade
F fbi.fr
posted here
Posts: 2
Threads: 0
Joined: Jan 2007
08-05-2008, 06:26 AM #66

I do not arrive has to compile it with the version 1.76drnrnPS : sorry for my English, I am French…

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
08-05-2008, 09:16 AM #67

As I don't quite know what you meant with your message. If you were saying you couldn't compile it with 1.80, for me it works just perfectly. Try using the online compiler from this website and try again.rnrnThe online compiler can be found here: https://www.dodplugins.net/forums/index.php?page=helprnrnIf you need any help, let us know as most of us got it working perfectly.

F fbi.fr
posted here
Posts: 2
Threads: 0
Joined: Jan 2007
08-06-2008, 03:35 PM #68

it works to, thanks !!!

D dodkiller
posted here
Posts: 1
Threads: 0
Joined: Sep 2008
09-27-2008, 06:00 AM #69

hi nnwhere i can download the amxx file from this pluginnsorry for my english i am german

meathead
posted here
Posts: 337
Threads: 23
Joined: Aug 2007
09-27-2008, 07:55 AM #70

Go to the help tabs and use the online compiler to create the amxx file.

R rustyt00lman
posted here
Posts: 3
Threads: 0
Joined: Aug 2008
09-28-2008, 07:30 PM #71

well done even i can add this lolrnworks well love it

A Akula
posted here
Posts: 8
Threads: 0
Joined: Nov 2007
10-16-2008, 08:38 AM #72

Had this plugin on my server (AMX 176d) for about 3 weeks running fine , now its crashing my server when someone tries to join.rnWent through all plugins one by one turning them off and this one seemed to be the culprit.rnrnTried recompiling and adding it again , but same story.rnrnCant understand how it worked fine all that time then stopped.

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
10-16-2008, 08:46 AM #73

You compiling the plugin for the right amxmodx version? Last time I checked it compiled for 1.81, if you have version 1.76 I can see why it would give some issues.rnrnYou should also check addons/amxmodx/configs/logsrnrnSee if it forwars any error message for this plugin (you might want to debug the plugin in plugins.ini).

A Akula
posted here
Posts: 8
Threads: 0
Joined: Nov 2007
10-16-2008, 09:08 AM #74

I cant understand how it worked for a few weeks then stopped.rnrnYes i may be compiling for the wrong version. rnIs there a compiler specifically for 1.76 ?? Or are they trying to get everyone on 1.8x ???

Tank
posted here
Posts: 581
Threads: 59
Joined: Jan 2007
10-17-2008, 09:48 AM #75
I cant understand how it worked for a few weeks then stopped.
rnrnWelcome to my life :D You might want to check new added plugins who might crash with this plugin.rnrnAs for compiling. If I remember correctly if you download 'Compiled' version (at the end of each provided plugin there are a few options which you can download, you can choose between source and compiled.) If you download compiled it's either compiled for version 1.80 or 1.81.rnrnWhat you can do is take the source and use the compiler (on the left side of your screen you see the site menu. At the bottom it says compiler). Select your amxmodx version (I wanted to do it for you, wasn't sure if you were using 1.76 or 1.76a).rnrnMy advice, like Zor and D-O always say...stick with the program. Amxmodx 1.81 has launched a while ago. I recommend updating to that, same thing im going to do next week.

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
12-26-2008, 02:45 AM #76

...FINALLY AN UPDATE!!!nnnVersion 1.4 Change Log:n

- 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 HamSandwich
nExtra:n
- If using AMXBans for the file consistency, I recommend that you checkn out the following link for a fix for the banning:n * https://www.dodplugins.net/forums/showthread.php?t=1421nn- 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 * http://www.avamods.com/download.php?view.177nn- 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 * https://www.dodplugins.net/forums/showthread.php?t=1466n * http://www.avamods.com/download.php?view.176
Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
04-08-2009, 07:06 AM #77

when is the inconsistent_file used/triggered in this?

A Arac
posted here
Posts: 9
Threads: 0
Joined: May 2009
05-12-2009, 04:21 AM #78

Hello.rnrnAmxx 1.81 and Linux server , and plugin running:) .. Thx, nice work !!!

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
07-08-2009, 06:22 PM #79

UPDATE TO VERSION 1.5nnn

- 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 improvements
diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
07-29-2009, 06:13 PM #80

Update to Version 1.6nn

- 07.29.09 - Version 1.6n    Fixed choke/damage chance methodn    Fixed choking function (had an integer where it should have been a float)n
W whatmee
posted here
Posts: 7
Threads: 0
Joined: Oct 2007
10-04-2009, 12:10 AM #81

hi there,nnsmoke nade not working on amx181.nnget error of ...nnLoad fails: Module/Library Class "xstats" required for plugin. Check modules.ini.n20 plugins, 19 runningnni have search world wide waste, and come with about a dll file csx.nnwhere would i find a download ?nnthankyou

N noddy
posted here
Posts: 250
Threads: 19
Joined: Oct 2004
10-04-2009, 08:11 AM #82

have you checked your modules.ini for the modules included in this plugin ?rnrn#include <amxmodx>rn#include <amxmisc>rn#include <fakemeta>rn#include <dodx>rn#include <dodfun>rn#include <fun>rn#include <hamsandwich>

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
10-04-2009, 02:01 PM #83

hmm wierd, amxx 1.8.1 should auto-enable any needed modulesnnthe dodx.inc file has this:nn

#if AMXX_VERSION_NUM >= 175n #pragma reqclass xstatsn #if !defined AMXMODX_NOAUTOLOADn  #pragma defclasslib xstats dodxn #endifn#elsen #pragma library dodxn#endif
nnbut ive never once had any errors with xstats loading.. and im not sure if im reading that right, but it looks like it only loads the xstats library if the amxx version is below 1.75

N noddy
posted here
Posts: 250
Threads: 19
Joined: Oct 2004
10-04-2009, 09:34 PM #84

>= Surely this is greater or equal to.rnrnSo higher than or equal to 175

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
10-04-2009, 10:38 PM #85

ya my mistake idk why i said below lmao

W whatmee
posted here
Posts: 7
Threads: 0
Joined: Oct 2007
10-05-2009, 04:51 AM #86

sorry guys,rnrnyou didn't read my edit did you ;)rnrnyes we fixed it.rnrnbut, can we compile it (smokenades) to run on 176c ?rnrnthankyou.

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
10-05-2009, 02:24 PM #87

hmmm it wont compile on the stock 1.76c cause of hamsandwich.nnbut if youre compiling it locally, you might be able to download 1.8.1 and stick the hamsandwich files into the 1.76c directory structure ...possible it might work, but im not sure if anything else in the plugin needed an amxx version newer then 1.76c

W whatmee
posted here
Posts: 7
Threads: 0
Joined: Oct 2007
10-05-2009, 02:54 PM #88

so what files are needed for hamsandwich?

W whatmee
posted here
Posts: 7
Threads: 0
Joined: Oct 2007
10-05-2009, 03:05 PM #89

NVM,rnrnfound them (windows search) rnthanks for the DO, once again.rnrnit did compile in 176c, just need to test on server tonight.rnrnthanks again.

N noddy
posted here
Posts: 250
Threads: 19
Joined: Oct 2004
10-06-2009, 09:48 AM #90

my curiosity why run 176c ? and not 181 ?

W whatmee
posted here
Posts: 7
Threads: 0
Joined: Oct 2007
10-06-2009, 02:30 PM #91

not my choice.ni am working the others to update.

N netmad
posted here
Posts: 24
Threads: 5
Joined: May 2009
11-20-2010, 10:18 PM #92

how to change code become napalm gernade??

W webmaze
posted here
Posts: 35
Threads: 3
Joined: Apr 2008
11-21-2010, 03:32 PM #93

i've modified an old version to act as a an-m14 incendiary hand grenade, not a napalm or molotov, maybe you could change the models and the sound of glass breaking. let me know if you need it. kind regards.nnZeta

dimon1052
posted here
Posts: 65
Threads: 15
Joined: Sep 2012
02-19-2015, 10:23 AM #94

I use on my server amxmodx 1.8.2nnL 02/19/2015 - 16:12:12: [HAMSANDWICH] Failed to retrieve vtable for "player", hook for "func_HamSpawn" not active.nL 02/19/2015 - 16:12:12: [AMXX] Run time error 10 (plugin "dod_smokegrenade2.amxx") (native "RegisterHam") - debug not enabled!nL 02/19/2015 - 16:12:12: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

F Fysiks
posted here
Posts: 108
Threads: 3
Joined: Aug 2007
02-24-2015, 10:50 PM #95
I use on my server amxmodx 1.8.2rnrnL 02/19/2015 - 16:12:12: [HAMSANDWICH] Failed to retrieve vtable for "player", hook for "func_HamSpawn" not active.rnL 02/19/2015 - 16:12:12: [AMXX] Run time error 10 (plugin "dod_smokegrenade2.amxx") (native "RegisterHam") - debug not enabled!rnL 02/19/2015 - 16:12:12: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
rnrnAre you running on Linux? If yes, you probably need to replace your hamdata.ini with this one (right click and select Save As).

dimon1052
posted here
Posts: 65
Threads: 15
Joined: Sep 2012
02-27-2015, 05:51 PM #96

Thank you!

dimon1052
posted here
Posts: 65
Threads: 15
Joined: Sep 2012
10-30-2015, 03:08 AM #97

L 10/30/2015 - 09:11:15: [FAKEMETA] Invalid entitynL 10/30/2015 - 09:11:15: [AMXX] Run time error 10 (plugin "dod_smokegrenade2.amxx") (native "pev") - debug not enabled!nL 10/30/2015 - 09:11:15: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

dimon1052
posted here
Posts: 65
Threads: 15
Joined: Sep 2012
10-30-2015, 03:11 AM #98

amxmodx 1.8.3 nmetamod 1.21nLinuxnnMy amxx.cfgnnamx_debug 2

G Guard
posted here
Posts: 5
Threads: 1
Joined: Jan 2016
01-19-2016, 01:45 AM #99

Because this plug-in , the server crash?

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