Raised This Month: $62 Target: $400
 15% 

[L4D2] Spitter Dies After Spit (SDAS) [v1.2.0 | 24-April-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
6457
Plugin Version:
1.2.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Kills the Spitter some seconds later after spitting
    Old 03-03-2019 , 20:29   [L4D2] Spitter Dies After Spit (SDAS) [v1.2.0 | 24-April-2021]
    Reply With Quote #1

    L4D2 ONLY

    Description

    This plugin is based on Spitter Auto Kill by diorfo, with some improvements.

    It kills the Spitter some seconds later after spitting.

    Features
    • Allow setting how long the spitter lives after spitting.
    • Allow setting immunity based on client flags.
    • Allow setting how the messages should be sent to the client. (chat/hint/instructor)
    • Allow setting a sound for the countdown.

    Preview



    Cvars

    A configuration file named "l4d2_sdas.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // How long (in seconds) will Spitter have after spitting before being killed by the plugin.
    // -
    // Default: "10"
    // Minimum: "1.000000"
    l4d2_sdas_alive_time "10"

    // Enables/Disables the plugin behavior on Spitter bots.
    // 0 = OFF, 1 = ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_sdas_bots "1"

    // Spitter countdown sound after spit.
    // Empty = OFF.
    // -
    // Default: "buttons/blip1.wav"
    l4d2_sdas_countdown_sound "buttons/blip1.wav"

    // Display type for the "Dead By Spit" message.
    // 0 = OFF, 1 = CHAT, 2 = HINT.
    // Add numbers greater than 0 for multiple options.
    // Example: "3", displays the message in CHAT and as a HINT.
    // -
    // Default: "3"
    // Minimum: "0.000000"
    // Maximum: "3.000000"
    l4d2_sdas_dead_by_spit_msg "3"

    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_sdas_enable "1"

    // Players with these flags are immune to the plugin behaviour.
    // Empty = none.
    // Known values at "\addons\sourcemod\configs\admin_levels.cfg".
    // Example: "az", will apply immunity to players with "a" (reservation) or "z" (root) flag.
    // -
    // Default: ""
    l4d2_sdas_flags ""

    // Display type for the "Spit Countdown" message.
    // 0 = OFF, 1 = CHAT, 2 = HINT, 4 = INSTRUCTOR HINT.
    // Add numbers greater than 0 for multiple options.
    // Example: "3", displays the message in CHAT and as a HINT.
    // -
    // Default: "5"
    // Minimum: "0.000000"
    // Maximum: "7.000000"
    l4d2_sdas_spit_countdown_msg "5"

    // Display type for the "Spit" message.
    // 0 = OFF, 1 = CHAT, 2 = HINT, 4 = INSTRUCTOR HINT.
    // Add numbers greater than 0 for multiple options.
    // Example: "3", displays the message in CHAT and as a HINT.
    // -
    // Default: "5"
    // Minimum: "0.000000"
    // Maximum: "7.000000"
    l4d2_sdas_spit_msg "5" 
    Admin Commands
    • sm_print_cvars_l4d2_sdas => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Current Translations
    • en - English
    • es - Spanish
    • hu - Hungarian
    • pt - Brazilian Portuguese
    • pt_p - Portuguese

    Notes
    • SDAS stands for Spitter Dies After Spit.
    • Spitter class is only available in L4D2.
    • There is no INSTRUCTOR HINT option for l4d2_sdas_dead_by_spit_msg cvar because Instructor Hints do not display when the client is dead.

    To Do
    • Create a configuration to customize the instructor hint stages (stage, color, icon, shake, pulse).

    Thank you!

    Related Plugins

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Installation
    • Put the "l4d2_sdas_phrases.txt" file in your "\addons\sourcemod\translations\" folder.
    • Put the "l4d2_sdas.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: txt l4d2_sdas.phrases.txt (2.6 KB, 21 views)
    File Type: sp Get Plugin or Get Source (l4d2_sdas.sp - 36 views - 25.0 KB)
    __________________

    Last edited by Marttt; 05-01-2021 at 22:29.
    Marttt is online now
    Crasher_3637
    Veteran Member
    Join Date: May 2012
    Old 03-04-2019 , 17:24   Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.0.4 | 04-March-2019]
    Reply With Quote #2

    I disagree with the use of a cvar to determine immunity flags. Please consider using CheckCommandAccess(). You can use an arbitrary command as an override.

    Example:

    PHP Code:
    CheckCommandAccess(client"sdas_override"ADMFLAG_SLAYfalse); 
    Usage:

    PHP Code:
    Overrides
    {
            
    "sdas_override"        "abcdefz"

    __________________
    AFK like JFK
    Crasher_3637 is offline
    Striker black
    Member
    Join Date: Apr 2013
    Old 02-02-2020 , 00:30   Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.1.6 | 13-July-2019]
    Reply With Quote #3

    Hello, I get this error

    Code:
    L 02/02/2020 - 00:05:56: SourceMod error session started
    L 02/02/2020 - 00:05:56: Info (map "c11m3_garage") (file "errors_20200202.log")
    L 02/02/2020 - 00:05:56: [l4d2_sdas.smx] Error. File "buttons/blip1.wav" not found in "sound" folder. The plugin will use the default value "buttons/blip1.wav".
    L 02/02/2020 - 00:23:23: Error log file session closed.
    L 02/02/2020 - 00:23:43: SourceMod error session started
    L 02/02/2020 - 00:23:43: Info (map "c2m1_highway") (file "errors_20200202.log")
    L 02/02/2020 - 00:23:43: [l4d2_sdas.smx] Error. File "buttons/blip1.wav" not found in "sound" folder. The plugin will use the default value "buttons/blip1.wav".
    L 02/02/2020 - 00:23:43: [l4d2_sdas.smx] Error. File "buttons/blip1.wav" not found in "sound" folder. The plugin will use the default value "buttons/blip1.wav".
    L 02/02/2020 - 00:23:44: Error log file session closed.
    L 02/02/2020 - 00:23:46: SourceMod error session started
    L 02/02/2020 - 00:23:46: Info (map "c2m1_highway") (file "errors_20200202.log")
    L 02/02/2020 - 00:23:46: [l4d2_sdas.smx] Error. File "buttons/blip1.wav" not found in "sound" folder. The plugin will use the default value "buttons/blip1.wav".
    L 02/02/2020 - 00:23:47: Error log file session closed.
    L 02/02/2020 - 00:23:48: SourceMod error session started
    L 02/02/2020 - 00:23:48: Info (map "c2m1_highway") (file "errors_20200202.log")
    L 02/02/2020 - 00:23:48: [l4d2_sdas.smx] Error. File "buttons/blip1.wav" not found in "sound" folder. The plugin will use the default value "buttons/blip1.wav".
    Striker black is offline
    Striker black
    Member
    Join Date: Apr 2013
    Old 02-02-2020 , 18:05   Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.1.6 | 13-July-2019]
    Reply With Quote #4

    Hi, I'm using linux and these messages keep coming out

    Quote:
    L 02/02/2020 - 17:594: Error log file session closed.
    L 02/02/2020 - 17:596: SourceMod error session started
    L 02/02/2020 - 17:596: Info (map "c2m1_highway") (file "errors_20200202.log")
    L 02/02/2020 - 17:596: [l4d2_sdas.smx] Error. File "buttons/blip1.wav" not found in "sound" folder. The plugin will use the default value "buttons/blip1.wav".
    L 02/02/2020 - 17:597: Error log file session closed.
    L 02/02/2020 - 17:598: SourceMod error session started
    L 02/02/2020 - 17:598: Info (map "c2m1_highway") (file "errors_20200202.log")
    L 02/02/2020 - 17:598: [l4d2_sdas.smx] Error. File "buttons/blip1.wav" not found in "sound" folder. The plugin will use the default value "buttons/blip1.wav".
    Striker black is offline
    KasperH
    Senior Member
    Join Date: Apr 2016
    Location: Hungary
    Old 09-30-2020 , 05:48   Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.1.6 | 13-July-2019]
    Reply With Quote #5

    Added Hungarian.
    Attached Files
    File Type: txt l4d2_sdas.phrases.txt (3.1 KB, 23 views)
    __________________

    "I've Got You In My Sights!"
    KasperH is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 04-24-2021 , 12:57   Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.2.0 | 24-April-2021]
    Reply With Quote #6

    Plugin updated. (code rework)

    I recommend updating the translation .txt file and deleting the .cfg file to auto-generate again or replacing it with the one in from the main post.

    Code:
    1.2.0 (24-April-2021)
        - New version released.
        - Added Hungarian (hu) translation. (thanks to "KasperH")
    __________________
    Marttt is online now
    Kid_Bandes
    Member
    Join Date: May 2010
    Old 04-25-2021 , 02:18   Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.2.0 | 24-April-2021]
    Reply With Quote #7

    Nice one, at least those spitter bots are now more useful instead of running away after spit
    Kid_Bandes is offline
    CryWolf
    Senior Member
    Join Date: Jul 2008
    Location: Romania
    Old 04-29-2021 , 05:42   Re: [L4D2] Spitter Dies After Spit (SDAS) [v1.2.0 | 24-April-2021]
    Reply With Quote #8

    Added Romanian.
    Attached Files
    File Type: txt l4d2_sdas.phrases.txt (2.9 KB, 2 views)
    __________________
    I dont walk trough this world with fear in my heart.
    www.dark-arena.com L4D, CS1.6, CZ Servers
    CryWolf is offline
    Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
    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 16:03.


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