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

Offline LexOosterhuis

  • Newbie
  • *
  • Posts: 8
Re: WeaponLimiter Plugin
« Reply #30 on: March 10, 2012, 11:38:26 PM »
Hey Free  ;D

But we had a few guy's using rpg's and what not ,

The log can be found here :

http://www.mediafire.com/?22f81nsd1048uor

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: WeaponLimiter Plugin
« Reply #31 on: March 11, 2012, 04:48:33 PM »
I'm not really familiar with this plugin (I'm using a slightly modified version of weapon restrict plugin for BFBC2). But I guess you need to set disallowed wepons per map.

This seems wrong:
Code: xml [Select]
<settings name="MP_Subway,MP_001,MP_002,MP_007,MP_011,MP_012,MP_013,MP_017,MP_018">


Instead of this you need to make adjustments for each map. Example:

Code: xml [Select]
<settings name="MP_Subway"> <!-- identify forbidden weapons per mapname  -->
        <set name="weapons">SMAW, M320, RPG-7</set> <!-- comma delimited list of forbidden weapons -->
        <set name="gametype">SquadDeathMatch0, ConquestSmall0, ConquestLarge0</set> <!-- comma delimited list of gametypes (TODO: implement "all" for every) -->
        <set name="mode">blacklist</set> <!-- Set blacklist or whitelist for describe weapons list as allowed or disallowed -->
    </settings>


and so on...

Also note "only allow Pistol and Knife" in your config. I don think you need it. Just remove that section.

Offline LexOosterhuis

  • Newbie
  • *
  • Posts: 8
Re: WeaponLimiter Plugin
« Reply #32 on: March 11, 2012, 05:52:40 PM »
Indeed , this :

<settings name="MP_Subway,MP_001,MP_002,MP_007,MP_011,MP_012,MP_013,MP_017,MP_018"></settings>

Gave me a error , it wasnt constructed as it should be.

I will have a fiddle with the settings for each map seperatly.

Thanks Free :D

Offline ozon

  • Full Member
  • ***
  • Posts: 107
    • GitHub
Re: WeaponLimiter Plugin
« Reply #33 on: March 16, 2012, 11:44:38 AM »
<settings name="MP_Subway,MP_001,MP_002,MP_007,MP_011,MP_012,MP_013,MP_017,MP_018"></settings>
^^ Thats wrong. Per map means that you make for every map a new entry. Look to sample.
Code: [Select]
<settings name"ONEMAPNAME">
....
</settings>
<settings name="NEXT_MAP">
....
</settings>

Offline ozon

  • Full Member
  • ***
  • Posts: 107
    • GitHub
Re: WeaponLimiter Plugin
« Reply #34 on: March 16, 2012, 12:03:56 PM »

Offline LexOosterhuis

  • Newbie
  • *
  • Posts: 8
Re: WeaponLimiter Plugin
« Reply #35 on: March 18, 2012, 08:10:33 PM »
Ah , i had a fiddle with it but it seems that it still doesnt respond. ::)

This is what i have atm :

Code: [Select]
	    <settings name="MP_002"> <!-- identify forbidden weapons per mapname  -->
        <set name="weapons">SMAW, M320, RPG-7 </set> <!-- comma delimited list of forbidden weapons -->
        <set name="gametype">SquadDeathMatch0</set> <!-- comma delimited list of gametypes (TODO: implement "all" for every) -->
        <set name="mode">blacklist</set> <!-- Set blacklist or whitelist for describe weapons list as allowed or disallowed -->
    </settings>

    <settings name="MP_007"> <!-- identify forbidden weapons per mapname  -->
        <set name="weapons">SMAW, M320, RPG-7</set> <!-- comma delimited list of forbidden weapons -->
        <set name="gametype">SquadDeathMatch0</set> <!-- comma delimited list of gametypes (TODO: implement "all" for every) -->
        <set name="mode">blacklist</set> <!-- Set blacklist or whitelist for describe weapons list as allowed or disallowed -->
    </settings>

This should be right , right ?

btw im new atm B3 so bear with me  ;D

Offline LexOosterhuis

  • Newbie
  • *
  • Posts: 8
Re: WeaponLimiter Plugin
« Reply #36 on: March 19, 2012, 08:29:57 PM »

btw this is what i got from the log ,
it didnt gave him a warning or killed him.

