Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TF2] enabling STV, changing level, and then disabling STV via any method causes unintended behavior #2778

Open
sapphonie opened this issue Jun 22, 2019 · 1 comment

Comments

@sapphonie
Copy link

sapphonie commented Jun 22, 2019

I'm probably not the first person to find this out, but whenever you enable STV, changelevel, and then disable it with tv_stop or some other method, your server's playerlimit will get changed to whatever you had tv_maxclients set to. If you haven't changed tv_maxclients from default your server will crash as its visible slot count will be changed to 128.

What gives? I really don't know. The worst part about this is, that, as best as I can tell, there's no way to unload the STV bot without this happening, except for restarting the server wholly.

tv_stop does it.
sm_kick @Bots does it. (sourcemod base command)
tv_enable 0 and a changelevel also does it.

If that wasn't enough, it'll also mess up your server's slot count up until you reenable STV, or, again, completely restart the server.

I originally thought it was something with sv_visiblemaxplayers, but regardless of what it's set to, this behavior still occurs.

@SirBlockles
Copy link

This also affects clients' interaction with the server in the server browser - if the player cap is met or exceeded by an altered max player count, clients will not be able to connect through the browser, but can still direct connect via console. Setting the STV's max slot count to zero (ie for recording demos and not for live feed) and performing this bug will make the server simply not show a player count at all, as well as (for some reason) not show the currently active map (screenshot attached).
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants