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 170406 times)

Offline Lolzumad

  • Full Member
  • ***
  • Posts: 50
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #60 on: February 13, 2009, 04:52:10 PM »
Now I know that knifing someone with an RPG out would be pretty rare...but...

Would the mod be grenade splash or projectile splash?

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #61 on: February 13, 2009, 08:01:51 PM »
mod_melee, like all knives :D

Offline intrebulon

  • Full Member
  • ***
  • Posts: 84
    • Knight Of Fury Clan
Re: Weapon Control Plugin - Antinoob v1.0.3
« Reply #62 on: February 14, 2009, 12:59:34 AM »
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!


very cool that you implemented this so quickly.  i made quick edits for instant kicks for lolzumad for marty and gl's and suggested that the above would be a more graceful solution that everyone could easily use, excepting that's it beyond my current skills to write it.

i will be switching out my antinoob for this one shortly when the knife stuff is fully implemented.

this makes antinoob fantastic for enforcing custom weapon rulesets without modding your server.

the added instant kick penalties rock in two instances:

A) you're running a server that is essentially restricted to one weapon type:
because having someone running around for 30 seconds to 3 minutes receiving umpteen warnings for banned weapon usage isn't ideal.  you want them gone and gone now and you want them to know why they were booted so when they come back in they have no excuse if they do it again.
B) a lot of servers are run disallowing martyrdom and noob tubes altogether and having the option to make the penalty an instant kick keeps the rule abiding players from having to put up with that while waiting for the 2-3 warnings.
« Last Edit: February 14, 2009, 01:24:07 AM by intrebulon »

Offline FatBastard

  • Jr. Member
  • **
  • Posts: 30
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #63 on: February 14, 2009, 07:46:34 PM »
I fixed this in the .py
Code: [Select]
class AntinoobPlugin(b3.plugin.Plugin):

