# Commands

### From Q4MAX

## Q4Max-specific Console Commands

The following commands have been added/changed in Q4Max.

Client commands:

- autorecord - Records a netdemo with a name in the same format as autoaction recorded demos.
- weapon - Switches to the given weapon - an alias of _impulseX.
- referee - Used to make yourself a referee, granting limited admin rights.
- players - Lists all players, and a unique player id to use with other commands.
- maplist - Lists all the maps available on the server.
- callvote - Provides a way to vote for many votable options.
- timeout - Calls a timeout - a limited version of pause for non-referees.
- timein - Calls the end of a timeout.
- follow - Allows a spectator to switch to a nominated player when spectating.
- speclock - Locks/unlocks your team from spectators.
- specinvite - Invites a player to spectate your team.
- specrevoke - Revokes an invited spectator of your team.
- coachinvite - Invites a player to coach your team.
- coach - Accepts a coaching invitation.
- coachdecline - Declines a coaching invitation.
- cancelcoach - Makes you quit your coaching position.
- coachrevoke - Revokes a coach.
- _button1 - Allows a coach to send voice chat to the currently spectated player.

Referee commands:

- abort - Abandons the current game and returns to warmup.
- allready - Readies up all players and begins the game.
- lockteams - Locks teams to prevent players joining mid-game.
- unlockteams - Unlocks teams to allow players to join.
- marine - Puts a given player on the marine team.
- strogg - Puts a given player on the strogg team.
- remove - Removes a given player from a team.
- pause - Pauses a game.
- unpause - Unpauses a game.
- speclockstrogg - Locks the Strogg team from spectators.
- specunlockstrogg - Unlocks the Strogg team from spectators.
- speclockmarine - Locks the Marine team from spectators.
- specunlockmarine - Unlocks the Marine team from spectators.
- speclockall - Locks both teams from spectators.
- specunlockall - Unlocks both teams from spectators.
- cancelref - Makes you quit your referee position.

### autorecord

Summary
  Records a netdemo with a name in the same format as autoaction recorded demos.
Description
  This behaves like "recordnetdemo", except it does not take any arguments : it will name the recorded demo in the same format as autoaction demos.

### weapon

Summary
  Switches to the given weapon - an alias of _impulseX.
Parameters
  0-9
Description
  This command acts just the same as _impluse0 - _impulse9, switching to the selected weapon. Unlike _impulseX it works within a bind along with others. For example: bind l "weapon 1; sensitivity 5"

### referee

Summary
  Used to make yourself a referee, granting limited admin rights.
Parameters
  Password (string)
Description
  This command can be used to become a referee, and is intended to allow "trusted" clients to become a limited admin on the server to run a match. The password supplied must be the same as the ref_password cvar as set on the server. You must do this before you can execute any of the referee commands.

### players

Summary
  Lists all players, and a unique player id to use with other commands.
Description
  This provides a list of the players, and a unique id for each player. This id is used as a parameter to other commands. Additionally it shows whether the player is a spectator, whether they are marked as ready, and in a team game shows their team.

### maplist

Summary
  Lists all the maps available on the server.
Description
  This provides a list of all the maps that are on the server which support the current game-mode. This allows the player to know the maps they can vote for using thie callvote map command.

### callvote

Summary
  Calls a vote on a given option.
Parameters
  <votename> [setting]
Description
  This allows a player to vote for a specific setting to be changed. The <votename> parameter indicates what is votable, and the [setting] parameter indicates the value requested. There are many votable settings - these can be listed, complete with a description using "callvote ?".
  Using this command with no [setting] parameter will display the current state of this setting. Note that server operators can disable specific votes if they do not wish any given setting to be votable. Common votes include "callvote mode CA" or "callvote map mp/swq4dm1".

### timeout

Summary
  Calls a timeout - a limited version of pause for non-referees.
Description
  This allows a player to call a timeout, pausing the game temporarily. Unlike the pause command this is not restricted to referees. To prevent abuse of this command, the duration of the pause is limited - by the cvar sv_timeoutMaxLength (default 60 seconds), and a limited number per player.
  Additionally, there is a limited number - sv_maxTimeouts (default 5). The timeout is cancelled by using this command a second time. In team games, the number of timeouts is shared across the whole team, and the timeout may be cancelled by any member of the team. If a ref pauses during a timeout, the timeout will be converted to a ref-pause, and cannot be cancelled by the original owner.
  Re-issuing this command calls a timein.

### timein

Summary
  Calls the end of a timeout.

### follow

Summary
  Allows a spectator to switch to a nominated player when spectating.
Parameters
  <powerup> or <playerid>
Description
  This allows a spectator to follow either a specific player, or to follow a player holding a specific powerup. The parameter can either be one of the powerup names ("quad", "regen", "haste", "invis", "marineflag" or "stroggflag"), or the player id reported by the "players" command for the player you wish to follow.
  If there are multiple powerups of the same type in play at the same time, executing this command multiple times will cycle through all players with that powerup. Note that this is not "automatic" following of the powerups, and simply changes to the player holding that powerup at the time you execute this command.

### speclock

Summary
  Locks/unlocks your team from spectators.

### specinvite

Summary
  Invites a player to spectate your team.
Parameters
  <playerid>
Description
  This allows someone inside a team to invite spectators when the team is speclocked. Get the spectator's player id by using the players command.

### specrevoke

Summary
  Revokes an invited spectator of your team.
Parameters
  <playerid>
Description
  Removes an invited spectator when your team is speclocked. Get the spectator's player id by using the players command.

### coachinvite

Summary
  Invites a player to coach your team.
Parameters
  <playerid>
Description
  Invites a spectator to coach your team. Get the spectator's player id by using the players command.

### coach

Summary
  Accepts a coaching invitation.
Description
  Issuing this command turns you into a coach for the team which sent the invitation. As a coach, you can partake in the team's teamchat (both in type and using voicechat), see the team overlay and view any players on the coached team. You can also use the _button1 to send voice messages to the player you are currently viewing.

### coachdecline

Summary
  Declines a coaching invitation.

### cancelcoach

Summary
  Makes you quit your coaching position.
Description
  Use this if you want to quit coaching a team.

### coachrevoke

Summary
  Revokes a coach.
Description
  Use this if you want to remove a coach from your team.

### _button1

Summary
  Allows a coach to send voice chat to the currently spectated player.
Description
  This functions like press-to-talk voice chat, with the only exception that it only sends messages to the player you are currently viewing.

### abort

Summary
  Abandons the current game and returns to warmup.
Description
  This command is intended to be used when a match needs to be abandoned. It sets all players to "not ready", and resets the game back to the warmup.

### allready

Summary
  Readies up all players and begins the game.
Description
  This forces all players to be "ready", even if they have not readied up themselves, thus allowing the game to begin.

### lockteams

Summary
  Locks teams to prevent players joining mid-game.
Description
  This locks all teams, ensuring that no new players may join the teams. To unlock the teams, use the unlockteams command. Generally this would be used in a tournament match to ensure that any joining players must remain as spectators. This command is only valid in a team game.

### unlockteams

Summary
  Unlocks teams to allow players to join.
Description
  This is the reverse of lockteams, and unlocks the teams allowing players to join the team. This command is only valid in a team game.

### marine

Summary
  Puts a given player on the marine team.
Parameters
  <player id>
Description
  This forces the given player to join the marine team. The referee may do this even if the teams are locked, thus allowing known players to join a locked team. This command is only valid in a team game.

### strogg

Summary
  Puts a given player on the strogg team.
Parameters
  <player id>
Description
  This forces the given player to join the marine team. The referee may do this even if the teams are locked, thus allowing known players to join a locked team. This command is only valid in a team game.

### remove

Summary
  Removes a given player from a team.
Parameters
  <player id>
Description
  This removes the given player from whichever team they are currently on, and makes them a spectator. This command is only valid in a team game.

### pause

Summary
  Pauses a game.
Description
  This command pauses the current game, halting all player movement, events, and times. This is intended for use in cases such as a player suffering extreme lag / disconnecting during a match etc.
  Issuing this command during a pause cancels the pause.
  Note that this command cannot be used in the Tourney mode. We recommend tournaments are played in the Duel mode.

### unpause

Summary
  Unpauses a game.

### speclockstrogg

Summary
  Locks the Strogg team from spectators.

### specunlockstrogg

Summary
  Unocks the Strogg team from spectators.

### speclockmarine

Summary
  Locks the Marine team from spectators.

### specunlockmarine

Summary
  Unlocks the Marine team from spectators.

### speclockall

Summary
  Locks both teams from spectators.

### specunlockall

Summary
  Unlocks both teams from spectators.

### cancelref

Summary
  Makes you quit your referee position.