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

I'm not sure but,...

by biggzsizzle · 2009-04-14 · 22 replies · 8018 views · 3 downloads

Read the thread (23 posts)

From the first post

I can't exactly find where on this board one goes to make requests,...plz move this post if needed.
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.

biggzsizzle
started this thread
Posts: 14
Threads: 2
Joined: Mar 2009
04-14-2009, 03:15 AM #1

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

biggzsizzle
started this thread
Posts: 14
Threads: 2
Joined: Mar 2009
04-14-2009, 03:21 AM #2

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!

meathead
posted here
Posts: 337
Threads: 23
Joined: Aug 2007
04-14-2009, 08:03 AM #3
biggzsizzle
started this thread
Posts: 14
Threads: 2
Joined: Mar 2009
04-14-2009, 12:01 PM #4

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.

meathead
posted here
Posts: 337
Threads: 23
Joined: Aug 2007
04-15-2009, 07:58 AM #5
biggzsizzle
started this thread
Posts: 14
Threads: 2
Joined: Mar 2009
04-15-2009, 10:54 PM #6

Check above "...I don't wanna have to go to the trouble to have any of the WeaponMods or Custom Supply installed..."rnrnAnymore ideas?

meathead
posted here
Posts: 337
Threads: 23
Joined: Aug 2007
04-15-2009, 11:05 PM #7

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!

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
04-16-2009, 11:13 AM #8

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...

biggzsizzle
started this thread
Posts: 14
Threads: 2
Joined: Mar 2009
04-16-2009, 01:31 PM #9

Yeah man, that's great but also need to incorporate the Brit's too, I don't wanna leave them out lol!

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
04-16-2009, 02:32 PM #10

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////////////////////////////////////////////////////////////////////////////////////////////////////
biggzsizzle
started this thread
Posts: 14
Threads: 2
Joined: Mar 2009
04-16-2009, 07:58 PM #11

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!

biggzsizzle
started this thread
Posts: 14
Threads: 2
Joined: Mar 2009
04-17-2009, 03:24 AM #12

I just found this log file too,...see attatchment below.

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
04-17-2009, 08:19 PM #13

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////////////////////////////////////////////////////////////////////////////////////////////////////
biggzsizzle
started this thread
Posts: 14
Threads: 2
Joined: Mar 2009
04-17-2009, 08:41 PM #14

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!!!

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
04-18-2009, 09:46 AM #15
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 138

biggzsizzle
started this thread
Posts: 14
Threads: 2
Joined: Mar 2009
04-18-2009, 07:39 PM #16

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.

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
04-19-2009, 05:44 PM #17

ok ill look at it asap, i got an exam tuesday so till then iam busy...

biggzsizzle
started this thread
Posts: 14
Threads: 2
Joined: Mar 2009
05-03-2009, 04:11 AM #18

Hey Doc',...any update on this one?

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
05-06-2009, 12:01 PM #19

This this one m8...

biggzsizzle
started this thread
Posts: 14
Threads: 2
Joined: Mar 2009
05-07-2009, 01:23 AM #20

Will test and report, Thank you Sir!

biggzsizzle
started this thread
Posts: 14
Threads: 2
Joined: Mar 2009
05-07-2009, 08:17 PM #21

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.

Dr.G
posted here
Posts: 776
Threads: 75
Joined: Nov 2007
05-08-2009, 11:59 AM #22
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.

biggzsizzle
started this thread
Posts: 14
Threads: 2
Joined: Mar 2009
05-08-2009, 02:23 PM #23

Thanks for the effort man, I really do appreciate it. ;)

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