View Single Post
Author Message
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 05-17-2012 , 00:33   [TF2] Smarter Spawns - Spawn Protection
Reply With Quote #1

[TF2] Smarter Spawns
Version 1.0.1


Description:
Players in spawns who are being attacked from outside of spawn will take reduced damage.
Players outside spawn being attacked from players inside spawn will also take reduced damage.
Damage scaling is configurable and can also be increased instead of reduced.
Cvars:
  • smarter_spawns
    • Plugin Version
  • smarter_spawns_damage_inspawn
    • The damage percentage players inside spawn will take from players outside.
    • Min: 0.0
    • Max: 2.0
    • Default: 0.25 (or 25% of total damage)
  • smarter_spawns_damage_outsidespawn
    • The damage percentage players outside spawn will take from players inside.
    • Min: 0.0
    • Max: 2.0
    • Default: 0.50 (or 50% of total damage)

Install Instructions:

  1. Place SmarterSpawns.smx into your addons/sourcemod/plugins/ folder.


Notes:
This plugin uses the func_respawnroom entity to detect if a player is inside or outside of spawn. If your map doesn't have them or is sloppy with them, it's your problem. Don't whine when it doesn't do anything.
Requires SDKHooks and will not compile on the forums. Grab the .smx or compile it yourself.

Version History:
  • V1.0.0
    • Initial Release
  • V1.0.1
    • Minor optimizations
Total downloads as prior to last edit: 2
Attached Files
File Type: smx SmarterSpawns.smx (4.2 KB, 1379 views)
File Type: sp Get Plugin or Get Source (SmarterSpawns.sp - 907 views - 4.8 KB)
__________________

Last edited by DarthNinja; 05-17-2012 at 01:46.
DarthNinja is offline