Edited my plugin_antinoob.xml to reflect the new features
Code: [Select]
<configuration plugin="antinoob">
    <settings name="settings">
        <set name="warn_duration">10</set>
        <set name="warning_rule">rule12</set>
        <set name="banned_warning_rule">rule12</set>
        <set name="unlock_message">^3 %s seconds passed - ^3all weapons unlocked!!!</set>
        <set name="info_message">^3 No nades, airstrike, tubes ^5for %s seconds of the round!!!</set>
        <set name="bannedonly_info_message">Sniper class only, no pistols, no martyrdom and no last stand.</set>
    </settings>
    <maps>
        <map name="mp_citystreets">10</map>
    </maps>   
    <weapons>
        <!-- Penalty -->
        <!-- 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. -->
       
        <!-- Tubes -->
        <weapon penalty="2" mod="MOD_GRENADE_SPLASH">gl_ak47_mp</weapon>
        <weapon penalty="2" mod="MOD_GRENADE_SPLASH">gl_g3_mp</weapon>
        <weapon penalty="2" mod="MOD_GRENADE_SPLASH">gl_g36c_mp</weapon>
        <weapon penalty="2" mod="MOD_GRENADE_SPLASH">gl_m4_mp</weapon>
        <weapon penalty="2" mod="MOD_GRENADE_SPLASH">gl_m14_mp</weapon>
        <weapon penalty="2" mod="MOD_GRENADE_SPLASH">gl_m16_mp</weapon>
        <weapon penalty="2" mod="MOD_GRENADE_SPLASH">gl_mp</weapon>       
        <!-- Nades -->   
        <!-- Airstike -->       
        <!-- Heli -->       
        <!-- <weapon perm="0">helicopter_mp</weapon>        -->   
        <!-- Martyr -->
        <weapon penalty="2" mod="MOD_GRENADE_SPLASH">frag_grenade_short_mp</weapon>
        <!-- Bullets w/Launcher -->
        <weapon penalty="2" mod="">ak47_gl_mp</weapon>
        <weapon penalty="2" mod="">g3_gl_mp</weapon>
        <weapon penalty="2" mod="">g36c_gl_mp</weapon>
        <weapon penalty="2" mod="">m4_gl_mp</weapon>
        <weapon penalty="2" mod="">m14_gl_mp</weapon>
        <weapon penalty="2" mod="">m16_gl_mp</weapon>
        <!-- Assault Rifles -->
        <weapon penalty="2" mod="">m16_mp</weapon>
        <weapon penalty="2" mod="">ak47_mp</weapon>
        <weapon penalty="2" mod="">m4_mp</weapon>
        <weapon penalty="2" mod="">g3_mp</weapon>
        <weapon penalty="2" mod="">g36c_mp</weapon>
        <weapon penalty="2" mod="">m14_mp</weapon>
        <weapon penalty="2" mod="">mp44_mp</weapon>
        <!-- Assault Rifles w/ Silencer -->
        <weapon penalty="2" mod="">m16_silencer_mp</weapon>
        <weapon penalty="2" mod="">ak47_silencer_mp</weapon>
        <weapon penalty="2" mod="">m4_silencer_mp</weapon>
        <weapon penalty="2" mod="">g3_silencer_mp</weapon>
        <weapon penalty="2" mod="">g36c_silencer_mp</weapon>
        <weapon penalty="2" mod="">m14_silencer_mp</weapon>
        <!-- Assault Rifles w/ Red Dot Sight -->
        <weapon penalty="2" mod="">m16_reflex_mp</weapon>
        <weapon penalty="2" mod="">ak47_reflex_mp</weapon>
        <weapon penalty="2" mod="">m4_reflex_mp</weapon>
        <weapon penalty="2" mod="">g3_reflex_mp</weapon>
        <weapon penalty="2" mod="">g36c_reflex_mp</weapon>
        <weapon penalty="2" mod="">m14_reflex_mp</weapon>
        <!-- Assault Rifles w/ ACOG Scope -->
        <weapon penalty="2" mod="">m16_acog_mp</weapon>
        <weapon penalty="2" mod="">ak47_acog_mp</weapon>
        <weapon penalty="2" mod="">m4_acog_mp</weapon>
        <weapon penalty="2" mod="">g3_acog_mp</weapon>
        <weapon penalty="2" mod="">g36c_acog_mp</weapon>
        <weapon penalty="2" mod="">m14_acog_mp</weapon>
        <!-- Sub Machine Guns -->
        <weapon penalty="2" mod="">mp5_mp</weapon>
        <weapon penalty="2" mod="">skorpion_mp</weapon>
        <weapon penalty="2" mod="">uzi_mp</weapon>
        <weapon penalty="2" mod="">ak74u_mp</weapon>
        <weapon penalty="2" mod="">p90_mp</weapon>
        <!-- Sub Machine Guns w/ Silencer -->
        <weapon penalty="2" mod="">mp5_silencer_mp</weapon>
        <weapon penalty="2" mod="">skorpion_silencer_mp</weapon>
        <weapon penalty="2" mod="">uzi_silencer_mp</weapon>
        <weapon penalty="2" mod="">ak74u_silencer_mp</weapon>
        <weapon penalty="2" mod="">p90_silencer_mp</weapon>
        <!-- Sub Machine Guns w/ Red Dot Sight -->
        <weapon penalty="2" mod="">mp5_reflex_mp</weapon>
        <weapon penalty="2" mod="">skorpion_reflex_mp</weapon>
        <weapon penalty="2" mod="">uzi_reflex_mp</weapon>
        <weapon penalty="2" mod="">ak74u_reflex_mp</weapon>
        <weapon penalty="2" mod="">p90_reflex_mp</weapon>
        <!-- Sub Machine Guns w/ ACOG Scope -->
        <weapon penalty="2" mod="">mp5_acog_mp</weapon>
        <weapon penalty="2" mod="">skorpion_acog_mp</weapon>
        <weapon penalty="2" mod="">uzi_acog_mp</weapon>
        <weapon penalty="2" mod="">ak74u_acog_mp</weapon>
        <weapon penalty="2" mod="">p90_acog_mp</weapon>
        <!-- Light Machine Guns -->
        <weapon penalty="2" mod="">saw_mp</weapon>
        <weapon penalty="2" mod="">rpd_mp</weapon>
        <weapon penalty="2" mod="">m60e4_mp</weapon>
        <!-- Light Machine Guns w/ Red Dot Sight -->
        <weapon penalty="2" mod="">saw_reflex_mp</weapon>
        <weapon penalty="2" mod="">rpd_reflex_mp</weapon>
        <weapon penalty="2" mod="">m60e4_reflex_mp</weapon>
        <!-- Light Machine Guns w/ Grip -->
        <weapon penalty="2" mod="">saw_grip_mp</weapon>
        <weapon penalty="2" mod="">rpd_grip_mp</weapon>
        <weapon penalty="2" mod="">m60e4_grip_mp</weapon>
        <!-- Light Machine Guns w/ ACOG Scope -->
        <weapon penalty="2" mod="">saw_acog_mp</weapon>
        <weapon penalty="2" mod="">rpd_acog_mp</weapon>
        <weapon penalty="2" mod="">m60e4_acog_mp</weapon>
        <!-- Shotguns -->
        <weapon penalty="2" mod="">winchester1200_mp</weapon>
        <weapon penalty="2" mod="">m1014_mp</weapon>
        <!-- Shotguns w/Red Dot Sight -->
        <weapon penalty="2" mod="">winchester1200_reflex_mp</weapon>
        <weapon penalty="2" mod="">m1014_reflex_mp</weapon>
        <!-- Shotguns w/grip -->
        <weapon penalty="2" mod="">winchester1200_grip_mp</weapon>
        <weapon penalty="2" mod="">m1014_grip_mp</weapon>
        <!-- Pistols -->
        <weapon penalty="2" mod="MOD_PISTOL_BULLET">beretta_mp</weapon>
        <weapon penalty="2" mod="MOD_PISTOL_BULLET">usp_mp</weapon>
        <weapon penalty="2" mod="MOD_PISTOL_BULLET">colt45_mp</weapon>
        <weapon penalty="2" mod="MOD_PISTOL_BULLET">deserteagle_mp</weapon>
        <weapon penalty="2" mod="MOD_PISTOL_BULLET">deserteaglegold_mp</weapon>
        <!-- Pistols w/silencer -->
        <weapon penalty="2" mod="MOD_PISTOL_BULLET">beretta_silencer_mp</weapon>
        <weapon penalty="2" mod="MOD_PISTOL_BULLET">usp_silencer_mp</weapon>
        <weapon penalty="2" mod="MOD_PISTOL_BULLET">colt45_silencer_mp</weapon>
        <!-- Pistols HEAD SHOT -->
        <weapon penalty="2" mod="MOD_HEAD_SHOT">beretta_mp</weapon>
        <weapon penalty="2" mod="MOD_HEAD_SHOT">usp_mp</weapon>
        <weapon penalty="2" mod="MOD_HEAD_SHOT">colt45_mp</weapon>
        <weapon penalty="2" mod="MOD_HEAD_SHOT">deserteagle_mp</weapon>
        <weapon penalty="2" mod="MOD_HEAD_SHOT">deserteaglegold_mp</weapon>
        <!-- Pistols HEAD SHOT w/silencer -->
        <weapon penalty="2" mod="MOD_HEAD_SHOT">beretta_silencer_mp</weapon>
        <weapon penalty="2" mod="MOD_HEAD_SHOT">usp_silencer_mp</weapon>
        <weapon penalty="2" mod="MOD_HEAD_SHOT">colt45_silencer_mp</weapon>
        <!-- Rockets -->
        <weapon penalty="2" mod="">rpg_mp</weapon>
        <!-- Mounted Machine Gun -->
        <weapon penalty="2" mod="">saw_bipod_crouch_mp</weapon>
    </weapons>
