Raised This Month: $252 Target: $400
 63% 

[L4D & L4D2] Saferoom Door Spam Protection (1.5) [20-Sep-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
7104
Plugin Version:
1.5
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    9 
    Plugin Description:
    Only allows the first saferoom door to be opened once and prevents spamming the last door
    Old 05-14-2020 , 22:49   [L4D & L4D2] Saferoom Door Spam Protection (1.5) [20-Sep-2020]
    Reply With Quote #1

    About:
    • Thanks to "SilentBr" for testing.
    • Various optional features:
    1. Prevent closing the first saferoom door once opened.
    2. Prevent players opening or closing the last saferoom door after being used for X seconds. Use the l4d_safe_spam_time_close and l4d_safe_spam_time_open cvars.





    CVars:

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

    PHP Code:
    l4d_safe_spam_allow        "1"     // 0=Plugin off, 1=Plugin on.
    l4d_safe_spam_modes        ""      // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d_safe_spam_modes_off    ""      // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d_safe_spam_modes_tog    "0"     // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d_safe_spam_hint         "1"     // 0=Off. 1=Display a message showing who opened or closed the saferoom door.
    l4d_safe_spam_open         "2"     // 0=Off, 1=Keep the first saferoom door open once opened, 2=Make the first saferoom door fall once opened.
    l4d_safe_spam_time_close   "1.0"   // How many seconds to block after closing the last saferoom door.
    l4d_safe_spam_time_open    "3.0"   // How many seconds to block after opening the last saferoom door.
    l4d_safe_spam_type         "1"     // 0=Off. When the last saferoom door is used enable the timeout on: 1=Open, 2=Close, 3=Both.
    l4d_safe_spam_version      // Saferoom Door Spam Protection plugin version 


    Changes:
    Code:
    1.5 (20-Sep-2020)
        - Blocked door falling on L4D2 "Questionable Ethics" 2nd map (qe2_ep2) to prevent breaking gameplay. Thanks to "Alex101192" for reporting.
        - Fixed the door not always falling in the right direction on some maps.
    
    1.4 (20-Sep-2020)
        - Added a sound effect for when the door breaks and falls.
        - Fixed the door not always falling on some maps.
    
    1.3 (18-Sep-2020)
        - Changed cvar "l4d_safe_spam_open" adding option "2" to make the door fall. Thanks to "yzybb" for requesting.
    
    1.2 (05-Jun-2020)
        - Added cvar "l4d_safe_spam_hint" to control displaying messages when saferoom doors are opened/closed.
        - Added translations. Thanks to "Tonblader" for requesting.
    
    1.1 (15-May-2020)
        - Initial release.
    
    1.0 (30-Aug-2013)
        - Initial creation.


    Installation
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    2. Download "safe_door_spam.phrases.txt" and save to your servers \addons\sourcemod\translations\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_safe_door_spam.sp - 38 views - 18.5 KB)
    File Type: txt safe_door_spam.phrases.txt (176 Bytes, 177 views)
    __________________

    Last edited by Silvers; 09-20-2020 at 17:59.
    Silvers is offline
    SilentBr
    Veteran Member
    Join Date: Jan 2009
    Old 05-14-2020 , 22:51   Re: [L4D & L4D2] Saferoom Door Spam Protection (1.1) [15-May-2020]
    Reply With Quote #2

    This plugins is essential for big coop/versus servers, finally safe room's door won't be a problem anymore.

    Thanks Silvers, you're the best
    SilentBr is offline
    Alex101192
    Senior Member
    Join Date: Aug 2018
    Old 05-15-2020 , 08:42   Re: [L4D & L4D2] Saferoom Door Spam Protection (1.1) [15-May-2020]
    Reply With Quote #3

    Very nice plugins. Thank you a lot silver.
    Alex101192 is offline
    login101
    Senior Member
    Join Date: Sep 2017
    Old 05-19-2020 , 19:58   Re: [L4D & L4D2] Saferoom Door Spam Protection (1.1) [15-May-2020]
    Reply With Quote #4

    good!
    login101 is offline
    Tonblader
    Senior Member
    Join Date: Jul 2011
    Old 06-05-2020 , 04:39   Re: [L4D & L4D2] Saferoom Door Spam Protection (1.1) [15-May-2020]
    Reply With Quote #5

    In addition, can you make me say on the public chat, who was the person who opened and closed the door? (with colors included)
    Tonblader is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-05-2020 , 08:08   Re: [L4D & L4D2] Saferoom Door Spam Protection (1.2) [05-Jun-2020]
    Reply With Quote #6

    Done.
    __________________
    Silvers is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-08-2020 , 09:56   Re: [L4D & L4D2] Saferoom Door Spam Protection (1.2) [05-Jun-2020]
    Reply With Quote #7

    Quote:
    Originally Posted by KRUTIK View Post
    Add to the plugin, if the player plays with the door, the plugin automatically kicks him out of the server.
    If you want to write the code for that I'll add it in, not something I'll do.
    __________________
    Silvers is offline
    KRUTIK
    Member
    Join Date: Feb 2019
    Location: Мос
    Old 08-08-2020 , 09:58   Re: [L4D & L4D2] Saferoom Door Spam Protection (1.2) [05-Jun-2020]
    Reply With Quote #8

    Quote:
    Originally Posted by Silvers View Post
    If you want to write the code for that I'll add it in, not something I'll do.
    Thank you, no longer necessary, I have already done it.
    KRUTIK is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-08-2020 , 10:22   Re: [L4D & L4D2] Saferoom Door Spam Protection (1.2) [05-Jun-2020]
    Reply With Quote #9

    Deletes post and doesn't share. Noted. Thanks. lol
    __________________
    Silvers is offline
    KRUTIK
    Member
    Join Date: Feb 2019
    Location: Мос
    Old 08-08-2020 , 15:57   Re: [L4D & L4D2] Saferoom Door Spam Protection (1.2) [05-Jun-2020]
    Reply With Quote #10

    Quote:
    Originally Posted by Silvers View Post
    Deletes post and doesn't share. Noted. Thanks. lol

    Laugh for health.
    KRUTIK is offline
    Reply


    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:21.


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