Raised This Month: $32 Target: $400
 8% 

[L4D] Friendly-Fire Limit (1.1.1)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
-pk-
Member
Join Date: Feb 2009
Plugin ID:
766
Plugin Version:
1.1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    9 
    Plugin Description:
    Limits friendly-fire damage for Survivors and includes important features for servers.
    Old 02-11-2009 , 22:43   [L4D] Friendly-Fire Limit (1.1.1)
    Reply With Quote #1

    Friendly-Fire Limit (1.1.1)

    This plugin limits friendly-fire damage for Survivors and includes important features for servers. Unlike other plugins, this allows you to keep friendly-fire enabled on your server and set a FF cap per player in case someone trys to grief mid-game.


    Features:
    • Friendly-Fire is always disabled in the saferoom. In addition, you can limit the amount of FF damage a player can deal, or remove friendly-fire from an entire map.
    • When a Friendly-Fire limit is set, any FF damage that a player does above that limit is ignored.
    • You can limit the amount of FF that a player can deal to his Team (l4d_ff_limit) and each Teammate (l4d_ff_teammate).
    • You can limit the amount of FF damage from Grenades/Fire, with both a "soft cap" and "hard cap".
    • You can choose to notify admins when a player reaches the FF limit and/or ban the player automatically (Admin immune). Supports SourceBans.
    • Option to log notifications and bans.
    • Option to Announce FF Status to players (Survivors only).
    • Works in Coop, Versus, and custom maps.
    Notes:
    • l4d_ff_limit must be set to 40 or higher in order to ban with FF damage dealt to Team.
    • l4d_ff_teammate must be set to 30 or higher in order to ban with damage dealt to a Teammate.
    • l4d_ff_limit.cfg is executed on each map change, so any changes made ingame will be cleared. You may add map specific Limit settings to your server's map configs.
    • I will not add a kick feature because the player could rejoin the server and grief all over again. You should use a short ban duration (5-10 minutes) if you want to use it as a kick feature.
    • I will not add notification for the player when they have reached the FF limit. This is to prevent players from autoshotgun spamming pounced victims once they know they can no longer hurt their team.
    CVars:
    Code:
    l4d_ff_limit 60                 // -1 = Block All Damage (full map), 0 = Block All Damage (saferoom only), any other = Player can deal this much damage to his entire Team.
    l4d_ff_teammate 30              // (limit > 0) Player can deal this much damage to each teammate.
    l4d_ff_grendmg_min 20           // (limit > 0) Grenade or Fire damage above this value will still hurt, but will not count against the player's FF limit. any value = Only count this much grendmg, -1 = infinite.
    l4d_ff_grendmg_max_team 40      // (limit > 0) Player can deal this much Grenade or Fire damage to Team before the damage is prevented. 0 = infinite.
    l4d_ff_grendmg_max_teammate 15  // (limit > 0) Player can deal this much Grenade or Fire damage to Teammate before the damage is prevented. 0 = infinite.
    l4d_ff_ban 0                    // 0 = no action, 1 = Ban only if player reaches Team FF limit (limit = 40+), 2 = Ban whichever comes first (limit = 40+) or (teammate = 30+). Use negative values if you require ban by IP address.
    l4d_ff_banduration 0            // (ban > 0) Ban Duration in minutes. 0 = Don't ban but warn the player if they may be permbanned.
    l4d_ff_permban_x 3              // Valid between 2 to 5. A value of 2 will permanently ban the player on their 2nd offense, etc.
    l4d_ff_permban_y 30             // (ban > 0) Only count the number of times the player was warned/banned within this many days. 0 = don't perm ban, any other = number of days.
    l4d_ff_log 1                    // Log players that are banned or reach the FF limit (FriendlyFire.log). 0 = Disable, 1 = Enable.
    l4d_ff_notify 1                 // Notification when players reach the FF limit. 1 = Notify Admins.
    l4d_ff_announce 1               // For Survivors only.  0 = Don't Announce, 1 = Announce Active/Inactive Status (limit = 0) or Announce Limit (limit > 0)
    Changelog:

    1.1.1 (02-21-2009)
    Players will now be logged when they receive a permban warning.
    Fix a player who is warned instead of being banned will no longer have their damage reset.
    Fix admins will no longer be notified that a player has reached the FF limit while the player is being banned.
    1.1.0 (02-18-2009)
    Expert difficulty, (if greater than 0) l4d_ff_limit will be set to 0 (saferoom only) and l4d_ff_teammate will be disabled automatically.
    Advanced difficulty, (if greater than 0) l4d_ff_limit and l4d_ff_teammate will be multiplied by 4.5, and l4d_ff_grenmin will be multilpied by 2.
    1.0.9 (02-17-2009)
    Add cvars l4d_ff_permban_x and l4d_ff_permban_y, X number of bans allowed within Y days until a player is permanently banned.
    If ban duration is set to 0, and l4d_ff_ban is set to 1 or 2, and l4d_ff_permban_y is greater than 0 Days, a player will recieve a warning instead of being banned. The player will be permanently banned once they reach l4d_ff_permban_x warnings/bans.
    1.0.8 (02-15-2009)
    Fix bug in 1.0.7 causing missing name in chat when player is banned.
    1.0.7 (02-14-2009)
    Add ability to ban by IP address instead of clientID, by entering negative l4d_ff_ban values.
    1.0.6 (02-14-2009)
    Admins are immune if they have any of the following flags "abcdfz"
    Fix accidentally banning admins after rewriting the code in 1.0.4.
    Fix grenade damage can now be dealt to a player after reaching the Teammate FF limit, as long as the damage is above grendmg_min (where damage will not be counted as FF) and below grendmg_max.
    1.0.5 (02-13-2009)
    Add l4d_ff_grendmg_min = -1 (infinite).
    1.0.4 (02-13-2009)
    Fix bug when l4d_ff_grendmg_min = 0 (do not count as FF).
    1.0.3 (02-13-2009)
    Add cvar l4d_ff_grendmg_min, Grenade or Fire damage above this value will still hurt, but will not count against the player's FF limit.
    Add cvar l4d_ff_grendmg_max_team, a player can deal this much Grenade or Fire damage to Team before the damage is prevented.
    Add cvar l4d_ff_grendmg_max_teammate, a player can deal this much Grenade or Fire damage to Teammate before the damage is prevented.
    Damage to incapacitated players will no longer count towards FF limit, and will deal the normal damage.
    1.0.2 (02-12-2009)
    Add cvar l4d_ff_teammate, limit max FF that can be dealt to a teammate.
    Add cvar l4d_ff_ban, ban method.
    Add: player's steamid is now logged.
    Improved Coop detection of player left saferoom.
    Fix bug when a player that has gone over the limit could sometimes heal a teammate with FF damage.
    1.0.1 (02-11-2009)
    Add support for SourceBans.
    1.0.0 (02-11-2009)
    initial release.


    Credits:
    Original concept by r5053
    Big Thanks to Testers: Number Six

    Requires: SM 1.2
    Attached Files
    File Type: cfg l4d_ff_limit.cfg (1.7 KB, 3399 views)
    File Type: smx l4d_ff_limit.smx (12.4 KB, 2683 views)
    File Type: sp Get Plugin or Get Source (l4d_ff_limit.sp - 4616 views - 28.4 KB)

    Last edited by -pk-; 02-21-2009 at 19:58.
    -pk- is offline
     


    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 06:09.


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