View Single Post
Author Message
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
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 - 3989 views - 3.7 KB)
File Type: txt serverdefense.phrases.txt (742 Bytes, 1965 views)
File Type: zip serverdefense.zip (11.0 KB, 2726 views)

Last edited by Greyscale; 08-17-2008 at 00:16.
Greyscale is offline