DoD DropGrenades 2
by Wilson [29th ID] · 2007-04-07 · 93 replies · 35402 views · 661 downloads
From the first post
rn Rewritten by Wilson [29th ID]
rn Original Plugin by Firestorm
rn
rn DESCRIPTION
rn Upon death, if a player has a grenade, it will drop on the ground like his weapon,
rn for someone else to pick up. Also features the ability to drop a grenade by pressing
rn the "drop" key while alive, for someone else to pick up.
rn
rn FEATURES
rn -If you pick up an enemy grenade, you actually get the enemy grenade (not another one of your team's)
rn -Specify whether the user must hold USE key to pick up grenade (more realistic).
rn -Adjust the time the grenades stay on the ground. Default is the same as the time weapons stay.
rn -Enable or Disable dropping grenades while alive
rn -Automatically compatible with Zor's Smoke Grenade Plugin
rn -Specify whether a grenade model is dropped or an "Ammo Box" model
rn -Enable or Disable effects on the dropped grenade to make it more visible (2 types)
rn -Control Maximum amount of grenades able to be picked up
rn
rn CVARS
rn dod_dropgrenades2 <0/1>
rn Enable or Disable the plugin
rn
rn dod_dropgrenades2_fx <0/1/2>
rn 0 is no effects, 1 is firefly effects, 2 is green glow
rn
rn dod_dropgrenades2_mdl <1/2>
rn 1 is regular grenade model, 2 is ammo box
rn
rn dod_dropgrenades2_stay <#>
rn How long dropped grenades stay on the ground. 21 is default, which is how long
rn weapons stay on the ground.
rn
rn dod_dropgrenades2_use <0/1>
rn 1 forces client to press USE key to pick up grenade
rn
rn dod_dropgrenades2_max <#>
rn How many grenades can be held in total
rn
rn dod_dropgrenades2_drop <0/1>
rn Setting to 1 (default) allows players to drop their grenades while alive,
rn by pressing the drop key
rn
rn DISCLAIMER
rn This plugin does not make you better at throwing grenades.
rn If you are a noob at throwing grenades, it is best not to throw them.
The thread
All 94 posts from 25 people on DoD DropGrenades 2, kept as they were written.
Threads: 57
Joined: Oct 2005
DOD DROP GRENADES 2rn Rewritten by Wilson [29th ID]rn Original Plugin by Firestormrn rn DESCRIPTIONrn Upon death, if a player has a grenade, it will drop on the ground like his weapon,rn for someone else to pick up. Also features the ability to drop a grenade by pressingrn the "drop" key while alive, for someone else to pick up.rn rn FEATURESrn -If you pick up an enemy grenade, you actually get the enemy grenade (not another one of your team's)rn -Specify whether the user must hold USE key to pick up grenade (more realistic).rn -Adjust the time the grenades stay on the ground. Default is the same as the time weapons stay.rn -Enable or Disable dropping grenades while alivern -Automatically compatible with Zor's Smoke Grenade Pluginrn -Specify whether a grenade model is dropped or an "Ammo Box" modelrn -Enable or Disable effects on the dropped grenade to make it more visible (2 types)rn -Control Maximum amount of grenades able to be picked uprn rn CVARSrn dod_dropgrenades2 <0/1>rn Enable or Disable the pluginrnrn dod_dropgrenades2_fx <0/1/2>rn 0 is no effects, 1 is firefly effects, 2 is green glowrn rn dod_dropgrenades2_mdl <1/2>rn 1 is regular grenade model, 2 is ammo boxrn rn dod_dropgrenades2_stay <#>rn How long dropped grenades stay on the ground. 21 is default, which is how longrn weapons stay on the ground.rnrn dod_dropgrenades2_use <0/1>rn 1 forces client to press USE key to pick up grenadern rn dod_dropgrenades2_max <#>rn How many grenades can be held in totalrn rn dod_dropgrenades2_drop <0/1>rn Setting to 1 (default) allows players to drop their grenades while alive, rn by pressing the drop keyrn rn DISCLAIMERrn This plugin does not make you better at throwing grenades.rn If you are a noob at throwing grenades, it is best not to throw them.
Threads: 27
Joined: Apr 2006
Nice disclaimer Wilson :P I'm installing this right now :) Also nice features... I'm gonna love this one
-Specify whether the user must hold USE key to pick up grenade (more realistic).Laugh at everyone running over the nades and wonder why it wasn't picked up :PrnrnEDIT: I got these errors when compiling on the Amx Mod X site.....rn
/home/groups/amxmodx/tmp3/php2Z9WcX.sma(406) : error 017: undefined symbol "AMMO_GREN"rn/home/groups/amxmodx/tmp3/php2Z9WcX.sma(406) : error 088: number of arguments does not match definitionrnrnEDIT 2: I tried it out just there and I can't actually throw nades and when you die you don't drop the nades... Also I can drop the nades but I have infinite nades after I drop one... I've got 2 screenshots of it if you want to se them... I'll post them up if you want to see them... Also I love the dropping of the nades... Very nice touchrnrnEDIT 3: Also this is for a linux box :P
Threads: 10
Joined: Apr 2005
Invalid CVAR pointernL 04/07/2007 - 05:29:13: [AMXX] Run time error 10 (plugin "dod_dropgrenades2.amxxnnnI get the same issues that SR} *Raggy* has when I tried this plugin out....great job thou and definetly a great idea on dropping your nades. Look foward seeing this plugin updated, will be great.nn*Also a linux box
Threads: 57
Joined: Oct 2005
{SR} *Raggy*, you are getting those two errors because those compilers do not have the latest version of dodconst.incrnrnGo to that line, 406, and replace AMMO_GREN with 9rnThen it will compile fine. And tell that compiler to get with the times.rnrnjason, I don't know how you could possibly get a CVAR pointer error..I just compiled based on the above instructions at dodplugins compiler and amxx compiler and it worked fine.rnrnAs far as it not working on a linux box, the reason you get so many nades is because of it not updating the ammo based on the problem I just solved two paragraphs up. Try it again and I'm sure it will work. There's no pdata in this plugin so I don't see why it wouldn't work on a linux box.
Threads: 5
Joined: Mar 2007
Nice finally out, but needs abit more work on it.rnrnIf you drop a nade by pressing drop key it will drop and then u will have unlimited nades that you cant trow.rnrnYou cant pick up nades, enemies or teamates or urs.
Threads: 57
Joined: Oct 2005
See, that doesn't happen for me at all. Anwari are you running a linux box? Perhaps that is the source of the problem after all.
Threads: 5
Joined: Mar 2007
its a linux server, so its not going to work for me? :(rnrnThe plugin works fine, it runs but it just doesnt let you pick up nades.
Threads: 10
Joined: Apr 2005
Ill try it again.....but sounds like a linux issue.
Threads: 47
Joined: Apr 2007
i cant get this to compile and if someone gets killed there are no nades dropped can you helprnrnRegardsrnrnrnBlobby
Threads: 27
Joined: Apr 2006
Ah I tried the one after all the above posts and now I'm getting people killing teammates yet FF is off on my server... And it doesn't leave the nades down on the ground when you die :PrnrnAlso did you upload a new version of this? Cause I'm pretty sure it was the same version as yesterday... I thought you uploaded a new one cause of this...rn
As far as it not working on a linux box, the reason you get so many nades is because of it not updating the ammo based on the problem I just solved two paragraphs up. Try it again and I'm sure it will work. There's no pdata in this plugin so I don't see why it wouldn't work on a linux box.
Threads: 57
Joined: Oct 2005
This has nothing to do with friendly fire...
Threads: 27
Joined: Apr 2006
I know this doesn't have anything to do with FF but it just started happening when I added this plugin back in but it seems to be gone again...
Threads: 103
Joined: May 2005
i have to say..nnusing the AMMO_GREN const is quite sloppy :P forcing ppl to either download the unofficial file or edit the code themselves for it to work shouldnt be required......nnyou should just add a #define for it till the new dodconst file is released with amxx...
Threads: 5
Joined: Mar 2007
hoping this plugin gets fixed soon.
Threads: 1
Joined: Mar 2007
n22:32:04 og L 04/11/2007 - 01:31:21: [META] ERROR: Plugin didn't set meta_result: fakemeta_amxx.dll:DispatchTouch()n22:32:04 og L 04/11/2007 - 01:31:21: [META] ERROR: Plugin didn't set meta_result: fakemeta_amxx.dll:DispatchTouch()n22:32:04 og L 04/11/2007 - 01:31:22: [META] ERROR: Plugin didn't set meta_result: fakemeta_amxx.dll:DispatchTouch()nnnnL 04/11/2007 - 01:26:04: [AMXX] Run time error 10 (plugin "dod_dropgrenades2.amxx") (native "get_pcvar_num") - debug not enabled!nL 04/11/2007 - 01:26:04: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).nL 04/11/2007 - 01:26:04: Invalid CVAR pointernnnno body is able to pickup grenades in my server :-(Threads: 47
Joined: Apr 2007
I have seen this working on a french linux server and the axis had axis nades and the british had british nades and so on and so forth but i have searched far and wide for this on a linux server and cant find a single thing can anyone tell meif this one will be fixed eventuallyrnrnrnThanksrnrnBlobbyrnrnrnThe Blob Will Be Bc
Threads: 47
Joined: Apr 2007
i redownloaded this to see if it was an error at my end so i used and online compiler and got his errornnYour plugin failed to compile! Read the errors below:nnWelcome to the AMX Mod X 1.76-300 Compiler.nCopyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Teamnn/home/groups/amxmodx/tmp3/phpW5bRXn.sma(406) : error 017: undefined symbol "AMMO_GREN"n/home/groups/amxmodx/tmp3/phpW5bRXn.sma(406) : error 088: number of arguments does not match definitionnn2 Errors.nCould not locate output file /home/groups/amxmodx/public_html/websc3/phpW5bRXn.amx (compile failed).nnn182725 successful compiles to date.n100628 failed compiles to date.nOld compiler: 101980 compiles before decommission.nThis tool by: David "BAILOPAN" Anderson.nnI dont know what it means but i though maby it might help you guys fix itnnRegards nnblobby
Threads: 54
Joined: May 2005
i redownloaded this to see if it was an error at my end so i used and online compiler and got his errorn nYour plugin failed to compile! Read the errors below:n n/home/groups/amxmodx/tmp3/phpW5bRXn.sma(406) : error 017: undefined symbol "AMMO_GREN"n/home/groups/amxmodx/tmp3/phpW5bRXn.sma(406) : error 088: number of arguments does not match definitionnn n
;4846'] you are getting those two errors because those compilers do not have the latest version of dodconst.incn nGo to that line, 406, and replace AMMO_GREN with 9nThen it will compile fine. And tell that compiler to get with the times.n nPlease read the posts from the beginning to understand what is going on...n n
i have to say..n nusing the AMMO_GREN const is quite sloppy :P forcing ppl to either download the unofficial file or edit the code themselves for it to work shouldnt be required......n nyou should just add a #define for it till the new dodconst file is released with amxx...
Threads: 47
Joined: Apr 2007
I dont understand nm i will just wait untill i see someone post good feed back for linux box thanks anywaynnRegardsnnBlobby
Threads: 1
Joined: Mar 2007
Hes saying replace AMMO_GREN with the number 9 then compile it. rnrnAlso any feed back as to why noone can pickup nades on my servers and we get those errors everytime someone walks over a nade?
Threads: 103
Joined: May 2005
nnwhat version of amxx are you running??n22:32:04 og L 04/11/2007 - 01:31:21: [META] ERROR: Plugin didn't set meta_result: fakemeta_amxx.dll:DispatchTouch()n22:32:04 og L 04/11/2007 - 01:31:21: [META] ERROR: Plugin didn't set meta_result: fakemeta_amxx.dll:DispatchTouch()n22:32:04 og L 04/11/2007 - 01:31:22: [META] ERROR: Plugin didn't set meta_result: fakemeta_amxx.dll:DispatchTouch()nno body is able to pickup grenades in my server :-(nL 04/11/2007 - 01:26:04: [AMXX] Run time error 10 (plugin "dod_dropgrenades2.amxx") (native "get_pcvar_num") - debug not enabled!nL 04/11/2007 - 01:26:04: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).nL 04/11/2007 - 01:26:04: Invalid CVAR pointern
Threads: 37
Joined: Mar 2007
hes running amxx 1.76d
Threads: 103
Joined: May 2005
hmm odd nnput debug after the plugin name in the plugins.ini file.. then it should return exactly what line the problem is on..
Threads: 1
Joined: Mar 2007
rnL 04/13/2007 - 15:31:47: Invalid CVAR pointerrnL 04/13/2007 - 15:31:47: [AMXX] Displaying debug trace (plugin "dod_dropgrenades2.amxx")rnL 04/13/2007 - 15:31:47: [AMXX] Run time error 10: native error (native "get_pcvar_num")rnL 04/13/2007 - 15:31:47: [AMXX] [0] dod_dropgrenades2.sma::cvar_smoke (line 260)rnL 04/13/2007 - 15:31:47: [AMXX] [1] dod_dropgrenades2.sma::pickup_nade (line 360)rnL 04/13/2007 - 15:31:47: [AMXX] [2] dod_dropgrenades2.sma::hook_Touch (line 213)rnThreads: 103
Joined: May 2005
well it seems they might all have to do with the cvar for whether or not smoke grenades are on...nnnwhich might cause a problem when getting the cvar pointer if you dont have the smoke nade plugin running.. nnot really sure.. have to wait for wilson to comment on it i guess :-)nnn** and wilson...nnthis catches my eye:n
stock cvar_enabled() return get_pcvar_num( g_cvarEnabled );nstock cvar_effects() return get_pcvar_num( g_cvarEffects );nstock cvar_nade_model() return get_pcvar_num( g_cvarNadeMdl );nstock cvar_require_use() return get_pcvar_num( g_cvarUse );nstock cvar_max_nades() return get_pcvar_num( g_cvarMaxNades );nstock cvar_drop() return get_pcvar_num( g_cvarDrop );nstock cvar_smoke() return get_pcvar_num( g_cvarSmoke );whats the reason for making stocks for each one?nnwhen you go and use if statements on the stocks... seems like its totally unneccesary.. when you could just call the get_pcvar_num in the if statement...nnjust seems like extra stuff for the same result...nnlike:nif( !cvar_drop() ) return PLUGIN_CONTINUE;nwhy not just:nif( !get_pcvar_num(g_cvarDrop) ) return PLUGIN_CONTINUE;nnand then like:nif( cvar_effects() == 1 )n {n set_pev( ent, pev_effects, EF_BRIGHTFIELD );n return 1;n }n else if( cvar_effects() == 2 )n {nn........nncould just call the pcvar once thru a switch instead of calling the stock twice and the pcvar twicen switch(get_pcvar_num(g_cvarEffects)n {n case 1:{n set_pev( ent, pev_effects, EF_BRIGHTFIELD );n return 1;n }n case 2: {n set_pev( ent, pev_renderfx, kRenderFxGlowShell );n set_pev( ent, pev_renderamt, 125.0 );n set_pev( ent, pev_rendermode, kRenderTransAlpha );n set_pev( ent, pev_rendercolor, {0.0, 255.0, 0.0} );n return 1;n }n }nn.....Threads: 24
Joined: Oct 2006
If I spawn with 2 grenades, I can throw the 1st one and still drop 2 more. Or throw one, drop one and throw a 3rd.rnrnps, I can't pick up nades either and get the same server errors as Spectral2 whether the smokegrenades cvar is on or off. (Windows, Amxx 1.76d)
Threads: 0
Joined: Apr 2005
If I spawn with 2 grenades, I can throw the 1st one and still drop 2 more. Or throw one, drop one and throw a 3rd.nnps, I can't pick up nades either and get the same server errors as Spectral2 whether the smokegrenades cvar is on or off. (Windows, Amxx 1.76d)nnnIf this is happen and you have that plugin enabled. Move this plugin below that smoke grenade plugin in the plugins.ini list.nnLinux fix and little fixes: http://forums.alliedmods.net/showpost.php?p=465836&postcount=5
Threads: 24
Joined: Oct 2006
I don't use the smokegrenade plugin. I just tried the cvar setting at both options for testing.
Threads: 0
Joined: Apr 2007
So does this plug in work or not?.rnI put it in the server but i cant pick up the nades,and only axis drop there nades.rnI thought it got fixed since its version 2 ?
Threads: 5
Joined: Mar 2007
This plugin is currently being worked on to get fixed for Linux users by team06rnHe fixed the problem and now it should compile withouth errors, and hes working on fixin some bugs. But he needs our help to notify them with any little bugs or problems this has, so put this on your servers and post the bugs on this site so he can get it fixed 1 by 1 and make it work perfectly.rnrnhttp://forums.alliedmods.net/showthread.php?t=53634&highlight=dod+nadernrn:D
Threads: 47
Joined: Apr 2007
This plugin is currently being worked on to get fixed for Linux users by team06rnHe fixed the problem and now it should compile withouth errors, and hes working on fixin some bugs. But he needs our help to notify them with any little bugs or problems this has, so put this on your servers and post the bugs on this site so he can get it fixed 1 by 1 and make it work perfectly.rnrnhttp://forums.alliedmods.net/showthread.php?t=53634&highlight=dod+nadernrn:DrnrnOk i tried this plugin just now and i got nothing at all the plugin was running but non of the cvars worked and no one droped grenades if you hear any more about this plugin dont hesitate to contact me for testing im happy to help.rnrnRegardsrnrnBlobby
Threads: 24
Joined: Oct 2006
The old plugin still works. So you could just use that one until the bugs are out of this one.rnrnI also noticed that it will only drop 1 nade, even if the player is carrying 2. Is this by design or an oversight?
Threads: 47
Joined: Apr 2007
I had this version originaly and had loads of problems you might want to try the version i posted in request for plugins it didnt work for me as im linux but it maby will work for you the guy who gave it to me said it needed 6 lines of code changing i cant code so there for i posted it here to see if anyone could fix it he didnt say what the code was like but maby someone could do it.nnRegardsnnBlobby
Threads: 57
Joined: Oct 2005
Vet, yeah it only drops one even if you had two...if it dropped two for every rifleman..waaay to many entities. And your server would have explosions left and right.
Threads: 54
Joined: May 2005
;5160']Vet, yeah it only drops one even if you had two...if it dropped two for every rifleman..waaay to many entities. And your server would have explosions left and right.n nHAHA, or imagine on my server, where I give Rifleman/Grenadier 5 grenades each !!n nbut hey, instead of dropping multiple nades, why not "store" the "amount" inside of the entity (or a 2D array), leaving just the one nade to show, but as you pick it up, you "get" the number of nades "stored"
Threads: 30
Joined: Sep 2006
man imagine people with 5 nades, a 32 slot server on dod_orange (#1 voted map on our server), my god it would be massacre. AND still have the ability to pick up more nades lol
Threads: 0
Joined: Apr 2007
ok so i currently installed the dropgernades2,and it dident work,only axis drop nades and u cant even pick them up.rnrn So this one u putting here anwari works?,the u say is currently beeing worked on?.I mean iam not even sure what program my server is runnig,but out of all i read it should be linux.rnrn because iam having problems with it,sorn the bugs for me arernif u drop a nade u get unlimited nades and cant throw your own nades no more.rnonly axis drop there nadesrnand,u cant even pick any nades that drop at all....rnrnso hophully that helps.rnrnrn:P
Threads: 24
Joined: Oct 2006
I got rid of the server errors shown in post #24 and am now able to pickup nades by changing the line :rn
g_cvarSmoke = get_cvar_pointer( "dod_smokegrenades" );rntorng_cvarSmoke = register_cvar( "dod_smokegrenades", "0" );rnHowever, the nade counts are erratic. Sometimes I throw 1 and it decrements 2. Or if I 'drop' one, it doesn't appear, but decrements to 0. Then if I pick 1 up, i get credited 2 nades. And one time I ended up with 3 sticks and 4 handgrenades. So its getting closer.Threads: 0
Joined: Apr 2007
so for sure its that if u use linux thats why its not working?.rnive been to other dod servers where i see it working fine!,they drop nades both sides and u can pick them up and what not,i wish it worked on my server.rnrn i guess i have linux server ohh well,hophully u guys get it working good luckrn :P
Threads: 54
Joined: May 2005
However, the nade counts are erratic. Sometimes I throw 1 and it decrements 2. Or if I 'drop' one, it doesn't appear, but decrements to 0. Then if I pick 1 up, i get credited 2 nades. And one time I ended up with 3 sticks and 4 handgrenades. So its getting closer.n nwell, without looking at the code or trying it out personally, I do think I know what the issue is... and I have had trouble with it myself until I "fixed" it...n nThe trouble is the "touch" and the fact that it occurs ALOT for what your brain easily thinks is ONE instance... to the engine is anywhere from 3+ n nA boolean flag needs to be utilized to allow a section of code to run ONCE with some sort of delay routine ... so then you pretty much have something along these lines...n n
nnew bool:ok_to_run_again[33]npublic some_code(id,...)n{n //do somethingn if(ok_to_run_again[id])n {n ok_to_run_again[id] = falsen //run some coden set_task(5.0,"enable_runagain",id)n }n}n npublic enable_runagain(id)n{n ok_to_run_again[id] = truen}nThreads: 24
Joined: Oct 2006
This part of the code doesn't look right...rnrn
// Alliesrn if( ( !smoke_enabled && ( equal( szMdl, g_szModels[handgrenade] ) || equal( szMdl, g_szModels[alliedammo] ) || equal( szMdl, g_szModels[millsbomb] ) ) )rn || ( smoke_enabled && team == ALLIES ) )rn {rn[COLOR="Red"] if( total_nades < MAX_DEFAULT ) give_item( id, g_szHandGrenade );rn elsern {rn set_nade_ammo( id, DODW_HANDGRENADE, nade_ammo[ALLIES-1] + 1 );[/COLOR] rn // Play Weapon Pickup Soundrn play_pickup_sound( id );rn }rn }rn rn // Axisrn else if( ( !smoke_enabled && ( equal( szMdl, g_szModels[stickgrenade] ) || equal( szMdl, g_szModels[axisammo] ) ) )rn || ( smoke_enabled && team == AXIS ) )rn {rn[COLOR="red"] if( total_nades < MAX_DEFAULT ) give_item( id, g_szStickGrenade );rn elsern {rn set_nade_ammo( id, DODW_STICKGRENADE, nade_ammo[AXIS-1] + 1 );[/COLOR] rn // Play Weapon Pickup Soundrn play_pickup_sound( id );rn }rn }rnIt says to 'give a nade' or else 'add one' to the HUD.Threads: 103
Joined: May 2005
with the touch thing.. i ran into that problem when i was writing DoD Tackle.. nni did something like:nn
//global variable:nnew Float:hitTime[33]nnn//..then in the touch function after a bunch of checks:nif(get_gametime() > hitTime[id])n {n .....yada yadann hitTime[id] = get_gametime() + 1.0n n ..yada yada n nnnso basically thats allowing it to only be called once every second..nwhich works well enough to stop each 'tackle' from counting as 5 or 6 tackles lol..Threads: 54
Joined: May 2005
with the touch thing.. i ran into that problem when i was writing DoD Tackle.. n ni did something like:n nn nnice, less code then mine..n nso basically thats allowing it to only be called once every second..nwhich works well enough to stop each 'tackle' from counting as 5 or 6 tackles lol..//global variable:nnew Float:hitTime[33]n n n//..then in the touch function after a bunch of checks:nif(get_gametime() > hitTime[id])n {n .....yada yadan n hitTime[id] = get_gametime() + 1.0n n ..yada yada n n
Threads: 57
Joined: Oct 2005
Vet, that code is right.rnrnMAX_DEFAULT is 3 -- the max nades that can be given to a client in dod based on the message WeaponList.rnrnIf the client has less than 3 you can just give_item() and it will give him the nade, update his hud, and make the pickup sound.rnrnIf client has 3 or more, you have to do it manually by updating his hud and pdata (dod_set_user_ammo does that, along with AmmoX) and make the pickup sound yourself.
Threads: 24
Joined: Oct 2006
;5239']rnIf the client has less than 3 you can just give_item() and it will give him the nade, update his hud, and make the pickup sound.rnrnOh OK, you're saying the give_item function itself will make the HUD update and play the pickup sound, right?rnrnI'm still trying to figure out why I have the problem I mentioned in post #26 (line 1) rn
If I spawn with 2 grenades, I can throw the 1st one and still drop 2 more. Or throw one, drop one and throw a 3rd.rnand thought I might be on to something.
Threads: 0
Joined: Apr 2007
u guys are trying to make this work for linux right?... cuz my server is linux,yet i have a old friend of mine that has linux server and the nadedrops works.he said something about make sure u get the right version of dropnades,to match your amxmodx version,i think.something about there is so much droopnades out there.rnrn is there more versions older ones that may work?.rnor is there somewhere esle they may have this plug in?
Threads: 2
Joined: Aug 2006
This plugin i get a problem with on a windows server. Similar problem to everyone else's It's not allowing us to pick up any nades. But the fact that they are not glowing all the time on a server reboot, is nice. The old one did that no matter what setting you had it on. Looking for a version of this plugin that works.
Threads: 27
Joined: Apr 2006
They are trying to find the problems scorpion
Threads: 30
Joined: Sep 2006
hm, anyone successful in compiling this? I got this errorrnrntemp.sma(406) : error 017: undefined symbol "AMMO_GREN"rntemp.sma(406) : error 088: number of arguments does not match definitionrnrn2 Errors.rnCould not locate output file ../amxx/dod_dropgrenades2.1.76c.amx (compile failed).
Threads: 27
Joined: Apr 2006
Replace the AMMO_GREN with 9 and it'll compile. It was explained in page 1
Threads: 30
Joined: Sep 2006
ah my mistake, thanks.
Threads: 27
Joined: Apr 2006
Np got it from the first page when I had the same problem :P
Threads: 47
Joined: Apr 2007
is this fixed now or are we still waiting.'rnrnRegardsrnrnBlobby
Threads: 57
Joined: Oct 2005
If you have a linux server, try this thread:rnhttp://forums.alliedmods.net/showpost.php?p=465836&postcount=5rnrnSupposedly it is fixed and working, by teame06.rnrnNow, it doesn't have every feature my original version has, but the differences aren't as big (ie. if you have an axis grenade on allies, you're gonna drop an allied grenade)
Threads: 47
Joined: Apr 2007
It still doesent work m8 not at all ive tried every thing recompiling it re downloading it every thing no one drops nades no where and nothing happens the only thing what works on thsi plugin is when some one dies it looks like there sprit is going to heaven with those little fire fly effects LMAO nnRegardsnnBlobby nnP.s i can get a version of drop nades witch works on linux but it has missing code i did post the plugin here to see if anyone could fix it i even had ago myself " wasnt a good idea lol " but i have the non touched by me version so if anyone thinks they can fix it let me know ASAP.nnRegardsnnBlobby
Threads: 2
Joined: Aug 2006
Plugin is working great! Good job to whomever fixed it.rnrnRunning on both windows and linux.
Threads: 27
Joined: Apr 2006
The one from the first page or the one on the Allied Mods forums??
Threads: 12
Joined: Jul 2006
The only thing that doesn't work for me is that it doesn't pick up grenades. Any idea why?
Threads: 54
Joined: May 2005
The only thing that doesn't work for me is that it doesn't pick up grenades. Any idea why?nAre you hitting the USE button or simply running over the top of them ??
Threads: 12
Joined: Jul 2006
Both, and they're both not working.
Threads: 0
Joined: Oct 2006
I got the same problem =/
Threads: 54
Joined: May 2005
PM Wilson and have him check on the status of his releases... he is the man to really answer these issues...
Threads: 2
Joined: Jun 2007
urm this may seem realy stuppid of me but how does it go in cvar? rnrn"dod_dropgrenades2" "0" "u"rnrnorrnrn"dod_dropgrenades2" "1" "u"rnrnto turn it on?!? :confused:
Threads: 54
Joined: May 2005
urm this may seem realy stuppid of me but how does it go in cvar? n n"dod_dropgrenades2" "0" "u"n norn n"dod_dropgrenades2" "1" "u"n nto turn it on?!? :confused:n nin what file are you putting this code ??n nin amxx.cfg you do not need to "u" you simply need
"dod_dropgrenades2" "1"n nif you are trying to add this to a menu (cvars.ini) then you need a bit more "info" ...n"dod_dropgrenades2" "0" "1" "u"Threads: 2
Joined: Jun 2007
ok well i got it wroking but only thing is when the grenades do fall on floor and the drop grenade does work but we cantpick them up i did the cvar to pick em up but it not working btw dis is what i put in with the othere cvars : "dod_dropgrenades2_use" "1"
Threads: 37
Joined: Aug 2006
so does this or does this not work correctly with Linux based servers now ?rnrnit never worked on mine. yet.
Threads: 47
Joined: Apr 2007
If you go on the amx forums there is a version of this there under dod that works i am using it at the moment im sure its made by vetnnok to save you time here is a linknnhttp://forums.alliedmods.net/showthread.php?p=469734nnIt works a treat
Threads: 37
Joined: Aug 2006
thank you blobby.rnrnI was hoping for one that worked some day.rnrnthis should be the saving grace.
Threads: 47
Joined: Apr 2007
No problems m8 im always happy to help where i can
Threads: 1
Joined: Sep 2007
hi iinstal this plugin and it working alliƩ and axis drop grende when dierncould you tell me how to do to have the green color around the nade when are dropped thanks
Threads: 57
Joined: Oct 2005
Read the instructions before posting these kinds of questions please. It's in the first post of this thread, where you download it.nn
dod_dropgrenades2_fx <0/1/2>n0 is no effects, 1 is firefly effects, 2 is green glow
Threads: 1
Joined: Sep 2007
i put the fx on 2 but no green volor round the grenadesrnthat the way i askingrni write dod_dropgrenades2_fx 2
Threads: 47
Joined: Apr 2007
this plugin dosent seem to have the effect you are looking for thsi one has the option to have like fire flys fly around the nade when its dropped or to have them look like a ammo crate i do know the old version of this has what you are looking for but it isnt on here you would be best looking at the amx forums for that one or ask who made this if they would incorporate that code for younnRegardsnnBlobby
Threads: 1
Joined: Sep 2007
so wath mind green glow?rnit is not green sphere around the grenade
Threads: 47
Joined: Apr 2007
Yeah that what im saying there isnt any code for the green sphere in that plugin u will have to ask the plugin maker to add it for you or try doing it your self m8
Threads: 57
Joined: Oct 2005
It's the same as the first dropgrenades plugin..I copied and pasted the code for the glow.nnRAISINS
Threads: 1
Joined: Sep 2007
yes sorry wilson like i wrote beforrni put in cvars ini dod_dropgrenades2_fx 2 and no effect on grenades rndid i should write with the >> or notrnyou mind the code for the glow line 406rnis GREN_AMMO 9 OR GREN AMMO WITH 9rnSorry but my english is no perfect that the way sometime i asking somthingrnevident for you but no easy for mernthanks to help mernif could you tel me exactly wath ave got to change to have the green glow
Threads: 1
Joined: Sep 2007
yes it working now thanksrnone more question it possibleto make one color for eartch team on red one green like an older pluginrnfor me it work well green glow for axis and aliies
Threads: 0
Joined: Mar 2008
I put this plugin into my server, the nades appear on the ground and all that works, the only problem i see so far is that people cant pick up the nades. help please
Threads: 23
Joined: Aug 2007
dod_dropgrenades2_use <0/1>n1 forces client to press USE key to pick up grenadenndod_dropgrenades2_max <#>nHow many grenades can be held in total
Threads: 0
Joined: Mar 2008
ya i did that, it didnt work
Threads: 23
Joined: Aug 2007
f you go on the amx forums there is a version of this there under dod that works i am using it at the moment im sure its made by vetrnrnok to save you time here is a linkrnrnhttp://forums.alliedmods.net/showthread.php?p=469734rnrnIt works a treatrnas posted by blobby
Threads: 0
Joined: Jan 2007
I put this plugin into my server, the nades appear on the ground and all that works, the only problem i see so far is that people cant pick up the nades. help pleasernrnWe have the same problem now. We have updated to AMXX 1.8.0 and I think this was the time where it starts.rnrnIs there any probleme with AMXX 1.8??:confused:
Threads: 23
Joined: Aug 2007
No, im running 1.8 and this plugin works fine for me.
Threads: 0
Joined: Mar 2008
If you have grenade catch in amxx turned on, when you pick up the enemys grenade it spams the "impressive" wave. why not just have the nade be one of you're own teams nades to avoid this ?
Threads: 1
Joined: Jan 2008
when the guys ,rnI can't pick up the nades.......rneverything else seems to workrnrnI have a linex serverrnCan you help?
Threads: 59
Joined: Jan 2007
You might want to provide with some more information to get better help from the developers, coders and people with some knowledge about plugins.rnrnA few things you could try adding to your post:rnrnThe plugins you are using besides this one, your amxmodx version, perhaps add debug to your plugins.ini and see if it forwards any errors.
Threads: 1
Joined: Jan 2008
You might want to provide with some more information to get better help from the developers, coders and people with some knowledge about plugins.rnrnA few things you could try adding to your post:rnrnThe plugins you are using besides this one, your amxmodx version, perhaps add debug to your plugins.ini and see if it forwards any errors.rnrnI use these plugins:rnrnWeaponsMod2.amxxrnamx_parachute.amxxrnadmin_alltalk.amxxrndod_teams.amxxrndod_deathnades.amxxrnrnamxmodx version: 1.8.0.36660rnrnand I don't know how to debug my plugins.ini
Threads: 59
Joined: Jan 2007
To debug your plugins.ini you do as following:rnrn; 3rd Party Plugins herernrnWeaponsMod2.amxxrnamx_parachute.amxxrnadmin_alltalk.amxxrndod_teams.amxxrndod_deathnades.amxxrndod_dropgrenades.amxx debug ; Plugin used to drop nades on clients_deathrnrnBasicly what you do is place a space behind the *.amxx part and then type debug. It's as simple as that. I never used dod_dropgrenades nor dod_deathnades, but do me one favour and comment dod_deathnades.amxx by placing a ; infront of the plugin, so the list will show like:rnrnWeaponsMod2.amxxrnamx_parachute.amxxrnadmin_alltalk.amxxrndod_teams.amxxrn; dod_deathnades.amxx <- this plugin is now temp. disabledrndod_dropgrenades.amxx rnrnAfter the change, change the map by type amx_map dod_mapname in your console. Let me know if that works.
Threads: 1
Joined: Jan 2008
To debug your plugins.ini you do as following:rnrn; 3rd Party Plugins herernrnWeaponsMod2.amxxrnamx_parachute.amxxrnadmin_alltalk.amxxrndod_teams.amxxrndod_deathnades.amxxrndod_dropgrenades.amxx debug ; Plugin used to drop nades on clients_deathrnrnBasicly what you do is place a space behind the *.amxx part and then type debug. It's as simple as that. I never used dod_dropgrenades nor dod_deathnades, but do me one favour and comment dod_deathnades.amxx by placing a ; infront of the plugin, so the list will show like:rnrnWeaponsMod2.amxxrnamx_parachute.amxxrnadmin_alltalk.amxxrndod_teams.amxxrn; dod_deathnades.amxx <- this plugin is now temp. disabledrndod_dropgrenades.amxx rnrnAfter the change, change the map by type amx_map dod_mapname in your console. Let me know if that works.rnrnthanks for trying to help me tank....I'm new to all this and sometimes it takes a bit for me to follow what you want.rnrnok I gave you the wrong information ..... I have the following in my plugin.inirnrn; Custom - Add 3rd party plugins herernWeaponsMod2.amxxrnamx_parachute.amxxrnadmin_alltalk.amxxrndod_teams.amxxrndod_dropgrenades2.amxx rnrnso do you want me to put dod_dropgredes2.amxx debug in the console? cuz when i do that i get this message : rnrnUnknown command: dod_dropgrenades2.amxrnrnthanks again for your help
Threads: 59
Joined: Jan 2007
thanks for trying to help me tank....I'm new to all this and sometimes it takes a bit for me to follow what you want.rnrnIt's cool dude/chick, thats what we are here for, to help each other.rnrnOk, the command you typed shouldn't be in your console. If you contact your gameserver through FTP (could be through a client like SmartFTP or by a web-based FTP connection from your gameserver host) you will have a bunch of files. Basicly what you want is to go ahead to this link (it shows directory path, so you will have to navigate it manually):rnrndod/addons/amxmodx/configs/plugins.inirnrnNow download plugins.ini to your desktop and open it with notepad/wordpad and go to the bottom of that file. At the bottom it will show you your plugins which you added to the default plugins.rnrnNow just find dod_dropgrenades2.amxx and hit your spacebar once and type debug. Now save the file and upload it back to your gameserver (it will ask to replace the file, just say yes if you are sure these are the only changes made at this time).rnrnNow restart the map and the server will try to see why this plugin is not working. Eventually it will show an error log in dod/addons/amxmodx/logs/ and it will be called something like: error_2008XXXX.logrnrnIf you are smart you either replace or delete the logs before changing the map so you exactly know which logfile the debug is in.rnrnThis is just a general explanation, to keep it rather simple. During coding it's all really watching on typo's and stuff like that. Typing player[32] and player[33] can cause a server to crash, to lag the server or make a plugin not work at all. Debug is a way which tells us that on certain lines in the coding there are some glitches/bugs.rnrnBtw, if you type in console: amx_plugins (by typing amx_plugins 11/21/31/41 you will go to different pages, so first amx_plugins 11, to go to the next page, type amx_plugins 21).rnrnIf you type that command in your console (this is in-game, console) you will be able to see your list of plugins at the end. What does it say with dod_dropgrenades? Running? Bad Load? Unknown?
Threads: 1
Joined: Jan 2008
I'm a he.......rnrnrnI get this error: rnL 08/27/2008 - 07:54:39: -------- Mapchange to dod_donner --------rnthis is what i have (I copied from my hlsw)rnrnCurrently loaded plugins:rn name version author file status rn [ 1] Admin Base 1.8.0.3660 AMXX Dev Team admin.amxx running rn [ 2] Admin Commands 1.8.0.3660 AMXX Dev Team admincmd.amxx running rn [ 3] Admin Help 1.8.0.3660 AMXX Dev Team adminhelp.amxx running rn [ 4] Multi-Lingual System 1.8.0.3660 AMXX Dev Team multilingual.am running rn [ 5] Menus Front-End 1.8.0.3660 AMXX Dev Team menufront.amxx running rn [ 6] Commands Menu 1.8.0.3660 AMXX Dev Team cmdmenu.amxx running rn [ 7] Players Menu 1.8.0.3660 AMXX Dev Team plmenu.amxx running rn [ 8] Teleport Menu 1.8.0.3660 AMXX Dev Team telemenu.amxx running rn [ 9] Maps Menu 1.8.0.3660 AMXX Dev Team mapsmenu.amxx running rn [ 10] Admin Chat 1.8.0.3660 AMXX Dev Team adminchat.amxx running rn [ 11] Anti Flood 1.8.0.3660 AMXX Dev Team antiflood.amxx running rn [ 12] Scrolling Message 1.8.0.3660 AMXX Dev Team scrollmsg.amxx running rn [ 13] Info. Messages 1.8.0.3660 AMXX Dev Team imessage.amxx running rn [ 14] Admin Votes 1.8.0.3660 AMXX Dev Team adminvote.amxx running rn [ 15] NextMap 1.8.0.3660 AMXX Dev Team nextmap.amxx running rn [ 16] Nextmap Chooser 1.8.0.3660 AMXX Dev Team mapchooser.amxx running rn [ 17] TimeLeft 1.8.0.3660 AMXX Dev Team timeleft.amxx running rn [ 18] Pause Plugins 1.8.0.3660 AMXX Dev Team pausecfg.amxx running rn [ 19] Stats Configuration 1.8.0.3660 AMXX Dev Team statscfg.amxx running rn [ 20] DoD Stats 1.8.0.3660 AMXX Dev Team stats.amxx running rn [ 21] DoD Sounds Precache 1.8.0.3660 AMXX Dev Team statssounds.amx running rn [ 22] Weapons Mod 2.0 2.0 TooLz WeaponsMod2.amx running rn [ 23] AMXX Parachute 1.0 KRoT@L (Ported b amx_parachute.a running rn [ 24] admin alltalk 0.1 GORT admin_alltalk.a running rn [ 25] DoD Teams 0.6 tla-nick dod_teams.amxx running rn [ 26] DoD DropGrenades 2 1.0 29th ID dod_dropgrenade debug rn26 plugins, 26 runningrnrnLike i said the plugins seem to work. Just cant pick up the nades.rnrnThanks for the tips on the error logs:D
Threads: 59
Joined: Jan 2007
Im sorry, it seems that I missed something. I feel pretty bad actually for letting you do all that stuff, I missed the part where you said it was already working.....(although what you did is usefull for later when a plugin isn't working and you want to know why)rnrnSo the plugin is working but you can't pick up nades. Only you or also others? Did the check the current amount of grenades you are carrying? Since Allies cant go over holding 3 grenades at one time and axis not over 5 grenades (dont ask my why :D).rnrnIf above is not the case (that you maxed the amount of nades you can carry) you should check on the other plugins. Basicly some plugins can block certain things in other plugins. Like WeaponsMod2.0 blocks every / command of plugins loaded after WeaponsMod2.0 in your plugins.ini file.rnrnTo make sure this is not the case, disable all your third party plugins except for the drop_grenades plugin. Restart the map and see if it works now. If it DOES work and you can pick up nades, then start enabling your other plugins one by one. So enable one, restart map and check if you can still pick up nades. Continue until you can't pick up nades anymore, it's most likely that the last plugin you enabled is causing a glitch with this plugin.rnrnAlso changing the order of your third party plugins sometimes help. If you really want to sort it out and you have a mic, we can go on Ventrilo and see if we can figure it out.rnrnGood luck
Threads: 1
Joined: Jan 2008
well i tried all that stuff tank. And The drop grenades mod wont at all with out the weponds mod.............so your guess is mine:ornrnI think ill try differnt drop nad plugin:(

