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: Spawn Protection  (Read 6856 times)

Offline ultra1776

  • Jr. Member
  • **
  • Posts: 19
    • Dedicated Dose of Reality
Spawn Protection
« on: August 25, 2011, 04:12:31 PM »
Description: Description:
Will notify attackers, victims, or everyone when a player spawn kills someone.

Based of amount of time between deaths. its not a perfect science but it does the job.

I built (and only tested) this for homefront based on time of death because homefront doesn't have a event for spawning. But it should work the same with any game.

It has warning and a notice times, warn or obvious spawn kill, notice for when the attacker is getting too close to the spawns. then the ability to give the attacker a warning message or to give them a actual warning.

Special Thanks to Courgette for all his help getting this started.

Any ideas, or suggestions would be appreciated.

Change Log:
#    08/23/2011 - 1.0.0 - Ultra
#    -- Created the plugin and released it to the public.

#    08/23/2011 - 1.0.1 - Ultra
#    -- Fixed warning message and indentation issue.

#    09/17/2011 - 1.1.0 - Ultra
#    -- Added notice limit to issue a warning after so many notices.
#    -- Cleaned up the code a little bit.
#    -- Fixed a error when issuing a warning.


Example Config
Code: xml [Select]
<configuration plugin="spawnprotection">

    <settings name="sp_times">
<!--
Spawn Protection time between players deaths in seconds to issue a warning.
If joe kills john and john has only been alive for 5 seconds or less
then it is most likley a spawn kill. Warn Joe to not spawn kill.
-->
<set name="warning_time">5</set>

<!--
Spawn Protection time between players deaths in seconds to issue a notice.
If joe kills john and john has only been alive for 10 seconds or less
then it is may be a spawn kill. Give Joe a notice to back up.
-->
<set name="notice_time">10</set>
</settings>

    <settings name="sp_messages">
<!-- Warning Message (%s is the Players Name). -->
   <set name="warning_message">**WARNING**, %s Spawn Camping and Spawn Killing are not allowed.</set>

<!-- Notice Message (%s is the Players Name) -->
<set name="notice_message">**NOTICE**, %s You are to close to spawn. Please back up.</set>
    </settings>


<settings name="sp_settings">
<!--
1 = Just send a PM to the attacker.
2 = Send a PM to the attacker and the vitim
3 = Send a PM to the attacker and a message to the whole server.
-->
<set name="notify">2</set>
  <!--
0 = Just give the attacker a warning message.
1 = Give the attacker actual warning ( 3 of these they get banned )
-->
<set name="warn">0</set>
<!--
Rule # for spawn camping.
-->
<set name="rule">rule9</set>
<!--
Notice limit to issue a warning. For every X amount of notices the attacker will get a warning.
-->
<set name="notice_limit">3</set>

    </settings>

</configuration>



Download

Mirror Download
« Last Edit: September 17, 2011, 08:14:25 PM by ultra1776 »
We, and all others who believe in freedom as deeply as we do, would rather die on our feet than live on our knees.
-Franklin D. Roosevelt

Offline storm_ss

  • Jr. Member
  • **
  • Posts: 48
Re: Spawn Protection
« Reply #1 on: August 27, 2011, 03:38:41 PM »
I am getting a error trying to run this plugin on Homefront:

110827 09:24:47   INFO   'Could not load built in plugin spawnprotection (No module named spawnprotection)'
110827 09:24:47   CRITICAL   'Error loading plugin: unexpected indent (spawnprotection.py, line 113)'

Anyone else having problems?

Offline ultra1776

  • Jr. Member
  • **
  • Posts: 19
    • Dedicated Dose of Reality
Re: Spawn Protection
« Reply #2 on: August 28, 2011, 02:08:55 AM »
Uploaded v1.0.1 it should be fine now..

Stay tuned i have 1.1.0 coming in the next couple days which will have the ability to issue a warning after getting a defined amount of notices.
We, and all others who believe in freedom as deeply as we do, would rather die on our feet than live on our knees.
-Franklin D. Roosevelt

Offline ultra1776

  • Jr. Member
  • **
  • Posts: 19
    • Dedicated Dose of Reality
Re: Spawn Protection
« Reply #3 on: August 28, 2011, 07:47:15 PM »
Thanks to Storm for pointing out that I had the plugin_spawnprotection.xml file named incorrectly to just spawnprotection.xml. I have reuploaded the zip file with the .xml named correctly.

Thanks for your help Storm.
We, and all others who believe in freedom as deeply as we do, would rather die on our feet than live on our knees.
-Franklin D. Roosevelt

Offline storm_ss

  • Jr. Member
  • **
  • Posts: 48
Re: Spawn Protection
« Reply #4 on: August 29, 2011, 12:46:37 AM »
No problem, glad to help out. ;)

Offline ultra1776

  • Jr. Member
  • **
  • Posts: 19
    • Dedicated Dose of Reality
Re: Spawn Protection
« Reply #5 on: September 17, 2011, 08:15:21 PM »
#    09/17/2011 - 1.1.0 - Ultra
#    -- Added notice limit to issue a warning after so many notices.
#    -- Cleaned up the code a little bit.
#    -- Fixed a error when issuing a warning.
We, and all others who believe in freedom as deeply as we do, would rather die on our feet than live on our knees.
-Franklin D. Roosevelt

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: Spawn Protection
« Reply #6 on: September 18, 2011, 07:38:53 PM »
Nice plugin!  :) Maybe you can consider adding respawn delay time in the next version?

Offline ultra1776

  • Jr. Member
  • **
  • Posts: 19
    • Dedicated Dose of Reality
Re: Spawn Protection
« Reply #7 on: September 19, 2011, 02:07:56 AM »
Thanks a lot Freelander.

 I feel like a idiot for asking but. What do you mean by respawn delay?
We, and all others who believe in freedom as deeply as we do, would rather die on our feet than live on our knees.
-Franklin D. Roosevelt

Offline Freelander

  • XLRstats dev.
  • Dev. Team
  • Hero Member
  • *
  • Posts: 1000
Re: Spawn Protection
« Reply #8 on: September 19, 2011, 04:56:01 PM »
No reason to feel that way, I may have used a wrong description  :) What I mean by respawn delay is the time between the death of a player until spawning again. For some games it's possible to set a predetermined time to wait until the player spawns again after getting killed.

For blackops ranked servers, there's a different built in calculation of this waiting time I guess because it's not always the same waiting time. Btw, if anyone knows the logic, it can also be integrated in your plugin. I know a lot of people complains about excessive spawn kills in blackops.

Edit: I guess there's no spawn delay in blackops softcore, so it must be only in hardcore servers...
« Last Edit: September 19, 2011, 05:03:13 PM by Freelander »

Offline ultra1776

  • Jr. Member
  • **
  • Posts: 19
    • Dedicated Dose of Reality
Re: Spawn Protection
« Reply #9 on: September 19, 2011, 08:34:26 PM »
I get it. There is a repawn delay section in cod and in hf. Since it is based on the amount of time someone is dead that would be best to set it as a option rather than playing with the times. Cause right now I'm allowing 13 seconds to be considered spawn camping. but there is a 2 second respawn delay on the server and the fly down time that I'm trying to calculate in there. that's our server other server may have a longer respawn delay. I think the default is 10.

Yes I will defiantly add that to the next version. Thanks for the idea Freelander.
We, and all others who believe in freedom as deeply as we do, would rather die on our feet than live on our knees.
-Franklin D. Roosevelt

Offline macakxx

  • Jr. Member
  • **
  • Posts: 14
Re: Spawn Protection
« Reply #10 on: October 13, 2015, 01:20:09 PM »
Hi

Where i can download this plugin? I cant find in download section?

 


Rate this page +1 at Google Search