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: Spawnkill Plugin  (Read 6148 times)

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 999
    • GitHub
Spawnkill Plugin
« on: December 25, 2013, 07:54:00 PM »
Description

A BigBrotherBot plugin useful to automatically manage spawnkilling on Urban Terror 4.2 game servers.

Requirements

  • B3 version > 1.10dev
  • Urban Terror 4.2 server [g_modversion >= 4.2.015]
  • iourt42 parser [version >= 1.19]

Installation

  • copy the spawnkill.py file into b3/extplugins
  • copy the plugin_spawnkill.ini file in b3/extplugins/conf
  • add to the plugins section of your b3.xml config file:

<plugin name="spawnkill" config="@b3/extplugins/conf/plugin_spawnkill.ini" />

Download

Last release: https://github.com/danielepantaleone/b3-plugin-spawnkill/archive/master.zip
« Last Edit: November 30, 2014, 11:38:11 AM by Fenix »

Offline Mariodu62

  • Sr. Member
  • ****
  • Posts: 466
Re: Spawnkill Plugin
« Reply #1 on: December 26, 2013, 09:14:42 AM »
Just a question for BF, is there a difference between spawn on mate and spawn on base ?

Offline ozon

  • Full Member
  • ***
  • Posts: 107
    • GitHub
Re: Spawnkill Plugin
« Reply #2 on: December 26, 2013, 11:18:08 AM »
Just a question for BF, is there a difference between spawn on mate and spawn on base ?
The server does not communicate where a player spawns. So we can, for example, not recognize a kill in the main base.

Generally, I would advise against this plugin on Battlefield 3/4 servers. When a player spawns in the squad and is killed immediately, then why punish the players who performed this kill? In Battlefield 4 I have seen many times that a sniper made a double-kill ??because the 2nd player is unhappily spawned.
vars.onlySquadLeaderSpawn  is a better option ;). Punish players not because of the bad netcode or because an opponent just had bad luck.

Fenix, i have just flown over the code. In my opinion, you can not detect a hit on BF 3/4 servers. Only a kill.

Anyway. I do not recommend this plugin for BF 3/4 server. It is wrong to punish players if there is no basis (In this case, kill position) for a reason/rule.

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 999
    • GitHub
Re: Spawnkill Plugin
« Reply #3 on: December 26, 2013, 12:58:36 PM »
The server does not communicate where a player spawns. So we can, for example, not recognize a kill in the main base.

Generally, I would advise against this plugin on Battlefield 3/4 servers. When a player spawns in the squad and is killed immediately, then why punish the players who performed this kill? In Battlefield 4 I have seen many times that a sniper made a double-kill ??because the 2nd player is unhappily spawned.
vars.onlySquadLeaderSpawn  is a better option ;). Punish players not because of the bad netcode or because an opponent just had bad luck.

Fenix, i have just flown over the code. In my opinion, you can not detect a hit on BF 3/4 servers. Only a kill.

Anyway. I do not recommend this plugin for BF 3/4 server. It is wrong to punish players if there is no basis (In this case, kill position) for a reason/rule.
As I said, I do not own all the game supported by the plugin, I just play Urban Terror and this plugin has been made for Urban Terror. Since EVT_CLIENT_SPAWN is provided also by frostbite parsers the plugin will work also with such games but I don't know how the plugin will behave since I have never played BF (and I'm not interested  ;D ;D). If you think I should remove the support I will. If you want to modify the plugin feel free to send me pull requests  ;) ;) ;)

Offline ozon

  • Full Member
  • ***
  • Posts: 107
    • GitHub
Re: Spawnkill Plugin
« Reply #4 on: December 27, 2013, 12:11:32 AM »
My previous post was intended more as a suggestion. ;)

For the Record, EVT_CLIENT_SPAWN provide the client and team id.
Quote
131227 00:04:47 CONSOLE "['player.onSpawn', 'O2ON', '2']"

 


Rate this page +1 at Google Search

anything