</configuration>

I replaced my .py and the .xml on the server and restarted B3 and now it's not catching anything.

Where can I find out where the error is happening or the parsing is not happening?

I checked the B3.log and all I could find was:
Code: [Select]
090214 11:34:35	BOT    	Loading Plugin #5 antinoob [/home/nbscod41/b3bot/b3/extplugins/conf/plugin_antinoob.xml]
090214 11:34:35 INFO Could not find built in plugin antinoob, trying external plugin directories.
No module named antinoob
090214 11:34:35 BOT    AntinoobPlugin: Loading config /home/nbscod41/b3bot/b3/extplugins/conf/plugin_antinoob.xml for AntinoobPlugin
090214 11:34:35 DEBUG AntinoobPlugin: Loading Configuration Started

and I noticed this too:
Code: [Select]
090214 11:34:35	BOT    	Loading Plugin #6 dupename [/home/nbscod41/b3bot/b3/extplugins/conf/dupename.xml]
090214 11:34:35 INFO Could not find built in plugin dupename, trying external plugin directories.
No module named dupename
090214 11:34:35 BOT    DupenamePlugin: Loading config /home/nbscod41/b3bot/b3/extplugins/conf/dupename.xml for DupenamePlugin

However the rest of the log looks as if it is using the plugins afterwards.
« Last Edit: February 14, 2009, 07:51:15 PM by FatBastard »

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #64 on: February 14, 2009, 08:02:22 PM »
Hmmmm....

