Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Pages: [1]   Go Down
  Print  
Author Topic: Weapon rotater  (Read 5973 times) Bookmark and Share
Jr. Member
**
Posts: 11
Offline Offline
WWW
« on: January 20, 2007, 10:28:33 AM »

I was looking for mod or 3rd party software for CoD2-server to share sniper and/or shotgun.  I could'n find any tools or application for that but we found that B3 could be capable of doing that sharing. And now, there is version 1.0 finished. I was not going to advertise that and no public release was planned. Seems to me that there could be other users willing to try that so go ahead and try it!

Weapon-Rotater consists of two parts: B3-plugin and CoD2-serverside mod.
 
B3-plugin (B3 1.1.2d)
You can download B3-plugins here .

Extract weaponrotater into B3-directory. Add plugins into your B3-configuration (b3.xml):
Code:
<plugin name="sniperwd" priority="13" config="@b3/extplugins/conf/sniperwd.xml"/>
<plugin name="shotgunwd" priority="14" config="@b3/extplugins/conf/shotgunwd.xml"/>

CoD2-serverside
We have worms Powerserver-based own mod. I did not separate out our own stuff (clanlogo and jambox) but added dvars to disable them.
Download serverside mod here and clientside mode here. Example config file here

Install CoD2-mod (on CoD2 v1.3), install sniperwd and shotgunwd-plugins and thats it! Rotater works only on s&d-gametype. Connect to server and !s or !sniper commands adds you into sniper queue. !sg or !shotgun commands adds you into snotgun queue. You will get sniper or shotgun at least for one round. If nobody is requesting after you, you may use weapon as long as you wish. Weapon can be dropped by command !sniper drop or !shotgun drop.

Known bugs/issues:
-For some reason sometimes B3 do not recognise Player Disconnects. If he/she was in queue, that blocks queue.
I have idea possible solution but have not implemented that yet.


I agree that my post is not very clear but I wish you can handle that Cheesy


Rascal

P.S. We are using this plugin in our public CoD2-server in Finland 195.12.56.8:28960
« Last Edit: September 12, 2008, 12:16:14 AM by xlr8or » Logged

Former Dev. (senate)
*****
Posts: 350
Offline Offline
« Reply #1 on: January 20, 2007, 11:48:20 AM »

Cool. A few tips.

Instead of modifying events.py and cod.py, add the following to the onStartup of your plugin:

Code:
# Create the event
b3.events.eventManager.createEvent('EVT_CLIENT_ITEM_ROTATE', 'Client Weapon Rotate')

# Map the "R" action to the correct event
self.console._eventMap['R'] = b3.events.EVT_CLIENT_ITEM_ROTATE

# Listen for the event
self.registerEvent(b3.events.EVT_CLIENT_ITEM_ROTATE)

Doing it this way will minimize the changes you need to make to existing files and make it easier for people to load/unload. You also no longer need the OnR method in the cod parser.

I should probably add this to the wiki for others to see.
Logged
Jr. Member
**
Posts: 11
Offline Offline
WWW
« Reply #2 on: January 21, 2007, 05:37:00 AM »

Thank you ThorN!

weaponrotater.1.1.tar.gz

Content of zipped tar-ball:
extplugins/conf/sniperwd.cfg
extplugins/conf/sniperwd.xml
extplugins/conf/shotgunwd.cfg
extplugins/conf/shotgunwd.xml
extplugins/sniperwd.py
extplugins/shotgunwd.py
Logged
Former Dev. (senate)
*****
Posts: 350
Offline Offline
« Reply #3 on: January 21, 2007, 11:22:01 AM »

No problem. Be sure to Modify your original post to reflect the changes.
Logged
Full Member
***
OS: Windows
Type: Renting Server with B3
Gameservers: COD2
Posts: 127
Offline Offline
WWW
« Reply #4 on: February 13, 2007, 06:32:34 AM »

Can this be implemented into different mods? What type of integration did you do?
Logged

Jr. Member
**
Posts: 11
Offline Offline
WWW
« Reply #5 on: February 25, 2007, 11:14:38 PM »

Can this be implemented into different mods? What type of integration did you do?

Yes it is possible to add into any CoD2 mod etc, serverside <gametype>.gsc-files need to be edited.
Sniper/shotgun is given to player who client-id matches to CoD2 serverside dvar set by B3-plugin.   
Logged
Newbie
*
Posts: 1
Offline Offline
WWW
« Reply #6 on: March 07, 2007, 01:28:11 AM »

Hello,

Rascal, I really like what you have done here, it's clever and i'm sure that it would be a popular addition to many servers running B3. I'd quite like to see PAM2.04 enabled to use your weaponrotater. Do you have enough time on your hands to implement a working version? I really would like to get this running on my server.

PAM is also made by Worm, the same author who wrote powerserver, which you use. The latest PAM, 2.04 can be found here: http://www.wormsworld.net/forums/viewtopic.php?t=1401

Hopefully i'll hear more from this topic!  Grin

Regards,
Phoenix.
Logged

24 Slot, SD, Swedish, B3 enabled, CoD2 Server: 213.199.77.62:28960
Full Member
***
Posts: 53
Offline Offline
« Reply #7 on: March 07, 2009, 03:11:51 PM »

Bump! Smiley
I would like to ask for a version for Cod4 please.
Also, would it be easy to be made without any Cod4's serverside modification?
Some administrators use mods like Xtreme or Awe or Ace and to be honest i would like a b3 side's only plugin if possible.

This is what i would like to see.
I command like !s (for snipers) or !d (for demolitions-shotgunners) which could put a player on a queue and on the next round (and/or) next halftime the player who has already the sniper to be forced to leave this class and choose from another one, and the next in queue to take sniper's class and so on...
I know this may be hard to be made, it was just a thought although Smiley
Logged
B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #8 on: March 07, 2009, 11:57:06 PM »

No, it could not be made without a mod, in the way you specify it.
Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal