Raised This Month: $60 Target: $400
 15% 

Server Defense 2.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Plugin ID:
244
Plugin Version:
2.1
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Defends your server against things like spawn killing and camping
    Old 12-31-2007 , 19:29   Server Defense 2.1
    Reply With Quote #1

    Server Defense
    Version 2.1

    Requirements:
    • Sourcemod rev 1854+

    Description:


    This plugin defends against some common server problems such as spawn killing and camping. All features can be easily disabled if you don't want it on. Spawn killing is prevented by simply blocking the damage from happening, protected players will be a different color. They will be protected for a length of time and/or until they travel outside of 'x' feet from their spawn. The anti-camp module is completely customisable, you can change how long the player has to be camping to begin punishment, the severity of the punishment, and much more. The new integration into the SourceMod menu to enable or disable any features easily while in-game enhances the ease-of-use of this plugin.


    Todo:
    • Mostly anything you suggest!
    Installation:
    • Extract the contents of the zip file into your game's directory (CSS is "cstrike", DoD:s is "dods", etc)
    • Install serverdefense.phrases.txt in sourcemod/translations/ (download right under .zip file link)
    • Navigate to <yourgamedir>/cfg/sourcemod/serverdefense.cfg and configure the server defense options
    • Download and install serverdefense_menu.smx to sourcemod/plugins/serverdefense/ for admin menu integration
    • Your done!
    Changelog:

    December 31st 2007
    • Released
    January 4th
    • Added anti-camp
    • Added color to protected players
    • Added afk detection
    • Notification of protection and mortality to spawning players
    January 6th
    • Changed variable prefixes to sd_
    • Added admin menu integration plugin to download
    January 8th
    • Fixed attempt to end spawn protection on players that leave in the middle of it
    • Fixed invalid timer errors on map start with re-connecting players
    • Added mode '2' to sd_afk_punishment that kicks reg players but spectates admins
    • Spawn protection should now work in all mods
    January 13th
    • Fixed never-ending spawn protection (thanks remercy)
    January 13th
    • Replaced depreciated functions, replaced old code with new SM stocks
    • Alpha now works in spawn protection (it didn't before), and I believe it should work right in TF2 now
    • Fixed never-ending loop of joining/kicking bots when afk protection was enabled
    January 18th
    • Removed AFK module, there are plenty of other plugins to use for that, this one was pretty half-assed too.
    • Removed AFK toggle from the SM menu (so don't forget to update that)
    • Tried to fix HP bug for TF2, Bahamut, do you mind trying it out for me? If it didn't work it will set your HP to 1 when spawn protection is over
    February 2nd
    • Fixed spawn protection for TF2
    February 21st
    • Fixed player_spawn error
    February 24th
    • Fixed some other player_spawn error
    February 28th
    • Compatible with TF2, yaay
    July 26th
    • Recoded, now uses m_takedamage to block damage, so whatever game supports that ent prop this plugin will work on it
    • Reformatted config file, I don't think anyone is using this plugin, but if you update make sure to replace plugin.serverdefense.cfg with serverdefense.cfg
    August 16th
    • Updated spawn protect to use a more precise countdown, and a distance limitation so if you go outside of 'x' feet from spawn you lose your protection
    Attached Files
    File Type: sp Get Plugin or Get Source (serverdefense_menu.sp - 3500 views - 3.7 KB)
    File Type: txt serverdefense.phrases.txt (742 Bytes, 1771 views)
    File Type: zip serverdefense.zip (11.0 KB, 2512 views)

    Last edited by Greyscale; 08-17-2008 at 00:16.
    Greyscale is offline
    Duo
    Junior Member
    Join Date: Sep 2004
    Old 01-01-2008 , 00:47   Re: Simple Spawn Protection V1.0
    Reply With Quote #2

    You may want to do what I did with Whack-A-Pubby and if its TF2 have a default health value to restore people to. The damage amount is never sent in the player_hurt event in TF2.
    Duo is offline
    arm5ky
    Member
    Join Date: Dec 2007
    Old 01-01-2008 , 06:37   Re: Simple Spawn Protection V1.0
    Reply With Quote #3

    This is the plugin I really need, over any other plugin, but cant get it to work.

    Mod is Insurgency 217.163.31.17:27015 INS-T [2.0e] The.O.C Insurgency

    1st Above you say "Contains a simple cvar to disable or enable this in-game (sp_enabled)." But In plugin.spawnprotection.cfg it is sp_disabled "0".

    2nd Trying to use it to stop enemy sitting in spawn killing as you spawn, which is quite annoying in Insurgency , but nothing happens with sp_disabled 1, or sp_disabled 0.

    Quote:
    // Default: "0"
    sp_scope "1"

    // [Spawn Protection] Slay the spawn attacker
    // -
    // Default: "0"
    sp_slay "0"



    There are issues in
    Insurgency with slaying (Cant do it as no commit suicide, i believe, from using ATAC) but could you move the spawn attacker to spectator?


    Hope you can help me get this working on server and the addition on move to spec would be a great bonus

    Arm ##

    Last edited by arm5ky; 01-01-2008 at 06:42.
    arm5ky is offline
    ottobohn
    Senior Member
    Join Date: Sep 2007
    Old 01-01-2008 , 11:09   Re: Simple Spawn Protection V1.0
    Reply With Quote #4

    I dunno if u're up for it, but could you also do anti-spawn camping? like spawn slaying after a period of time? Say it hits 10 minutes into the game, then it slays all who are in a certain grid you select. Then again at 2 minutes in. Etc. This would really enhanced the CSS world.

    Otto
    ottobohn is offline
    Neo_Bahamut_19
    Senior Member
    Join Date: Dec 2007
    Old 01-01-2008 , 15:33   Re: Simple Spawn Protection V1.0
    Reply With Quote #5

    Is this integrated into the menu? If so I shall use it.
    __________________
    Neo_Bahamut_19 is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 01-01-2008 , 15:38   Re: Simple Spawn Protection V1.0
    Reply With Quote #6

    Quote:
    Originally Posted by Duo View Post
    You may want to do what I did with Whack-A-Pubby and if its TF2 have a default health value to restore people to. The damage amount is never sent in the player_hurt event in TF2.
    Then I won't support TF2, if that's how valve wants it then I won't bother trying to fix what they don't want us to use.

    arm5ky, hm, does player_hurt work correctly in Insurgency? To stop the spawn killing I simply restore the player's health back to full as soon as the damage is dealt.

    Tomorrow I will send you a test plugin to test the event variables and such in insurgency, that should tell me what I need to fix in this plugin.

    ottobohn, Spawn camping would be surprisingly easy to implement. So when/if this plugin gets approved I will most likely add that.
    Greyscale is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 01-01-2008 , 15:38   Re: Simple Spawn Protection V1.0
    Reply With Quote #7

    Quote:
    Originally Posted by Neo_Bahamut_19 View Post
    Is this integrated into the menu? If so I shall use it.
    Integrated into which menu?
    Greyscale is offline
    Neo_Bahamut_19
    Senior Member
    Join Date: Dec 2007
    Old 01-01-2008 , 16:39   Re: Simple Spawn Protection V1.0
    Reply With Quote #8

    the admin menu
    __________________
    Neo_Bahamut_19 is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 01-02-2008 , 07:49   Re: Simple Spawn Protection V1.0
    Reply With Quote #9

    Maybe you need to explain how spawn protection could even be added to the menu....
    __________________
    I'm a blast from the past!
    ferret is offline
    Neo_Bahamut_19
    Senior Member
    Join Date: Dec 2007
    Old 01-02-2008 , 10:32   Re: Simple Spawn Protection V1.0
    Reply With Quote #10

    Basically a on/off switch, because some maps are so small that if you have that spawn protection, it makes one team overpower the other team, it could also have a way so that you could do something like Server Management>Spawn Protection>1 Second/5 Seconds/ 10 Seconds/ ect. as well as a way to do possibly a per map config as well to further help people with this, it could end up being a very useful tool for servers like mine where we play only custom maps where spawn camping can be a huge hassle...

    Thats just a few thoughts ;)
    __________________
    Neo_Bahamut_19 is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 13:23.


    Powered by vBulletin®
    Copyright ©2000 - 2020, vBulletin Solutions, Inc.
    Theme made by Freecode