I'm not sure but,...
by biggzsizzle · 2009-04-14 · 22 replies · 8018 views · 3 downloads
From the first post
rn
rnYou guys, I'm looking for a plugin that enables a "Melee Only" mode for my server.
rnI don't care if it's map-specific, or not. I've searched and read everywhere, and the conclusion I've come up with is that I don't wanna have to go to the trouble to have any of the WeaponMods or Custom Supply installed to have this scenario happen.
rn
rnWhat I'm looking for is to have knives, spades, rockets, zookas and nades ONLY; enabled and disabled; either on the fly, or have it to where I can set it by .cfg file to be on particular maps!
rn
rnEither way is fine as long as it works! I'm willing to test anything that anyone can come up with. We run a linux server with the latest AMXModX and Metamod, so I'm open for anything!
rn
rnMuch thanks and repect in advance to anyone who can help!
rn
rnBiGGz
Added later in the thread
| error_20090416.txt | Config / Docs | 26 KB | 3 dl | Download |
The thread
All 23 posts from 3 people on I'm not sure but,..., kept as they were written.
Threads: 2
Joined: Mar 2009
I can't exactly find where on this board one goes to make requests,...plz move this post if needed.rnrnYou guys, I'm looking for a plugin that enables a "Melee Only" mode for my server.rnI don't care if it's map-specific, or not. I've searched and read everywhere, and the conclusion I've come up with is that I don't wanna have to go to the trouble to have any of the WeaponMods or Custom Supply installed to have this scenario happen.rnrnWhat I'm looking for is to have knives, spades, rockets, zookas and nades ONLY; enabled and disabled; either on the fly, or have it to where I can set it by .cfg file to be on particular maps!rnrnEither way is fine as long as it works! I'm willing to test anything that anyone can come up with. We run a linux server with the latest AMXModX and Metamod, so I'm open for anything!rnrnMuch thanks and repect in advance to anyone who can help!rnrnBiGGz
Threads: 2
Joined: Mar 2009
Ok I'm retarded, to say the least,...the bookmark I have for the board only show one particular thread,...I'm a dumbass, could any MOD plz move this post?nnThank you!
Threads: 23
Joined: Aug 2007
Try the one weapon mod.nhttp://forums.alliedmods.net/showthread.php?p=507619
Threads: 2
Joined: Mar 2009
I have the One Weapon Mod already,...but that's where I run into my problem, 1 weapon.nI need knives, spades, rockets, zookas and nades ONLY.
Threads: 23
Joined: Aug 2007
How about this one?nhttps://www.dodplugins.net/forums/showthread.php?t=242&highlight=weapons
Threads: 2
Joined: Mar 2009
Check above "...I don't wanna have to go to the trouble to have any of the WeaponMods or Custom Supply installed..."rnrnAnymore ideas?
Threads: 23
Joined: Aug 2007
Not from me, you'll need one of our amazing keyboard bangers to make some thing for you. I just change the map configs if there is a map where I do not want certain weapons, or I use the random weapons plugin, and make everyone random. I can't write a plug in yet, so I'm not the one who can help you if you want something other then the above plugins. Sorry!
Threads: 75
Joined: Nov 2007
what do ya want ppl to have? Is it:rnrnAxis team:rnrnspadern2 stickgrenadesrnbazookarnrnAllies:rnrnknifern2 handgrenadesrnbazookarnrnrnor ? Its really easy to do if thats all you want...
Threads: 2
Joined: Mar 2009
Yeah man, that's great but also need to incorporate the Brit's too, I don't wanna leave them out lol!
Threads: 75
Joined: Nov 2007
ok try this it works for brits aswell. Its still beta, please let me know if you get any bugs....rnrn
/* Plugin generated by AMXX-Studio */rn////////////////////////////////////////////////////////////////////////////////////////////////////rn/*rnINFO:rnrnWhen this is turned on all player will get a knife or spade, a bazooka, and 2 grenades. Admins withrnban right can force the plugin on and off via chat. See say commands...rnrnrnrnCVARs:rnrnNote 1 is ON - 0 is OFFrnrn- Plugin on / offrndod_bazooka_only 1rnrn- Kill all when plugin is stopped via /zookamod ??? They will NOT get a death if this is on!rndod_bazooka_only_kill_all 1rnrnrnrnSAY COMMAND:rnrnCan ONLY be accessed by admins with ban rights! When you say /zookamod all players will be stripedrnand given the weapons we want...rnrn- on/offrn/zookamodrnrnrn*/rn////////////////////////////////////////////////////////////////////////////////////////////////////
Threads: 2
Joined: Mar 2009
This is a really awesome start,...it works,...but is there a way to set it so the players can choose the zookas and panzer's by class, and if they dont choose that particular class, then whatever other class they choose will default to the spade or knife.nnSee, as soon as I restart and then join my server, the plugin is already activated,...nIn other words I joined the server, picked a class, and spawned with a Panzerschrek.nThat needs to be changed.nnAlso, when I drop the Panzer' it defaulted my weapon straight to nade, need to change that to spade or knife.nnBut other than those changes, it's awesome! You're doin great!
Threads: 2
Joined: Mar 2009
I just found this log file too,...see attatchment below.
Threads: 75
Joined: Nov 2007
lol yea try this. ive fixed the errors and it will set your knife forward when you hit "drop" + a cvar for auto disable on map change or restart...rnrnrn
/* Plugin generated by AMXX-Studio */rn////////////////////////////////////////////////////////////////////////////////////////////////////rn/*rnINFO:rnrnWhen this is turned on all player will get a knife or spade, a bazooka, and 2 grenades. Admins withrnban right can force the plugin on and off via chat. See say commands...rnrnrnrnCVARs:rnrnNote 1 is ON - 0 is OFFrnrn- Plugin on / offrndod_bazooka_only 0 (See the say command!)rnrn- Kill all when plugin is stopped via /zookamod ??? They will NOT get a death if this is on!rndod_bazooka_only_kill_all 1rnrn- Should the plugin auto disable on map change?rndod_bazooka_only_auto_disable 1rnrnrnrnSAY COMMAND:rnrnCan ONLY be accessed by admins with ban rights! When you say /zookamod all players will be stripedrnand given the weapons we want.rn rnWhat you do with this command is setting dod_bazooka_only to 1 or 0. So dod_bazooka_only dont need rnto be 1 for using this say command!rnrn- on/offrn/zookamodrnrnrnrnCHANGELOG:rnrn18-04-09rnloops fixed (: . added clcmd "drop" to to fire "slot1" and auto disable funcrnrn*/rn////////////////////////////////////////////////////////////////////////////////////////////////////
Threads: 2
Joined: Mar 2009
Hey Bud that works, but is there any way to make the rockets selectable by class instead of everyone having a bazooka, or panzer, or piat???nnThat's the only thing this plugin is lacking. Awesome job though!!!
Threads: 75
Joined: Nov 2007
Hey Bud that works, but is there any way to make the rockets selectable by class instead of everyone having a bazooka, or panzer, or piat???rnrnThat's the only thing this plugin is lacking. Awesome job though!!!rnrnThanks... well yes the class thing is possible but i didnt make cuz i didnt like the idea :D.. But if you just wanna leave the zooka classes alone replace the custom_wpn_load(id) function, starts on line 170, with this:rnrn
public custom_wpn_load(id)rn{rn if(dod_get_user_class(id) == DODC_BAZOOKA || DODC_PANZERJAGER || DODC_PIAT)rn return PLUGIN_CONTINUErn rn new c_team = get_user_team(id)rn rn switch(c_team)rn {rn case ALLIES:rn {rn strip_user_weapons(id)rn rn give_item(id,"weapon_amerknife")rn rn }rn case AXIS: rn {rn strip_user_weapons(id)rn rn give_item(id,"weapon_spade")rn rn }rn }rn return PLUGIN_CONTINUErn}rnrnrnAND remove strip_user_weapons(id) on line 138Threads: 2
Joined: Mar 2009
Ok I tried as you said, but now it's as though the plugin doesn't work.nnNone of the players are stripped of weapons when the command is executed.
Threads: 75
Joined: Nov 2007
ok ill look at it asap, i got an exam tuesday so till then iam busy...
Threads: 2
Joined: Mar 2009
Hey Doc',...any update on this one?
Threads: 75
Joined: Nov 2007
This this one m8...
Threads: 2
Joined: Mar 2009
Will test and report, Thank you Sir!
Threads: 2
Joined: Mar 2009
Ok where to begin,....nn1.Upon executing the command, all classes switched weapons, even bazookas and rocket classes.nn2.The zooka, and rocket classes when switched only have a single nade, nothing more. (These classes should not be effected by this plugin at all except for their pistols.)nn3.All of the rifle classes should still be able to keep their weapon, but not shoot the weapon. Because butt-stocking, and bayoneting are also 'melee' type actions (but not the m1-carbine, because you can't swing it).nnRemember, what I'm trying to have here is a MELEE only mod, not in particularly a BAZOOKA only mod. Let me try and explain it again,...nnWhen the command is executed the following should happen...nn1.All classes should be stripped of the pistols (lugers, colts, and webleys), but be allowed to have and use whatever nade settings are on the server.nn2.All rifle classes (garand, k43, k98, and enfield but not the m1-carbine, it should be stripped) need to have shooting disabled (if possible).nn3.All of these classes (sten, m1-carbine, greasegun, mp40, mp44, thompson, springfield, scopedkar, scopedenfield, mg34, mg42, and bren) should have their main weapon stripped from them and be given knives or spades.nn4.All classes should have the ability to switch between weapons (from knives or spades to nades) and rifle and rocket classes should be able to switch between their primary weapons to knives, nades, or spades.nnI know this seems like a lot. Hell, i don't know if it's even possible to show a weapon, but can't shoot it? You tell me, everything else as far as the command and the plugin disable on map change, work perfectly.
Threads: 75
Joined: Nov 2007
1.Upon executing the command, all classes switched weapons, even bazookas and rocket classes.rnrnhmmm thats odd they didnt on my server..rnrnrnthe rest...well didnt read it. go back to the first version or fix it your self.
Threads: 2
Joined: Mar 2009
Thanks for the effort man, I really do appreciate it. ;)

