Page 1 of 1

"Team is full" message

Posted: Tue Sep 30, 2014 4:54 pm
by 8guawong
Just found out today CSGO have a really stupid hard coded team limit

"Team is full" message appears when a team has as many players as the half of the max players

so... basically if you have 20 slot server once one team is filled with 10 players no more players can join terrorist.. but this is a problem for some mg maps and jailbreak mod where team are unbalanced

so i was wondering if there is someway we can bypass this stupid team limit????

i'm thinking using this event "jointeam_failed" and switch player to desired team manually?

Code: Select all

        "jointeam_failed"
        {
                "userid"        "short"
                "reason"        "byte"          // 0 = team_full
        }


Syntax: Select all

from events import Event
from players.helpers import index_from_userid
from filters.players import PlayerIter

@Event
def jointeam_failed(game_event):
userid = game_event.get_int('userid')
reason = game_event.get_int('reason')

index = index_from_userid(userid)
player = PlayerEntity(index)

if reason == 0:
player.set_team(3)

Posted: Tue Sep 30, 2014 5:06 pm
by L'In20Cible

Code: Select all

mp_limitteams 0

Posted: Tue Sep 30, 2014 5:11 pm
by 8guawong
L'In20Cible wrote:

Code: Select all

mp_limitteams 0


no that doesn't work ;)

Posted: Tue Sep 30, 2014 9:30 pm
by L'In20Cible
Then I have no clue.. This showed up as a valid ConVar when I launched my test server earlier. Maybe some game-mode specific config?

Posted: Tue Sep 30, 2014 11:02 pm
by Omega_K2
The map may not have more then 10 spawn points. Might wanna check that. CSGO quite frankly has many issues when trying to code for it, which makes it overall terrible for modded srevers :/

Posted: Tue Sep 30, 2014 11:05 pm
by 8guawong
L'In20Cible wrote:Then I have no clue.. This showed up as a valid ConVar when I launched my test server earlier. Maybe some game-mode specific config?


well its csgo and you provided the events yourself :cool:

http://www.sourcepython.com/showthread.php?158-Info-list-of-CS-GO-events&p=947&viewfull=1#post947

Omega_K2 wrote:The map may not have more then 10 spawn points. Might wanna check that. CSGO quite frankly has many issues when trying to code for it, which makes it overall terrible for modded srevers :/


no map supports 32 spawns or more!

Posted: Wed Oct 01, 2014 1:36 am
by L'In20Cible
Well, I mean that I have no clue why this variable is not working.

Posted: Wed Oct 01, 2014 7:24 am
by La Muerte
Probably wrong, but try adding mp_limitteams 0 in startline?

Posted: Sat Oct 04, 2014 1:49 pm
by 8guawong
take a look at this

https://forums.alliedmods.net/showthread.php?t=219812

i sorta don't wanna use it b/c there is some bugs with it ie. player joining undesired team

can we do something like that with SP?