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

Solved [L4D2] Common limits don't work in finales


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vikingo12
Member
Join Date: Nov 2018
Old 06-26-2022 , 11:11   [L4D2] Common limits don't work in finales
Reply With Quote #1

c5m5 as example, setting z_common_limit to 1 doesn't limit commons to 1, there's still like 15 of them at once

Last edited by vikingo12; 06-27-2022 at 16:12.
vikingo12 is offline
Toranks
Senior Member
Join Date: Dec 2021
Location: Spain
Old 06-27-2022 , 07:07   Re: [L4D2] Common limits don't work in finales
Reply With Quote #2

That is managed by the director. If you want to change the values of the director, you have to edit the scripts or use a specific plugin for that.
Toranks is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 06-27-2022 , 11:15   Re: [L4D2] Common limits don't work in finales
Reply With Quote #3

Like @Toranks said, z_common_limit works but when a director vscript (.nut files) is called, is replaced by the vscript settings.

Just as an example, you may have this bug on c6m3_port map.

The vscript (c6m3_port.nut) calls that function:

PHP Code:
DirectorOptions <-
{
    
CommonLimit 30

So your cvar is overridden by these settings.

You can use Left 4 Dhooks Direct to override these settings as well with L4D2_GetScriptValueInt

Just do a google search with that text you may found some examples.

This plugin used to work in the past, don't know nowadays tho:
[L4D2] VScript Director Options Unlocker
__________________

Last edited by Marttt; 06-27-2022 at 14:03.
Marttt is offline
sorallll
Senior Member
Join Date: Oct 2018
Old 06-27-2022 , 15:31   Re: [L4D2] Common limits don't work in finales
Reply With Quote #4

l4d2_director_commonlimit_block
sorallll is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-27-2022 , 15:45   Re: [L4D2] Common limits don't work in finales
Reply With Quote #5

Changing the VScript value "CommonLimit" had no effect and only reduced the number slightly, still more than 1 was spawning for example when z_common_limit was set to 1. So I've written a simple plugin to completely fix over spawning: Common Limiter
__________________
Silvers is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 06-27-2022 , 17:10   Re: [L4D2] Common limits don't work in finales
Reply With Quote #6

Actually, Dragokas already did a similar plugin

[L4D1 & L4D2] Zombie limits

I'm not certain but I believe CommonLimit is not the only variable that VScripts overwrites, still has other values like MobMinSize, MobMaxSize that may change the common size
__________________

Last edited by Marttt; 06-27-2022 at 17:16.
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 14:31.


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