View Single Post
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