Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Common Limiter (1.1) [02-Oct-2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
8090
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    15 
    Plugin Description:
    Limit number of common infected to the z_common_limit cvar value
    Old 06-27-2022 , 15:44   [L4D & L4D2] Common Limiter (1.1) [02-Oct-2023]
    Reply With Quote #1

    About:
    • Simply deletes common infected from spawning if there are currently more than the z_common_limit cvar value alive.
    • If you want to delay deletion by 1 second use this version here.



    Thanks:


    Changes:
    Code:
    1.1 (02-Oct-2023)
        - Changes to fix possible entity count errors.
    
    1.0 (27-Jun-2022)
        - Initial release.


    Installation:
    1. 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 (l4d_common_limiter.sp - 310 views - 4.1 KB)
    __________________

    Last edited by Silvers; 05-05-2024 at 15:48.
    Silvers is offline
    thewintersoldier97
    Senior Member
    Join Date: Aug 2021
    Location: Vietnam
    Old 06-30-2022 , 12:09   Re: [L4D & L4D2] Common Limiter (1.0) [27-Jun-2022]
    Reply With Quote #2

    Hi Silvers, nice work! May I ask what the different between your plugin and Dragokas's Zombie limits?
    __________________

    Looking for some fun!
    thewintersoldier97 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-30-2022 , 15:17   Re: [L4D & L4D2] Common Limiter (1.0) [27-Jun-2022]
    Reply With Quote #3

    The difference is I didn't know another one already existed for this. This one only affects commons.
    __________________
    Silvers is offline
    thewintersoldier97
    Senior Member
    Join Date: Aug 2021
    Location: Vietnam
    Old 07-01-2022 , 08:23   Re: [L4D & L4D2] Common Limiter (1.0) [27-Jun-2022]
    Reply With Quote #4

    Well the more the merrier haha, thank you for taking your time to write this
    __________________

    Looking for some fun!
    thewintersoldier97 is offline
    WhatsAnName
    Member
    Join Date: Jun 2018
    Old 09-18-2022 , 14:09   Re: [L4D & L4D2] Common Limiter (1.0) [27-Jun-2022]
    Reply With Quote #5

    great plugin!
    WhatsAnName is offline
    Mi.Cura
    Veteran Member
    Join Date: Dec 2016
    Location: Brazil
    Old 11-18-2022 , 09:05   Re: [L4D & L4D2] Common Limiter (1.0) [27-Jun-2022]
    Reply With Quote #6

    Hello friends,

    I'm racking my brain trying to use different common_limit values per map.
    Does anyone have any suggestions on how I could do this?
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie
    Mi.Cura is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 11-18-2022 , 09:07   Re: [L4D & L4D2] Common Limiter (1.0) [27-Jun-2022]
    Reply With Quote #7

    Quote:
    Originally Posted by Mi.Cura View Post
    Hello friends,

    I'm racking my brain trying to use different common_limit values per map.
    Does anyone have any suggestions on how I could do this?
    Map configs with prefix support
    __________________
    Silvers is offline
    Mi.Cura
    Veteran Member
    Join Date: Dec 2016
    Location: Brazil
    Old 11-18-2022 , 09:58   Re: [L4D & L4D2] Common Limiter (1.0) [27-Jun-2022]
    Reply With Quote #8

    Quote:
    Originally Posted by Silvers View Post
    Thanks Silvers,
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie
    Mi.Cura is offline
    ball2hi
    Senior Member
    Join Date: Feb 2010
    Old 05-04-2024 , 13:48   Re: [L4D & L4D2] Common Limiter (1.1) [02-Oct-2023]
    Reply With Quote #9

    I absolutely love this plugin. It's simple, and covers exactly what I needed for my servers. A few (poorly-made) custom campaigns forcibly spawn infinite common infected. If the players don't keep up with killing everything, suddenly you'll have +100 common infected and the server struggling to function. Seriously, this is a life saver.

    I don't know if you take requests for adding things to plugins. Reading through the code, I think it immediately deletes common infected as soon as the number goes over z_common_limit. I was curious if maybe a timer could be added before common infected are deleted?

    The reason I ask is this:

    For vanilla maps where the z_common_limit and everything else are default (30), if survivors are before a room/corner which is full of uncleared/unaggroed common infected (30) and the director spawns a random horde, the director seems to spawn slightly higher than z_common_limit sometimes reaching 31, 32, and maybe 33 before using it's own despawning algorithm to despawn idle common infected as it transfers them to be spawned in the horde. This generally happens very fast, in probably less than 1 second. After that, the director seems to be pretty on top of keeping the horde within the z_common_limit.

    Right now I think the plugin doesn't allow time for the director to do it's own clean up before, making natural hordes on vanilla campaigns slightly weaker if there are already max idle common infected on the map, which is pretty common. If possible, could a 1 second timer be added when common start spawning over the z_common_limit, and after that timer the plugin starts cleaning up immediately any common that spawn past z_common_limit for up to a set amount of time before becoming passive again?

    Thanks again for this plugin!
    ball2hi is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-05-2024 , 15:47   Re: [L4D & L4D2] Common Limiter (1.1) [02-Oct-2023]
    Reply With Quote #10

    Code:
    1.2 (05-May-2024)
    	- This version delays deleting by 1 second. Requested by "ball2hi".
    Keeping this here for those who want 1 second delay, and leaving the other version on main post.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_common_limiter.sp - 29 views - 4.4 KB)
    __________________
    Silvers 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 08:11.


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