the 'no module named antinoob' is a standard message, it means that it didn't find it in @b3/plugins, so tries the @b3/extplugins folder.

can you post examples of a kill and how antinoob doesn't work? b3 log?

also, you could try just restricting m4_mp (no sight or anything) with mod "MOD_RIFLE_BULLET", and see if it warns for that.

Offline FatBastard

  • Jr. Member
  • **
  • Posts: 30
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #65 on: February 14, 2009, 10:11:05 PM »
Quote
090214 15:04:22   DEBUG   AntinoobPlugin: checkweapon result: -1
090214 15:04:22   CONSOLE   197:28 K;02703804c2d55ba2c3754a37a4c8f578;4;;SID;cb8c3dd8ffbe0d61bc00b1e8e2766565;2;;{UW}B-Fud_436;usp_mp;56;MOD_PISTOL_BULLET;left_arm_upper
090214 15:04:32   CONSOLE   197:38 K;cb8c3dd8ffbe0d61bc00b1e8e2766565;2;;{UW}B-Fud_436;89de6a970d037ecddd383e88b87d48e8;8;;PITBULL;dragunov_mp;98;MOD_RIFLE_BULLET;torso_lower
090214 15:04:32   VERBOSE   Queueing event Client Kill (98.0, 'dragunov_mp', 'torso_lower', 'MOD_RIFLE_BULLET')
090214 15:04:32   VERBOSE   Parsing Event: Client Kill: AntinoobPlugin
090214 15:04:32   DEBUG   AntinoobPlugin: checkweapon result: -1
090214 15:04:40   CONSOLE   197:45 say;9bccee3efad628530ad3c918fc47454a;11;-eX!.Major_Ed;nobody seems to give a shit
090214 15:04:40   VERBOSE   Queueing event Say nobody seems to give a shit
090214 15:04:40   VERBOSE   Parsing Event: Say: CensorPlugin
090214 15:04:40   VERBOSE   Parsing Event: Say: AdminPlugin
090214 15:04:40   DEBUG   AdminPlugin: OnSay handle 5:"nobody seems to give a shit"
090214 15:04:42   CONSOLE   197:47 say;89de6a970d037ecddd383e88b87d48e8;8;PITBULL;no pistol
090214 15:04:42   VERBOSE   Queueing event Say no pistol
090214 15:04:42   VERBOSE   Parsing Event: Say: CensorPlugin
090214 15:04:42   VERBOSE   Parsing Event: Say: AdminPlugin


{UW}B-Fud_436;usp_mp;56;MOD_PISTOL_BULLET;left_arm_upper

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #66 on: February 14, 2009, 11:47:36 PM »
strange... I'll check this. Could you please post, or send me the beggining fo the b3 log?
« Last Edit: February 14, 2009, 11:57:32 PM by Anubis »

Offline FatBastard

  • Jr. Member
  • **
  • Posts: 30
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #67 on: February 15, 2009, 12:48:27 AM »
I PM'd it. I hope it wasn't to large and borked the system.

