Raised This Month: $ Target: $400
 0% 

Game mode changes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
A1ekin
Member
Join Date: Jul 2021
Old 08-30-2022 , 09:39   Game mode changes
Reply With Quote #1

I began to notice very often that when collecting a lobby, players get to my server and change the game mode from versus to co-op (or another)

How can I block the change of game mode?
A1ekin is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-30-2022 , 09:47   Re: Game mode changes
Reply With Quote #2

Solved [L4D2] Block Map
__________________
Do not Private Message @me
Bacardi is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 08-30-2022 , 11:21   Re: Game mode changes
Reply With Quote #3

Actually, this only redirects to a whitelist map, the game mode itself can still be changed from the lobby room.

This thread has a similar topic:
https://forums.alliedmods.net/showthread.php?t=178017

The solution would be similar but game mode stuff has a lot of specific behaviours
__________________

Last edited by Marttt; 08-30-2022 at 11:23.
Marttt is online now
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 08-30-2022 , 15:22   Re: Game mode changes
Reply With Quote #4

write down cvars in cfg/server.cfg to force game mode consistently

PHP Code:
//coop, versus, survival
sm_cvar mp_gamemode "coop" 
__________________

Last edited by HarryPotter; 08-30-2022 at 16:06.
HarryPotter is offline
A1ekin
Member
Join Date: Jul 2021
Old 09-03-2022 , 08:51   Re: Game mode changes
Reply With Quote #5

thanks everyone for the advice, I was able to solve the problems myself

it turns out that in order for the game to change the mode when loading, you need to write not "sv_gametypes", but "mp_gamemode"

Adding two values to server.cfg solved my problem
Code:
sm_cvar sv_gametypes "versus"
sm_cvar mp_gamemode "versus"
but there is one more question
how to prevent players from creating a private lobby (friends only)

Last edited by A1ekin; 09-04-2022 at 11:49.
A1ekin is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-03-2022 , 11:49   Re: Game mode changes
Reply With Quote #6

have not noticed before.
Maybe this is fix for those lobby connections which change empty dedicated server game mode to else.

Code:
"sv_gametypes" = "coop,realism,survival,versus,scavenge,dash,holdout,shootzones" ( def. "" )
FCVAR_GAMEDLL FCVAR_RELEASE 
- Allowable game types, usually set on server launch command line.
__________________
Do not Private Message @me
Bacardi is offline
A1ekin
Member
Join Date: Jul 2021
Old 09-05-2022 , 10:14   Re: Game mode changes
Reply With Quote #7

My last question has not been answered yet.
I'll leave it here again, just in case
how to prevent players from creating a private lobby (friends only)
I saw on other servers how they do it

I really don't like that players connect through the lobby to my server and prevent other players from playing on this server, occupying it only with two or four people
A1ekin is offline
sorallll
Senior Member
Join Date: Oct 2018
Old 09-05-2022 , 10:24   Re: Game mode changes
Reply With Quote #8

Quote:
Originally Posted by A1ekin View Post
My last question has not been answered yet.
I'll leave it here again, just in case
how to prevent players from creating a private lobby (friends only)
I saw on other servers how they do it

I really don't like that players connect through the lobby to my server and prevent other players from playing on this server, occupying it only with two or four people
L4D2 Block match connect
sorallll is offline
A1ekin
Member
Join Date: Jul 2021
Old 09-06-2022 , 17:14   Re: Game mode changes
Reply With Quote #9

Quote:
Originally Posted by sorallll View Post
As I understand it, this completely prohibits connection through the lobby. And I need to ban only the private lobby.
A1ekin 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 17:39.


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