forced team swaps from console?


(TheReij) #1

Noon question, but I need to find out. Is there an admin command that will force players to a different team?


(SRS-Kap) #2

Hi,

You can swap teams as a whole using the ‘admin shuffleTeams’ command. For example:

admin shuffleTeams xp - Shuffle teams based on XP
admin shuffleTeams random - Random shuffle
admin shuffleTeams swap - Direct team swap

You can also use the ‘admin setTeam’ command. If you:

  1. enter ‘admin setTeam’
  2. press SPACEBAR
  3. press TAB

You will get a list of client indices and the corresponding player names. Once you know the client index you want, you can swap them by:

admin setTeam 3 “security”
admin setTeam 2 “resistance”


(Deadwalking) #3

ThankYou for the info!


(TheReij) #4

[QUOTE=SRS-Kap;299273]Hi,

You can swap teams as a whole using the ‘admin shuffleTeams’ command. For example:

admin shuffleTeams xp - Shuffle teams based on XP
admin shuffleTeams random - Random shuffle
admin shuffleTeams swap - Direct team swap

You can also use the ‘admin setTeam’ command. If you:

  1. enter ‘admin setTeam’
  2. press SPACEBAR
  3. press TAB

You will get a list of client indices and the corresponding player names. Once you know the client index you want, you can swap them by:

admin setTeam 3 “security”
admin setTeam 2 “resistance”[/QUOTE]

Tried this several times this evening, this command will not function from RCON. You get the message that it was successful, but it will not actually do the swap.

Maybe the config has an error? here is my current .cgf

//Max players
//This seems to be broken, I think?
si_maxPlayers 16

//Amount of players required to start a match
si_minPlayers 2

//Max players per team
si_maxTeamSize 8

//max HUMAN players
si_maxPlayersHuman 16

//Reserved Slots
si_privateClients "2"
g_privatePassword "****"

//Game Rules
//si_rules sdGameRulesStopWatch
//si_rules sdGameRulesObjective
//si_rules sdGameRulesChallenge
//si_rules sdGameRulesCampaign
si_rules sdGameRulesObjective

//Server Configuration
//Standard
//Advanced
//Competition
//Old Skool
//Custom
applyServerConfig "Custom"

//Set the name of your server
si_name "******"
ai_admin ******

//Password your server?
//0 = No
//1 = Yes
si_needpass 0

//Password for your server - si_needpass NEEDS to be set to 1!
g_password ""

//Set the play mode
//si_playmode 0 = solo
//si_playmode 1 = Co-op
//si_playmode 2 = versus
si_playmode 2

//Allow server to be borrowed by players who are using matchmaking service?
//This will allow the match making service to use your server when it is empy!
net_allowServerHijacking 0

//Admin Access
net_serverRemoteConsolePassword ******

//Set who can join your server
//0 = SOLO
//1 = INVITE ONLY
//2 = FRIENDS & INVITES
//3 = EVERYONE
si_onlineMode 3

//Friendly fire
//0 = Off
//1 = On
si_teamDamage 0

//Enable spectating
//0 = Off
//1 = On
//si_spectators 1

//Server time limit
si_timelimit 30

//Set if players can only join the smaller size team
//0 = Off
//1 = On
si_teamForceBalance 1

//Disable Voting?
//0 = Off
//1 = On
si_disableVoting 0

//Bot Difficulty
//-1 = ANY
//0 = EASY
//1 = NORMAL
//2 = HARD
si_botDifficulty -1

//Percentage of players that need to ready up to start a match
si_readyPercent 51

//Allow players to spawn and play during warm-up period
//0 = Off
//1 = On
si_warmupSpawn 1

//Rim lighting tints on enemies
//0 = Off
//1 = On
si_enemyTintEnabled 1

//Enable rank restrictons
//0 = Off
//1 = On
si_rankRestricted 0

//Restrict player ranks
//si_maxRank 0 = Rank 1 players only
//si_maxRank 1 = Rank 1 and 2 players only
//si_maxRank 2 = Rank 1, 2 and 3 players only
//si_maxRank 3 = Rank 1, 2, 3 and 4 players only
//si_maxRank 4 = All player ranks can join
si_maxRank 4

/////////////////////////////////////////////////
//ONLY ENABLE ONE MAP ROTATION - FIXED OR VOTE!//
/////////////////////////////////////////////////
//Maprotation - FIXED! //The server will run the below maps in the order listed.
//g_mapRotationFixed "mp/aquarium,mp/ccity,mp/reactor,mp/refuel,mp/resort,mp/sectow,mp/shipyard,mp/terminal"

//Maprotation - VOTE! //Server will allow the players to vote which map to play at the end of each round! They can ONLY choose from the maps listed below!
g_mapRotationVote "mp/aquarium,mp/ccity,mp/reactor,mp/refuel,mp/resort,mp/sectow,mp/shipyard,mp/terminal"

spawnServer mp/aquarium



(indirect) #5

[QUOTE=TheReij;300287]Tried this several times this evening, this command will not function from RCON. You get the message that it was successful, but it will not actually do the swap.
[/QUOTE]

Roughly 90% of rcon commands don’t work right now.

The few I’ve got to work are kick, ban, spawnserver.


(SRS-Kap) #6

Hi,

This works through rcon however there are a few things to be aware of:

  1. Obviously ensure rcon has been setup correctly
  2. You must be in a map with players connected
  3. The ‘shuffleTeams’ command uses spectator slots to handle the changeover. Therefore you must:
    3a) Ensure spectating is enabled on the server (si_inhibitSpectators 0)
    3b) Ensure you are playing rules that allow spectators (Campaign and Challenges do not allow spectators)
  4. Provided all the above criteria are met and there are clients connected to the server, the following rcon commands should work correctly:

rcon admin shuffleTeams swap
rcon admin shuffleTeams random
rcon admin shuffleTeams xp

Hope this helps :slight_smile:


(SebaSOFT) #7

dude where is the wiki with all this useful information


(Courgette) #8

there is this one : http://brink.wikia.com/wiki/Brink_Wiki
I don’t know how official it is though :s


(TimSad) #9

[QUOTE=SRS-Kap;299273]Hi,

You can swap teams as a whole using the ‘admin shuffleTeams’ command. For example:

admin shuffleTeams xp - Shuffle teams based on XP
admin shuffleTeams random - Random shuffle
admin shuffleTeams swap - Direct team swap

You can also use the ‘admin setTeam’ command. If you:

  1. enter ‘admin setTeam’
  2. press SPACEBAR
  3. press TAB

You will get a list of client indices and the corresponding player names. Once you know the client index you want, you can swap them by:

admin setTeam 3 “security”
admin setTeam 2 “resistance”[/QUOTE]

Kap, this is some good stuff, man! :slight_smile: Now I’m wondering… Is there a way to have the admin shuffleTeams swap executed at the load of the next map? I’m wanting to set up my server to have each map twice in a row just with the sides swapped. It’d be quite fun to have a chance at both sides on each map.


(SRS-Kap) #10

Unfortunately there is no way to automate this, though the setup you are describing sounds very similar to our stopwatch game rules.


(BigBiker05) #11

TimSad, that is what stopwatch is. Stopwatch plays each map twice, switching teams.
However, while objective is a set time increasing per objective completed (correct me if I’m wrong), Stopwatch is a set playtime. The second offensive team has to beat their time. I had my server set for 30 minutes, however a strong defensive team didn’t make a fun game of defending for 30 minutes. I now have it on 20 and it feels pretty good.