Counter-Strike Wiki
Advertisement
Csgo-console

The console in Counter-Strike: Global Offensive

The console or developer console provides a direct in-game command-line interface for the advanced configuration of a game. Just about any configuration task can be completed from the console, and in fact, many have to be.

Overview[]

The developer console allows the user to customize almost every aspect of the game. Developer consoles have been included in most PC video games as far back as "Doom", originally intended for developers to execute commands in an effort to debug a game.

The console also allows a user to activate alternate cfg files in Counter Strike's case. For instance, a server admin could edit the server variables while in-game instead of editing a config file and restarting the game. Another example is changing various client (player) side variables, or convars. A player can change his crosshair size and color, weapon sway, various graphical options not found in the options menu, and to connect to or remotely control a specific server. The console is also used to stop, start, record, and stop recording demo files for later use.

Instances where console use is not recommended usually include large quantities of graphics and rate settings usually found in commercial .cfg files that would be daunting to input by hand.

However, server admins and people with a server's RCON (remote control) password are able to abuse the server side commands for their benefit or to the players' (currently in the server) chagrin, depending on the admin modification or use.

The console is also used by server admins to moderate gameplay, such as muting, kicking, or banning players who disrupt gameplay, or arbitrarily.

Note that not all commands can be used in multiplayer (such as godmode, noclip, notarget, give *)

Enabling the console[]

  • In Counter-Strike: Source, the console is disabled by default. To enable it, visit OptionsKeyboard and choose Advanced. One of the advanced options will include a checkbox for Enable Developer Console. Once enabled, the console can be opened and closed by pressing the [~] key.
  • In Counter-Strike: Global Offensive, the console is also disabled by default. To activate, visit Help & OptionsGame Settings and set Enable Developer Console (~) to Yes. Similar to older games, the console can now be activated by using the [~] key.

Console commands[]

Not to be confused with Hacking or third-party cheating programs.

Command Prefixes[]

Commands are often attached to a prefix which determines the type of action they will perform. For example, commands related to the client will often begin with "cl_", "bot_" for bots, etc. Below are the main command prefixes.

  • mp_ - Multiplayer
  • sv_ - Server
  • cl_ - Client
  • m_ - Mouse
  • g_ - Graphical
  • r_ - Rendering
  • con_ - Console
  • net_ - Network
  • snd_ - Audio
  • voice_ - Microphone Audio
  • ui_ - GUI
  • hud_ - HUD
  • spec_ - Spectator
  • ai_ - Artificial Intelligence
  • bot_ - Bot
  • ent_ - Entities
  • cash_ - Cash

Screenshots[]

When taking "beauty" screenshots or documenting portions of a map, a user may want to clear the screen of all visual elements, and even the player view models. To do so, the player can enter the following console commands:

sv_cheats 1
Removing necessary elements from the screen require cheats to be activated.
r_drawviewmodel 0
Disable the player view model.
cl_drawhud 0
Remove all hud elements.
impulse 200
Remove viewmodel of the weapon. (Note it will revert once weapon is switched)
noclip
Move freely around the map in all directions and can pass through solid material.

Cheats[]

Cheat commands can only be used in a locally hosted server or servers with sv_cheats set to 1. Note that this will disable the ability to earn Achievements and the player's stats will not be recorded.

sv_cheats 1
Activate cheats.
  • In 1.6 and Condition Zero, after activating the cheats, an admin must use the command changelevel mapname for the the cheats to work fully. In Deleted Scenes, this is done by reloading the mission. This is not required for the other games.
impulse 101
Gain full cash.

Bots[]

Like the aforementioned cheats, only the admin can add, kill, or kick a bot.

bot_add
 Add a bot to the server.
bot_kill
Kill all bots.
bot_kick
Kick a bot.

Deleted Scenes[]

The following cheats only work on Deleted Scenes:

noclip
Players can fly and pass through walls in the map.
notarget
Most enemies will not target you, making the game a lot easier.
god
The player's health will not drop, but the armor will be damaged and the player's screen will still shake upon being shot in the head.
give <weapon>
Gain one specified weapon, depending on which code is used.

Available entities[]

Weapons[]

Weapon Entry Code Game(s)
M72 LAW weapon_laws Csczds t
M60 weapon_m60 Csczds t
G3SG1 weapon_g3sg1 Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
Krieg 550 Commando weapon_sg550 Cs t Cscz t Csczds t Css t
Magnum Sniper Rifle weapon_awp Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
Scout weapon_scout Cs t Cscz t Csczds t Css t
Krieg 552 weapon_sg552 Cs t Cscz t Csczds t Css t
AUG weapon_aug Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
AK-47 weapon_ak47 Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
M4A1 weapon_m4a1 Cs t Cscz t Csczds t Css t
M4A1-S weapon_m4a1_silencer Game icon 730 Game icon CS2
M4A4 weapon_m4a1 Game icon 730 Game icon CS2
Galil weapon_galil Cs t Cscz t Csczds t Css t
Galil AR weapon_galilar Game icon 730 Game icon CS2
FAMAS weapon_famas Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
P90 weapon_p90 Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
UMP45 weapon_ump45 Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
MP5 weapon_mp5navy Cs t Cscz t Csczds t Css t
MAC-10 weapon_mac10 Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
TMP weapon_tmp Cs t Cscz t Csczds t Css t
XM1014 weapon_xm1014 Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
Leone 12 Gauge Super weapon_m3 Cs t Cscz t Csczds t Css t
Dual Berettas weapon_elite Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
Five-SeveN weapon_fiveseven Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
Desert Eagle weapon_deagle Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
P228 weapon_p228 Cs t Cscz t Csczds t Css t
USP weapon_usp Cs t Cscz t Csczds t Css t
USP-S weapon_usp_silencer Game icon 730 Game icon CS2
Glock-18 weapon_glock18 Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
Knife weapon_knife Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
Gold Knife weapon_knifegg Game icon 730
M249 weapon_m249 Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
Tec-9 weapon_tec9 Game icon 730 Game icon CS2
Negev weapon_negev Game icon 730 Game icon CS2
SCAR-20 weapon_scar20 Game icon 730 Game icon CS2
Sawed-Off weapon_sawedoff Game icon 730 Game icon CS2
MAG-7 weapon_mag7 Game icon 730 Game icon CS2
Nova weapon_nova Game icon 730 Game icon CS2
SSG 08 weapon_ssg08 Game icon 730 Game icon CS2
SG 553 weapon_sg556 Game icon 730 Game icon CS2
CZ75-Auto weapon_cz75a Game icon 730 Game icon CS2
P2000 weapon_hkp2000 Game icon 730 Game icon CS2
MP9 weapon_mp9 Game icon 730 Game icon CS2
R8 Revolver weapon_revolver Game icon 730 Game icon CS2

