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

[L4D2] Area of Denial (1.6) [28-Apr-2021]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
2336
Plugin Version:
1.6
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    30 
    Plugin Description:
    Removes spitter acid and damage from players in restricted areas or slays them.
    Old 05-15-2011 , 12:09   [L4D2] Area of Denial (1.6) [28-Apr-2021]
    Reply With Quote #1

    About:

    When a player is out of bounds, the AI Director creates Spitter acid under the players feet. This plugin detects when the acid is created and can remove it. The game also makes the player damage themself by 10HP of DMG_GENERIC. This plugin can prevent that damage or slay the player.



    Thanks:
    • ZombieAssassinator - For the request/idea and help testing.


    CVars:

    Saved to l4d2_area_of_denial.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Off, 1=Remove spit and prevent damage to player, 2=Slay player.
    l4d2_area_of_denial_enable "1"

    // Show in chat when someone is slayed. 0=Off, 1=To all. 2=To victim.
    l4d2_area_of_denial_print "1"

    // Area of Denial plugin version.
    l4d2_area_of_denial_version 

    Changes:
    Code:
    1.6 (28-Apr-2021)
        - Fixed the plugin crashing servers on some map transitions. Thanks to "Xanaguy" for reporting.
    
    1.5 (09-Oct-2020)
        - Changed "OnClientPostAdminCheck" to "OnClientPutInServer" - to fix any issues if Steam service is down.
    
    1.4 (16-Jun-2020)
        - Fixed not loading cvars on plugin start. Thanks to "Electr000999" for reporting.
        - Changed "l4d2_area_of_denial_enable" default value to be "1" instead.
    
    1.3 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Fixed plugin not compiling when debug enabled. ("cannot find method or property Handle.WriteLine").
        - Plugin now responds faster instead of 0.1 second delay.
    
    1.2 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
    
    1.1 (10-May-2012)
        - Limited the plugin to all survival modes only.
        - Fixed a rare bug which could crash the server.
        - Debug logging turned off. Set DEBUG 1 in source to turn on.
    
    1.0 (15-May-2011)
        - Initial release.

    Installation:
    • Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_area_of_denial.sp - 639 views - 7.9 KB)
    __________________

    Last edited by Silvers; 04-28-2021 at 05:45.
    Silvers 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 05:24.


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