thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
The creator of these plugins has not shown activity in a while. Posting in this board may not result in a fast reply or a reply at all. [ Read the full Support Disclaimer here ]
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!

Author Topic: Weapon Control Plugin - Antinoob v1.0.7  (Read 161438 times)

Offline FatBastard

  • Jr. Member
  • **
  • Posts: 30
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #45 on: February 06, 2009, 05:43:49 PM »
Bakes,

Any other ideas on how to get this to work?

If it makes it easy, just making this instant kick would be good.  When someone uses a "banned weapon", we want them to be kicked.  We've found that if you let them, they will just rack up warnings until they get auto-kicked.

If you could figure out how to edit the .py to make it so whenever someone uses a banned weapon on our server they get kicked, it would be great!

Same here.

I just had something weird happen last night. We had someone with a banned weapon racking up (0) warnings and never getting kicked. It would spam the warnings, but the number of warnings never increased to result in an auto kick.

FB

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #46 on: February 06, 2009, 05:54:47 PM »
that problem is due to that player not having authenticated at the time that he got warned. Once authenticated, he'd get warnings.

Offline intrebulon

  • Full Member
  • ***
  • Posts: 84
    • Knight Of Fury Clan
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #47 on: February 06, 2009, 06:11:20 PM »
that problem is due to that player not having authenticated at the time that he got warned. Once authenticated, he'd get warnings.

that's actually quite funny, it applies all the warnings as soon as he gets auth'ed and he gets kicked for longer, which is fine with me if they ignore the umpteen warnings that come up before they get kicked.

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #48 on: February 06, 2009, 06:17:47 PM »
lol, I had a great problem once, when magically, the bot multiplied, and when a single person got warned, they got 9 warnings and were banned for a day. Good times :)

Offline Lolzumad

  • Full Member
  • ***
  • Posts: 50
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #49 on: February 09, 2009, 07:43:51 PM »
It would be really nice to have 4 switches available in the xml, being [0-3] for perm.

0 is timed, gives warnings until kick.
1 is map long, gives warnings until kick
2 is timed, insta-kicks
3 is map long, insta-kicks.

(Not my idea, give credit to Intrebulon)

Would this be possible?  I know myself and quite a few other people who would like to be able to control weapon usage like this!

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #50 on: February 09, 2009, 11:27:01 PM »
Sure. I've finished my private stuff work, and I'm starting to implement... honestly I've got some code already but I'm still able to implement those switches ;)

Soon

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #51 on: February 13, 2009, 12:02:27 AM »
« Last Edit: February 13, 2009, 12:04:00 AM by Anubis »

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #52 on: February 13, 2009, 12:04:07 AM »
looks good, though maybe you could have just had a var that allowed the knife, since the only changeable is mod_melee, the rest are all Mod_grenade_splash etc.

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #53 on: February 13, 2009, 12:11:16 AM »
looks good, though maybe you could have just had a var that allowed the knife, since the only changeable is mod_melee, the rest are all Mod_grenade_splash etc.

hmmm.... right... in case of knife restriction all weapons should be included in the xml just to watch for mod_melee... thx.. I will add this in the next version.

regards

Offline Lolzumad

  • Full Member
  • ***
  • Posts: 50
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #54 on: February 13, 2009, 01:26:22 AM »
Quote
090212 19:25:03   BOT       Loading Plugin #14 antinoob [/home/killntime/b3bot/b3/extplugins/conf/plugin_antinoob.xml]
090212 19:25:03   INFO   Could not find built in plugin antinoob, trying external plugin directories.
No module named antinoob
090212 19:25:03   CRITICAL   Error loading plugin: 'module' object has no attribute 'AntinoobPlugin'
Traceback (most recent call last):
  File "/home/killntime/b3bot/b3/parser.py", line 330, in loadPlugins
    self._plugins[p] = getattr(pluginModule, '%sPlugin' % p.title())(self, conf)
AttributeError: 'module' object has no attribute 'AntinoobPlugin'

i didn't edit anything in the xml yet.

Offline FatBastard

  • Jr. Member
  • **
  • Posts: 30
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #55 on: February 13, 2009, 03:26:53 AM »
This is great. Thank you so much.

Does this mean we have to list all weapons with every possible variation of mod?
MOD_RIFLE_BULLET
MOD_HEAD_SHOT
MOD_PISTOL_BULLET
MOD_IMPACT

In my case, it'll be a ton of exceptions to enter. But it is what it is. Just want to confirm this before I start cutting, pasting, search and replacing. LOL

Offline Fisch.666

  • Jr. Member
  • **
  • Posts: 26
    • Prielwurmjaeger.de
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #56 on: February 13, 2009, 12:05:54 PM »
Hi!

i didn't edit anything in the xml yet.

I had the same problem. Just edit the antinoob.py file and change this:

Quote
class AntiboobPlugin(b3.plugin.Plugin):

into this:

Quote
class AntinoobPlugin(b3.plugin.Plugin):

and it works without a problem.

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #57 on: February 13, 2009, 01:30:40 PM »
oops... sorry... I've already fixed that. ZIp file contains error free *.py file.

@FatBastard
Quote
Does this mean we have to list all weapons with every possible variation of mod?
No, no. It's needed for example for knifes. When weapon is AK but the MOD is MOD_MELEE. If you want to restrict AK just put it's name and leave MOD attribute empty :)

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #58 on: February 13, 2009, 01:40:53 PM »
but also, a noobtoob headshot (it's possible!) will not warn.

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #59 on: February 13, 2009, 02:32:27 PM »
really it's possile? whoa... never seen that.

 


Rate this page +1 at Google Search