Raised This Month: $32 Target: $400
 8% 

Solved [CSGO] Need help with maxrounds and overtime


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ryan2
Senior Member
Join Date: Jul 2020
Old 02-27-2021 , 13:17   [CSGO] Need help with maxrounds and overtime
Reply With Quote #1

This example will be for aim_map. I am trying to create a game mode where the first player to hit 10 win rounds wins the match.

If I set maxrounds to 10 the match will of course only go to 10 rounds, how can I make it so the first player to hit 10 wins the match?

Last edited by Ryan2; 02-28-2021 at 12:39.
Ryan2 is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 02-27-2021 , 13:37   Re: [CSGO] Need help with maxrounds and overtime
Reply With Quote #2

Code:
mp_maxrounds 19 //The maximum amount of rounds
mp_match_can_clinch 1 //Set this to 0 to make it so that the game will be played out, regardless of whether or not it is impossible for one of the teams to catch up with the score and win

Last edited by TomL.; 02-27-2021 at 13:38.
TomL. is offline
Ryan2
Senior Member
Join Date: Jul 2020
Old 02-27-2021 , 16:03   Re: [CSGO] Need help with maxrounds and overtime
Reply With Quote #3

Quote:
Originally Posted by TomL. View Post
Code:
mp_maxrounds 19 //The maximum amount of rounds
mp_match_can_clinch 1 //Set this to 0 to make it so that the game will be played out, regardless of whether or not it is impossible for one of the teams to catch up with the score and win
Added that to my cfg but same results. I used maxround of 4, I won 2 rounds and let opponent win 2 rounds and the match ended as a tie. I want to do first to X wins, maybe I need a custom plugin for this.

Last edited by Ryan2; 02-27-2021 at 16:05.
Ryan2 is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 02-28-2021 , 04:46   Re: [CSGO] Need help with maxrounds and overtime
Reply With Quote #4

Quote:
Originally Posted by TomL. View Post
For CS:GO you basically want to work with these 3 configs.

The autoexec.cfg which will be only executed on server start. It should only contain cvar/commands that have to be set only one time such as sv_downloadurl.

The server.cfg which will be executed after every map change. It should contain basic cvar/commands you want to set which will not be changed by game mode or other configs.

The gamemode_X_server.cfg (X is the gamemode name such as casual) which will be executed every map change after the server.cfg. This file should contain all cvar/commands based on the game mode you want to run like mp_roundtime, mp_maxrounds etc..
You can check the current value of an cvar via server console or with sm_cvar.

mp_match_can_clinch
Code:
"mp_match_can_clinch" = "1" game replicated - Can a team clinch and end the match by being so far ahead that the other team ha
sm_cvar mp_maxrounds

Code:
[SM] Value of cvar "mp_maxrounds": "30"
TomL. is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-28-2021 , 05:31   Re: [CSGO] Need help with maxrounds and overtime
Reply With Quote #5

what game mode is this ? game_type; game_mode

And is mp_teamamtes_are_enemies ?

You want determine round win by one player and not by team ?
Is round based by round time or for example frag limit ?
Bacardi is offline
Ryan2
Senior Member
Join Date: Jul 2020
Old 02-28-2021 , 11:36   Re: [CSGO] Need help with maxrounds and overtime
Reply With Quote #6

Quote:
Originally Posted by TomL. View Post
You can check the current value of an cvar via server console or with sm_cvar.

mp_match_can_clinch
Code:
"mp_match_can_clinch" = "1" game replicated - Can a team clinch and end the match by being so far ahead that the other team ha
sm_cvar mp_maxrounds

Code:
[SM] Value of cvar "mp_maxrounds": "30"
Quote:
Originally Posted by Bacardi View Post
what game mode is this ? game_type; game_mode

And is mp_teamamtes_are_enemies ?

You want determine round win by one player and not by team ?
Is round based by round time or for example frag limit ?
I am using a gamemode I created for 1v1. Here is the cfg:

Quote:
mp_freezetime 0;
mp_endmatch_votenextmap 0;
mp_timelimit 0;
mp_maxrounds 5;
mp_match_can_clinch 1;
mp_overtime_enable 0;
mp_limitteams 1;
sv_allow_votes 0;
mp_free_armor 1;
mp_weapons_allow_map_placed 0;
mp_death_drop_gun 0;
mp_ignore_round_win_conditions 0;
mp_halftime 1;
mp_halftime_duration 5;
mp_restartgame 1;
@Bacardi winner should be determined by round wins, for example first to 5 wins.
Ryan2 is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 02-28-2021 , 11:54   Re: [CSGO] Need help with maxrounds and overtime
Reply With Quote #7

It's maxrounds per match not half.
So first to 5 means you have to set mp_maxrounds to 9 so no tie is possible, only 5-4 or 4-5.

Code:
mp_maxrounds 9 //Uneven rounds so you can't tie
mp_match_can_clinch 1 //Match is over as soon as someone reaches more than half of the maxrounds

Last edited by TomL.; 02-28-2021 at 11:56.
TomL. is offline
Ryan2
Senior Member
Join Date: Jul 2020
Old 02-28-2021 , 12:39   Re: [CSGO] Need help with maxrounds and overtime
Reply With Quote #8

Quote:
Originally Posted by TomL. View Post
It's maxrounds per match not half.
So first to 5 means you have to set mp_maxrounds to 9 so no tie is possible, only 5-4 or 4-5.

Code:
mp_maxrounds 9 //Uneven rounds so you can't tie
mp_match_can_clinch 1 //Match is over as soon as someone reaches more than half of the maxrounds
Ahhh ok, my issue was the uneven round count. Thank you
Ryan2 is offline
B3none
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 05-02-2023 , 06:30   Re: [CSGO] Need help with maxrounds and overtime
Reply With Quote #9

I came to this thread because I was trying to figure out why a retakes server wouldn't go to the max rounds after setting the first 2 commands listed above. I found that my issue was that the mp_timelimit was a low value so it was only playing for 5 minutes then ending the match.

Code:
mp_maxrounds 35 // Set the number of rounds you would like to play
mp_match_can_clinch 0 // Ensure we always play the number of rounds set in mp_maxrounds
mp_timelimit 9999 // Let the match go until the round conditions are met
__________________
B3none 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 10:24.


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