Raised This Month: $51 Target: $400
 12% 

[TF2] Smarter Spawns - Spawn Protection


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
2956
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Reduces damage done to players in spawns without using godmode.
    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
     



    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 17:35.


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