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

[L4D1 & L4D2] Kick Special Infected Bots After Death [v1.0.1 | 03-November-2023]


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.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    15 
    Plugin Description:
    Automatically kicks special infected bots right after death
    Old 11-03-2023 , 15:51   [L4D1 & L4D2] Kick Special Infected Bots After Death [v1.0.1 | 03-November-2023]
    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.

    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:
    // 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_incapacitated "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

    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 - 433 views - 16.0 KB)
    __________________

    Last edited by Marttt; 11-13-2023 at 19:00.
    Marttt is offline
    Lider99
    Member
    Join Date: Mar 2020
    Old 11-04-2023 , 01: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
    Junior Member
    Join Date: Jun 2020
    Old 11-07-2023 , 18: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 , 18: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 05:23.
    Marttt is offline
    chungocanh12
    Member
    Join Date: Apr 2023
    Location: Việt Nam
    Old 11-09-2023 , 21: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 offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 04-18-2024 , 10: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 10:55.
    HarryPotter is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 04-18-2024 , 11: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
    Reply



    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 11:12.


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