Using this command in Global Offensive will crash the game

Grenades[]

Grenade Entry Code Game(s)
Flashbang weapon_flashbang Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
Smoke grenade weapon_smokegrenade Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
Molotov cocktail weapon_molotov Game icon 730 Game icon CS2
Decoy grenade weapon_decoy Game icon 730 Game icon CS2
Incendiary grenade weapon_incendiary Game icon 730 Game icon CS2
HE grenade weapon_hegrenade Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
Tactical Awareness Grenade weapon_tagrenade Game icon 730

Equipment[]

Equipment Entry Code Game(s)
C4 weapon_c4 Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
Zeus x27 weapon_taser Game icon 730 Game icon CS2
Defuse kit item_defuser Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
Rescue kit item_cutters Game icon 730 Game icon CS2
Tactical shield weapon_shield Cs t Cscz t
Kevlar + Helmet item_kevlar
item_assaultsuit
Cs t Cscz t Csczds t Css t Game icon 730 Game icon CS2
Heavy Assault Suit item_heavyassaultsuit Game icon 730
Medi-Shot weapon_healthshot Game icon 730 Game icon CS2
Tactical Awareness Grenade weapon_tagrenade Game icon 730

Other[]

Weapon Entry Code Game(s)
Cubemap visualization tool weapon_cubemap Css t Game icon 730˜

˜ This entity has been either removed or modified in a recent Global Offensive update and will generate a NULL entity error.

NPCs spawn code (Deleted Scenes only)[]

Counter-Terrorist[]

NPC Entry Code Game(s)
SEAL Team 6 and SWAT give monster_ct_swat Csczds t
GSG-9 give monster_ct_gsg9 Csczds t
Special Air Service give monster_ct_sas Csczds t
GIGN give monster_ct_gign Csczds t
Spetsnaz give monster_ct_spetsnaz Csczds t

Terrorist[]

NPC Entry Code Game(s)
Midwest Militia give monster_t_urban Csczds t
Elite Crew give monster_t_desert Csczds t
Arctic Avengers give monster_t_arctic Csczds t
Guerilla Warfare give monster_t_jungle Csczds t
Phoenix Connexion give monster_t_russian Csczds t
Yakuza give monster_t_asian Csczds t

NPC's weapon[]

To give a NPC a specific weapon, simply add "_<weapon>" behind the NPC's code. For example "give monster_ct_swat_assaultrifle", which gives the NPC a M4A1. If not added, the NPC will always spawn with a MP5.

Weapon Entry Code Notes
Glock-18/USP _pistol Glock-18 for the Terrorists and USP for the Counter-Terrorists.
XM1014 _shotgun
TMP/MAC-10 _smg TMP for the Terrorists and MAC-10 for the Counter-Terrorists.
MP5 _mp5 Default spawn weapon for NPC when weapon set is not given.
AK-47/M4A1 _assaultrifle AK-47 for the Terrorists and the Spetsnaz
M4A1 for the other Counter-Terrorists.
AWP/Scout _sniperrifle AWP for the Terrorists and Scout for the Counter-Terrorists.
M60 _machinegun
HE grenade + Flashbang _grenader Flashbang exclusive to Terrorists. Ts spawn with the Glock-18 and CTs spawn with the USP. And utilize defensive tactics instead of offensive strategies
Machete _melee Terrorist exclusive
Suicide belt _kamakazi Terrorist exclusive
M72 LAW _law

Notes[]

Deleted Scenes[]

  • Spawning a NPC will always spawn one with standard uniform.
  • The Yakuza will also always spawn one with jungle uniform.
  • If the player spawns a NPC that was not meant to appear in a map, the game will return to the main menu background.
  • The Kidotai uses the same spawn code as the GSG-9.
  • Using the console command noclip is necessary when spawning a NPC as they will always spawn "within" the player, with the exception of using the console command impulse 76.
  • Using the console command give weapon_c4 will crash the game.

Global Offensive[]

  • Before the September 15, 2015 update, when a player uses noclip, there is no animation when a player is hovering around the map. After the update, an animation was given that appears similar to Garry's Mod.

Gallery[]

Overview[]

Console Backgrounds[]

Advertisement