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!

You are here: Big Brother Bot ForumAdd-OnsPlugins DiscussionPlugins by Courgetteweapon control plugin v0.3.0 [urt4.1]
Pages: [1] 2 3   Go Down
  Print  
Author Topic: weapon control plugin v0.3.0 [urt4.1]  (Read 9836 times) Bookmark and Share
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« on: October 09, 2008, 02:53:00 PM »

Description :
This plugin is for Urban Terror only.
This plugin allows to define a set of weapon not allowed on your server.
This plugin will give a more precise control over the g_gear cvar as it can manage weapon one by one (and even items likes night vision googles).


Download | source code repository

Changelog :
10/10/2008 - 0.1.0b
 - first shot, beta version. Seems to work, waiting for feedback before moving on
11/10/2008 - v0.2.0b
 - add weaponcontrol command to change settings in-game
 - add control over the M4A1 (missing in the Urban Terror manual)
19/10/2008 - v0.2.1
 - add command section in the config to enable the weaponcontrol command
04/03/2009 - v0.3.0
 - Fix bug with the AK.
 - Add missing 'kevlar helmet'
 - Now broadcast message when a weapon/item is allowed/disallowed
 - Add 'admin guide'
 - Add doc in french

« Last Edit: September 25, 2011, 02:24:40 PM by Courgette » Logged


[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2008
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #1 on: October 10, 2008, 02:28:53 AM »

created a repository for you.
Logged

Sr. Member
****
Posts: 238
Offline Offline
« Reply #2 on: October 15, 2008, 01:08:06 PM »

looks nice saw you already implemented the command in-game. Maybe make the action it will take also configurable like kick or warn or message? just a suggestion
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: October 15, 2008, 01:13:55 PM »

I won't put any more effort on that plugin (except on major bug fixes if some are reported) as I'm not using it on my servers.
Feel free to check the source code from the mercurial repo and send me a patch as described in http://www.bigbrotherbot.com/trac/wiki/SourceRepository/Patching
Logged

Jr. Member
**
Posts: 40
Offline Offline
« Reply #4 on: October 18, 2008, 05:06:37 PM »

It seems to work, and excuse me if this option is available, but can you put in an option to set what level can use the command?
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #5 on: October 18, 2008, 05:39:58 PM »

not sure to understand.. can you reformulate plz
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 #6 on: October 18, 2008, 11:18:17 PM »

From what I can see, he either
B)Wants !weaponcontrol level to be able to be modified.
« Last Edit: October 19, 2008, 05:25:52 AM by Bakes » Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #7 on: October 19, 2008, 05:27:06 AM »

oops, I forgot to update the config file... fixed in v0.2.1
Logged

Full Member
***
Posts: 53
Offline Offline
WWW
« Reply #8 on: November 15, 2008, 02:54:51 PM »

guys if I may ask,  does this plugin not allow the weapon to be selected or does it just warn the user and kick him if hes using a weapon which is banned in the plugins config ?

Also I noticed there is no perk control.  Any way this plugin can restrict 3x nade and martydom perk ?

thanks
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #9 on: November 15, 2008, 03:28:30 PM »

this is for Urban Terror only, not COD so there is no martyr and such
Logged

Full Member
***
Posts: 53
Offline Offline
WWW
« Reply #10 on: November 16, 2008, 04:40:52 PM »

oh my bad,

is there a weapon control pugin for cod 4 ?
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 #11 on: November 17, 2008, 11:36:55 AM »

Unfortunately not, i was in the process of making one, but it would be rather stupid to basically say
if weapon is m4 warn
if weapon is g3 warn
if weapon is m4 reddot warn
if weapon is m16 acog warn
I was thinking of restarting development by doing something more like
if weapon is not m16 acog warn.
which would make it unigame.

Marty, there's already a plugin, i think. I'm fairly sure it's called antinoob.
3x grenades, that would be difficult, if not impossible, since the game doesn't distinguish between (in the logfile) 1 grenade 3 kills and 3 grenade 3 kills. So you could have someone warned, or spammed because of this.
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #12 on: March 04, 2009, 12:11:53 PM »

04/03/2009 - v0.3.0
 - Fix bug with the AK.
 - Add missing 'kevlar helmet'
 - Now broadcast message when a weapon/item is allowed/disallowed
 - Add 'admin guide'
 - Add doc in french
Logged

Newbie
*
OS: Windows
Type: Home user
Gameservers: urt
Posts: 7
Offline Offline
« Reply #13 on: March 22, 2010, 02:41:16 AM »

   Hello Courgette Im not sure if this post is still open or not, But anyway i Downloaded This plugin And It both works and doesnt work. I can Tell b3 To Ban Nvgs With the !wpctrl -nvg Cmd And Anyone with nvg Will Be forced into spectate And A message Will Follow. But The Second They Rejoin the game They can still Uses the banned items And or Weapons. Im Using Windows 7 b3 version "BigBrotherBot-1.2.2b-courgette-20100226-win32-standalone" Here's Some Code From the B3.log That looks weird to me.


100322 05:38:59   BOT       Loading Plugin #7 weaponcontrolurt [C:\Program Files\BigBrotherBot_1.2.2b-courgette-20100226\extplugins\conf\plugin_weaponcontrolurt.xml]
100322 05:38:59   INFO   Could not load built in plugin weaponcontrolurt (No module named weaponcontrolurt)
100322 05:38:59   INFO   trying external plugin directory : C:\Program Files\BigBrotherBot_1.2.2b-courgette-20100226\extplugins
100322 05:38:59   BOT       WeaponcontrolurtPlugin: Loading config C:\Program Files\BigBrotherBot_1.2.2b-courgette-20100226\extplugins\conf\plugin_weaponcontrolurt.xml for WeaponcontrolurtPlugin
100322 05:38:59   DEBUG   AdminPlugin: Command "weaponcontrol (wpctrl)" registered with cmd_weaponcontrol for level (60, 100)
100322 05:38:59   DEBUG   WeaponcontrolurtPlugin: forbidden weapon codes : ['Z', 'S']
100322 05:38:59   DEBUG   Register Event: Stop Process: WeaponcontrolurtPlugin
100322 05:38:59   DEBUG   Register Event: Program Exit: WeaponcontrolurtPlugin
100322 05:38:59   BOT       Plugin weaponcontrolurt (0.3.0 - Courgette) loaded
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #14 on: March 22, 2010, 03:30:49 AM »

Hi nothing looks wrong here Smiley

Instead provide a log showing :

  • you typing the command to forbid negev
  • ppl being forced to spec because they use negev
  • ppl joining a team with a negev
Logged

Tags: plugin UrT 
Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal