thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
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: WeaponLimiter Plugin  (Read 26070 times)

Offline ozon

  • Full Member
  • ***
  • Posts: 107
    • GitHub
Re: WeaponLimiter Plugin
« Reply #15 on: December 18, 2011, 08:01:36 PM »
ah..after my Post see i the Problem.
Code: [Select]
'weapon = event.data[1]')
This is the old code. Please make a git pull ;)
The latest code call
Code: [Select]
data.data[1]
;)
Look here: https://github.com/ozon/b3-plugin-weaponlimiterbf3/blob/master/extplugins/weaponlimiterbf3.py#L115

If you use the Code from your Fork on GitHub....update it or use my repository.

//edit:
For Feature Request or Ideas use please the issues quere on GitHub.
https://github.com/ozon/b3-plugin-weaponlimiterbf3/issues
« Last Edit: December 18, 2011, 08:07:52 PM by ozon »

Offline [DAD]GrimReaper

  • Full Member
  • ***
  • Posts: 128
Re: WeaponLimiter Plugin
« Reply #16 on: December 21, 2011, 05:32:29 PM »
If i set this to be restricted weapons of the RPG-7 and SMAW will this plugin only warn for those weapons used on players or does it warn for use against vehicles as well?

Offline SanKen

  • Sr. Member
  • ****
  • Posts: 212
    • ProGaming - Only Multigaming is the most important
Re: WeaponLimiter Plugin
« Reply #17 on: December 21, 2011, 07:28:39 PM »
All kill with this weapon will be punished .. Is it a vehicle or infantry
It is not possible to change this
Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.

Offline ozon

  • Full Member
  • ***
  • Posts: 107
    • GitHub
Re: WeaponLimiter Plugin
« Reply #18 on: December 21, 2011, 09:14:36 PM »
There should be no problem to adapt well to the vehicles.

I personally had no need for such a feature. But the code recognizes players who have been killed with what weapon. It would stop only a couple of Rules will be defined what should happen under what conditions.

I'm open to ideas.

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: WeaponLimiter Plugin
« Reply #19 on: December 21, 2011, 09:18:56 PM »
note that this would be difficult to implement as one could send a rocket onto a tank but not destroying the tank while killing an engineer repairing the tank. Would you punish the killer then ?

Offline [DAD]GrimReaper

  • Full Member
  • ***
  • Posts: 128
Re: WeaponLimiter Plugin
« Reply #20 on: January 31, 2012, 10:47:57 AM »
hi Guys

Is there any chance of having a Whitelist on weapons (Instead of saying which are banned), you say which ones are allowed?

I would like to be able to run a shotgun / knife server, however it would be a huge config to insert all of the weapons in the forbidden weapons list :)

Martin

Offline ozon

  • Full Member
  • ***
  • Posts: 107
    • GitHub
Re: WeaponLimiter Plugin
« Reply #21 on: February 03, 2012, 03:18:37 PM »
Nice Idea. I think i can do it. Please give me some time ;).

Offline [DAD]GrimReaper

  • Full Member
  • ***
  • Posts: 128
Re: WeaponLimiter Plugin
« Reply #22 on: February 03, 2012, 04:05:49 PM »
Take all the time you require :)

I am willing to test it if it helps

Offline ozon

  • Full Member
  • ***
  • Posts: 107
    • GitHub
Re: WeaponLimiter Plugin
« Reply #23 on: February 10, 2012, 08:41:43 AM »
I've added the function now.
I think it works. You set a backlist or whitelist in the configuration.

You can get the latest stuff from https://github.com/ozon/b3-plugin-weaponlimiterbf3

Offline [DAD]GrimReaper

  • Full Member
  • ***
  • Posts: 128
Re: WeaponLimiter Plugin
« Reply #24 on: February 10, 2012, 02:20:35 PM »
Thanks :). I will be testing this tonight

Offline ozon

  • Full Member
  • ***
  • Posts: 107
    • GitHub
Re: WeaponLimiter Plugin
« Reply #25 on: February 11, 2012, 02:05:28 AM »
I played some hours "Pistol&Knife" only. The "whitelist" mode works fine. But the plugin have some other isses :( (sample, dosnt deaktivate on gametype).

Offline LexOosterhuis

  • Newbie
  • *
  • Posts: 8
WeaponLimiter Plugin problem Bf3
« Reply #26 on: March 10, 2012, 05:54:50 PM »
Hello ,

I am having problems with the WeaponLimiter Plugin for bf3

it boots up , but fails to kill or warn players using certain weapons.

The idea is to warn and kill players using rpg's and m320's on every map in Squad DM

I bet its a problem on my end , so if anyone can help me out with my XML file , i would be very thankfull.


My config file :
http://pastebin.com/6kzGYSYY

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: WeaponLimiter Plugin
« Reply #27 on: March 10, 2012, 06:29:04 PM »
please post your b3.log file showing people making kills with forbidden weapons

Offline LexOosterhuis

  • Newbie
  • *
  • Posts: 8
Re: WeaponLimiter Plugin
« Reply #28 on: March 10, 2012, 07:53:39 PM »
Hey Courgette

I hope this is the Log file you are speaking of.

http://pastebin.com/5Ym81xzm

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: WeaponLimiter Plugin
« Reply #29 on: March 10, 2012, 08:20:14 PM »
Hi Lexus and welcome to our forums  :)

In the log file you provided I can see only one SMAW kill which was not processed by the plugin. This seems normal to me because you started the bot when the server was full and that kill happened only 23 secs after the bot started. At that time the bot was very busy with authenticating all players, parsing all events etc. And since the event could not have been processed within the time limit it timed out.

See "'**** Event sat in queue too long: Client Kill 14'"

All should be normal in a few minutes. Please feel free to post the logs again if the plugin is still not working.

 


Rate this page +1 at Google Search

anything