Thanks for all the help.

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #68 on: February 15, 2009, 11:54:48 AM »
hi,
there is nothing im my inbox :( Could you please send me it on my email? It would be much easier.

Offline FatBastard

  • Jr. Member
  • **
  • Posts: 30
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #69 on: February 15, 2009, 07:02:22 PM »
your e-mail is hidden. I sent another PM.

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #70 on: February 16, 2009, 11:05:54 PM »
Hi,
OK then... try it now. I think I've fixed previous issue. Currently you should be able to set just the weapon MOD also, like:
Code: [Select]
        <weapon penalty="2" mod="MOD_GRENADE_SPLASH"></weapon>

Test XML settings file:
Code: [Select]
<configuration plugin="antinoob">
    <settings name="settings">
        <set name="warn_duration">10</set>
        <set name="warning_rule">rule10</set>
        <set name="banned_warning_rule">rule11</set>
        <set name="unlock_message">^3 %s seconds passed - ^3all weapons unlocked!!!</set>
        <set name="info_message">^3 No nades, airstrike, tubes ^5for %s seconds of the round!!!</set>
        <set name="bannedonly_info_message">^3 Please, No nades, airstrike, tubes !!!</set>
    </settings>
    <maps>
        <map name="mp_citystreets">10</map>
    </maps>   
    <weapons>
        <!-- Penalty -->
        <!-- 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. -->
       
        <!-- Tubes -->
        <weapon penalty="2" mod="MOD_GRENADE_SPLASH"></weapon>
        <weapon penalty="2" mod="">gl_g36c_mp</weapon>       
        <weapon penalty="3" mod="MOD_FALLING"></weapon>       
        <!-- Nades -->   
        <!-- Airstike -->       
        <!-- Heli -->       
        <!-- <weapon perm="0">helicopter_mp</weapon>        -->   
        <!-- Martyr -->
        <weapon penalty="2" mod="MOD_GRENADE_SPLASH">frag_grenade_short_mp</weapon>
        <!-- Bullets w/Launcher -->
        <weapon penalty="0" mod="">ak47_gl_mp</weapon>
        <!-- Pistols -->
        <weapon penalty="2" mod="MOD_PISTOL_BULLET">beretta_mp</weapon>
        <weapon penalty="2" mod="MOD_PISTOL_BULLET">usp_mp</weapon>
        <weapon penalty="2" mod="MOD_PISTOL_BULLET">colt45_mp</weapon>
        <weapon penalty="2" mod="MOD_PISTOL_BULLET">deserteagle_mp</weapon>
        <weapon penalty="2" mod="MOD_PISTOL_BULLET">deserteaglegold_mp</weapon>
        <weapon penalty="2" mod="MOD_HEAD_SHOT">colt45_silencer_mp</weapon>
        <!-- Rockets -->
        <weapon penalty="2" mod="">rpg_mp</weapon>
        <!-- Mounted Machine Gun -->
        <weapon penalty="2" mod="">saw_bipod_crouch_mp</weapon>
    </weapons>
</configuration>

1.0.5
>>> Download <<<

Waiting for feedback

regards

ps. Those who DL this before I've typed THIS text please reget the plugin.
« Last Edit: February 16, 2009, 11:22:17 PM by Anubis »

Offline Fisch.666

  • Jr. Member
  • **
  • Posts: 26
    • Prielwurmjaeger.de
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #71 on: February 17, 2009, 09:02:26 PM »
Hi!

Thanks for this update, but there must be a problem with this new version 1.0.5. After updating from 1.0.4, every player get warning messages on every map but i have added only mp_shipment to the config file.  :(

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #72 on: February 17, 2009, 10:36:57 PM »
Map section is only for OVERWRITING or replacing default settings (duration of the weapon restriction). It will still warn players at other maps.

Offline Fisch.666

  • Jr. Member
  • **
  • Posts: 26
    • Prielwurmjaeger.de
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #73 on: February 18, 2009, 01:47:55 PM »
Map section is only for OVERWRITING or replacing default settings (duration of the weapon restriction). It will still warn players at other maps.

Ok, thanks for this information and your reply. Are there any chances to change this because i just want to use your plugin to restrict the weapons on mp_shipment to shotgun/pistol/knife only...

Offline Anubis

  • Moderator
  • Sr. Member
  • *
  • Posts: 228
    • g4g.pl
Re: Weapon Control Plugin - Antinoob v1.0.4
« Reply #74 on: February 18, 2009, 02:06:34 PM »
Well... sure... there is a chance :)
Need some time to implement this. However, I would like to have the current version working as expected first ;)

regards

 


Rate this page +1 at Google Search

anything