Raised This Month: $ Target: $400
 0% 

[L4D1 & L4D2] Kick Special Infected Bots After Death [v1.0.2 | 17-August-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
8584
Plugin Version:
1.0.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    28 
    Plugin Description:
    Automatically kicks special infected bots right after death
    Old 11-03-2023 , 16:51   [L4D1 & L4D2] Kick Special Infected Bots After Death [v1.0.2 | 17-August-2024]
    Reply With Quote #1

    Description

    Automatically kicks special infected bots right after death.

    Why

    Special infected bots take around 6 seconds to be kicked from the server upon death, consuming client slots until then.
    Kicking right after death will increase their spawn rate success related to having "no slots" available.

    Features
    • Allow setting which special infected bot should be kicked.
    • Allow speeding up the Tank incapacitated animation to kick.
    • Allow setting to emit death sound on kick.

    Cvars

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

    PHP Code:
    // Emit death sound on kick.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_kick_si_bot_on_death_emit_sound "1"

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

    // Which special infected should be kicked right after being killed.
    // 1 = SMOKER, 2 = BOOMER, 4 = HUNTER, 8 = SPITTER, 16 = JOCKEY, 32 = CHARGER, 64 = TANK.
    // Add numbers greater than 0 for multiple options.
    // Example: "127", enables for all SI.
    // -
    // Default: "127"
    // Minimum: "0.000000"
    // Maximum: "127.000000"
    l4d_kick_si_bot_on_death_si "127"

    // Kicks the Tank bot when it becomes incapacitated.
    // 0 = Disable, 1 = Enable.
    // Note: must have TANK flag enabled on "l4d_kick_si_bot_on_death_si".
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_kick_si_bot_on_death_tank_incap "1" 
    Admin Commands
    • sm_print_cvars_l4d_kick_si_bot_on_death => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes

    Known Issues
    • The acid left by Spitter's death does not increase the "Intensity" value for survivors, which increases the difficulty for players who want to use "Director mechanism" to pass the level. (reported by shizuku

    Related Messages
    • Dropped <BOT> from server (Kicked by Console : infected team is full)
    • Dropped <BOT> from server (Kicked by Console : death anim finished)

    Related Plugins

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

    Thank you!

    Installation
    • Put the "l4d_kick_si_bot_on_death.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_kick_si_bot_on_death.sp - 203 views - 28.5 KB)
    __________________

    Last edited by Marttt; 08-17-2024 at 23:38.
    Marttt is offline
    Lider99
    Member
    Join Date: Mar 2020
    Old 11-04-2023 , 02:48   Re: [L4D1 & L4D2] Kick Special Infected Bots After Death [v1.0.1 | 03-November-2023]
    Reply With Quote #2

    Good day Marttt, I personally had such problems on the server that special zombies were inactive. They were idle until I killed them through the admin panel and the server was very loaded at that time. will this help in such cases?
    __________________
    If I unintentionally insulted or offended you, then it's not me, but Google translate
    Lider99 is offline
    Fraggor
    Member
    Join Date: Jun 2020
    Old 11-07-2023 , 19:34   Re: [L4D1 & L4D2] Kick Special Infected Bots After Death [v1.0.1 | 03-November-2023]
    Reply With Quote #3

    You can "skip" the tank's death animation by setting the cvar z_tank_incapacitated_health to 0, I think it has the same exact effect as to your method
    Code:
    SetEntProp(client, Prop_Data, "m_iHealth", 0);
    Nonetheless, Thanks for the effort @Marttt.
    Fraggor is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 11-07-2023 , 19:36   Re: [L4D1 & L4D2] Kick Special Infected Bots After Death [v1.0.1 | 03-November-2023]
    Reply With Quote #4

    Quote:
    Originally Posted by Lider99 View Post
    will this help in such cases?
    Won't work in these cases. Plugin only runs in SI death/incap.

    Quote:
    Originally Posted by Fraggor View Post
    You can "skip" the tank's death animation by setting the cvar z_tank_incapacitated_health to 0
    Work most of the time, but doesn't when Tank dies by molotov. That's why.
    __________________

    Last edited by Marttt; 11-08-2023 at 06:23.
    Marttt is offline
    chungocanh12
    Member
    Join Date: Apr 2023
    Location: Việt Nam
    Old 11-09-2023 , 22:53   Re: [L4D1 & L4D2] Kick Special Infected Bots After Death [v1.0.1 | 03-November-2023]
    Reply With Quote #5

    nice plugin, thanks mate!!!
    chungocanh12 is online now
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 04-18-2024 , 11:52   Re: [L4D1 & L4D2] Kick Special Infected Bots After Death [v1.0.1 | 03-November-2023]
    Reply With Quote #6

    Just let people know, if you install this plugin,
    There are no any death sounds from special infected because they were kicked instantly right after death.
    __________________

    Last edited by HarryPotter; 04-18-2024 at 11:55.
    HarryPotter is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 04-18-2024 , 12:48   Re: [L4D1 & L4D2] Kick Special Infected Bots After Death [v1.0.1 | 03-November-2023]
    Reply With Quote #7

    I may add a setting to kill on next frame or timer in a future release.
    __________________
    Marttt is offline
    shizuku
    Junior Member
    Join Date: Oct 2022
    Old 06-11-2024 , 06:29   Re: [L4D1 & L4D2] Kick Special Infected Bots After Death [v1.0.1 | 03-November-2023]
    Reply With Quote #8

    When I added this plugin, the acid left by SPITTER's death does not increase the "Intensity" value for survivors, which increases the difficulty for players who want to use "Director mechanism" to pass the level
    shizuku is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 08-17-2024 , 23:29   Re: [L4D1 & L4D2] Kick Special Infected Bots After Death [v1.0.2 | 17-August-2024]
    Reply With Quote #9

    Quote:
    Originally Posted by shizuku View Post
    When I added this plugin, the acid left by SPITTER's death does not increase the "Intensity" value for survivors, which increases the difficulty for players who want to use "Director mechanism" to pass the level
    I believe it is a bug, probably they didn't consider the intensity when the acid has no owner connected,
    in this case, is still possible to use the plugin cvar (l4d_kick_si_bot_on_death_si) to ignore the Spitter class.

    *added to Known Issues section.
    __________________

    Last edited by Marttt; 08-17-2024 at 23:39.
    Marttt is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 08-17-2024 , 23:32   Re: [L4D1 & L4D2] Kick Special Infected Bots After Death [v1.0.1 | 03-November-2023]
    Reply With Quote #10

    Plugin updated 1.0.2

    1.0.2 (17-August-2024)
    - Added cvar to emit death sound on kick. (thanks "HarryPotter" for reporting)
    __________________

    Last edited by Marttt; 08-17-2024 at 23:39.
    Marttt 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 02:55.


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