Code: [Select]
120319 14:24:21	CONSOLE	"['player.onKill', 'JackDaniels1221', 'Lexusstylie', 'RPG-7', 'false']"
120319 14:24:21 VERBOS2 'looking for event handling method called : OnPlayerKill'
120319 14:24:21 VERBOSE "Queueing event Client Kill (100, 'RPG-7', 'torso')"
120319 14:24:21 VERBOSE 'Parsing Event: Client Kill: Weaponlimiterbf3Plugin'
120319 14:24:21 VERBOS2 'Client Kill event handled by Weaponlimiterbf3Plugin in 0.742 ms'
120319 14:24:21 VERBOSE 'Parsing Event: Client Kill: StatsPlugin'
120319 14:24:21 VERBOSE 'stats vshift 0.215596330275'


i hope someone can help me out to see what i'm doing wrong. :P

Offline 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2528
Re: WeaponLimiter Plugin
« Reply #37 on: March 19, 2012, 08:36:04 PM »
Not sure, but you could try without the spaces in the weapon lists eg weapon1,weapon2  and not weapon1, weapon2

Offline LexOosterhuis

  • Newbie
  • *
  • Posts: 8
Re: WeaponLimiter Plugin
« Reply #38 on: March 20, 2012, 01:42:20 AM »
Nvm , got it working ^^

Offline Scratch-DoD-

  • Jr. Member
  • **
  • Posts: 41
    • Demons of Death
Re: WeaponLimiter Plugin
« Reply #39 on: April 28, 2012, 08:59:03 PM »
Is anyone using this plugin with success?

Offline LexOosterhuis

  • Newbie
  • *
  • Posts: 8
Re: WeaponLimiter Plugin
« Reply #40 on: July 10, 2012, 12:08:51 PM »
Is this plugin going to be updated ?
Because at our servers , it sometimes works and sometimes doesnt.

Offline MaSTaKiLLaH

  • Newbie
  • *
  • Posts: 2
Re: WeaponLimiter Plugin
« Reply #41 on: February 22, 2013, 10:53:01 PM »
Great plugin, thanks for that :)
Is the development still halted?

I have some ideas for new features:

- Implement the weapon names as aliases. That way the warning messages could be shorter (and the black-/whitelist too)
- Restrict weapons ingame via command (!wplban <weapon/alias>, !wplunban <weapon/alias> (maybe with some time delay and a few /say /yell messages)
- Is there a way to get a list of the currently black-/whitelisted weapons via command? I thought I had seen something like that, but can't find it anymore. Maybe I'm mixing things up.
- Make the (warning) messages configureable via the XML file


Thanks again for this awesome plugin.




Offline ozon

  • Full Member
  • ***
  • Posts: 107
    • GitHub
Re: WeaponLimiter Plugin
« Reply #42 on: February 23, 2013, 04:14:56 AM »
I'm back, even with BF3. Of course I use the weapon limiter. A updates have already accumulated. I will try to consider your suggestions.


Offline GeneralFailure

  • Jr. Member
  • **
  • Posts: 34
    • [FPF] FrankenPower FAILURE
Re: WeaponLimiter Plugin
« Reply #43 on: June 27, 2013, 12:24:18 AM »
Hi,

is it possible to limit the number of certain types of weapons (like Sniper), for a maximum of x Players per Team?

thx

Offline ozon

  • Full Member
  • ***
  • Posts: 107
    • GitHub
Re: WeaponLimiter Plugin
« Reply #44 on: June 27, 2013, 07:15:15 AM »
Possible yes. I've thought about it several times. But there are some problems that are not nice for the players.

The RCON interface provides no information what weapon a player uses when joining the game. This can only be experienced when a player kills another. Thus B3 can never know exactly what weapons are currently in the game. B3 experiences it only on kill. Indeed that can be register, but it is not sure what weapon used next.

Consider the following scenario:
- You allow 3 Snipers in the game.
- Another player enters the game. He can read the that 3 Snipers are allowed. Where he can learn how many are just on the field? B3 do not know even.
- The new player tried it as a Sniper. And kills someone.
- The limiter remembers now, players 1, 2 and 3 have kills with a sniper rifle. The new player will be punished.
- What probably thinks the player now? .... ??? ::) :-[ :-\ :'(

Another case:
- Players 1, 2, and 3 enter the game with a sniper. B3 does not know that yet (he knows it only on a kill).
- Player 4 come later in the game with a sniper.
- Player 2, 3 and 4 make their kills. B3 now know that players 2, 3 and 4 are sniper.
- If player 1 kills someone, he is punished even though he was the first in the game.
- What probably thinks player 1 now? .... ??? ::) :-[ :-\ :'(
B3 is often punish the wrong.

I hope I could give to understand the problem.
This feature does not solve problems, it creates new.

Procon plugins do something like that, but if you think about it you realize that is bullshit.

You can limit any classes if you do not have the required information. It is technically feasible, but very uncomfortable for the players. Only active admins and fair player can help.

 


Rate this page +1 at Google Search

anything