Console commands for offline/team training


Published 11.03.2019 в 12:00 | Guide rating: 179



Getting started

To start offline training session go to ingame menu and choose "Offline with bots" and select "No bots" and start a game.
Note that this server is offline and your friends cannot join the session.
If you want to invite friends, you must first create a lobby, then invite some friends and start a private casual game.
The player who creates the server is concidered "the host" and has the admin rights to change server side settings.
By setting sv_cheats to 1 (explained later in the commands section) other players can use commands to get weapons and noclip, but other players still cannot set server settings.
Technically you can add admin privileges to other players too, but I don't see the point adding these commands in this guide.

Enable console

First make sure you have console enabled.
1.
Go to game menu and open Game Settings and make sure you have "Enable developer console (~)" set to YES.
2.
Go to Keyboard and Mouse settings and scroll all the way to the bottom if you like to configure a custom console key Note that when you launch cs:go and you are in-menu the console key sometimes seems to not work.
Click to any menu buttons like inventory or any other and usually the console opens right after repressing the console key.
Another note: If you don't have basic english keyboard (I have a keyboard with added scandinavian letters) the console key might not work.
Rebind the key and it should start working.
Cinque TerreCinque Terre

The commands

In this section you find useful console commands explained.
Round time settings mp_roundtime_defuse 60 // round lasts 60 minutes mp_timelimit 0 // map never changes mp_limitteams 0 // allows all players to join the same team mp_buytime 999 // set a high number - this is how long you can buy items during a round mp_freezetime 0 // when new round starts, you can move instantly mp_startmoney 10000 // how much money players have on first round mp_autoteambalance 0 // to make sure game doesn't throw people to other team mp_restartgame 1 // restart map from round one after typing in any of above commands you still need to use the mp_restartgame 1 for the other commands to kick in.
Change map in-game Use the below commands to change to a different map: changelevel de_dust2 changelevel de_train changelevel de_inferno changelevel de_mirage changelevel de_cache changelevel de_overpass changelevel de_cbbleMaps listed above are in the active duty group and most commonly played competitive maps.
Type maps * in console to see list of map names.
You can use the example above to change whatever map you like.
sv_cheats 1 CS:GO has a command to allow the usage of other cheat-like commands.
Set sv_cheats 1 to allow all the commands below (set back to 0 to disallow them again).
After you set this command, every player in the server can use the weapon commands to get certain weapons.
Most of the commands below this point requires to have sv_cheats 1.
sv_infinite_ammo 1 // Unlimited ammo, you never run out of bullet, no need to reload.
sv_infinite_ammo 2 // Unlimited ammo, but magazine runs out.
sv_showimpacts 1 // Highlights your bullet impacts sv_grenade_trajectory 1 // Draws the physics of thrown nades noclip // allows you to fly around map.
This command has no value, retype noclip in console to disable.
Easier to use by biding it to a certain key like so: bind x noclip To get a weapon of choice use commands listed below: give weapon_ak47 give weapon_awp give weapon_m4a1 give weapon_m4a1_silencer give weapon_hegrenade give weapon_molotov give weapon_incgrenade give weapon_decoy give weapon_flashbang Commands with bots If you want to include bots in your server use the following commands: bot_add_t // adds a bot to terrorist side bot_add_ct // adds a bot to ct side bot_kick // removes all bots bot_stop 0 // default is 1, set to 0 if you want all bots to stop bot_place // use this to place bots where you like them (they appear in front of you) Bot_stop and bot_place can be used effectively to add targets be sure to use bots in your team to so they wont die and reset the round.
(default for team killing is off) you can type in bot in console and cycle through all bot commands by pressing down key.

Make an executable file to run all the server commands at once

This section teaches you how to create a file and a command to execute all the server settings at once when the server is up and running.
It's painful to write them again everytime you start a server.
First step Open a new notepad Copy paste the below commands into it (feel free to edit the values) mp_roundtime_defuse 60 mp_roundtime_hostage 60 mp_timelimit 0 mp_limitteams 0 mp_buytime 999 mp_freezetime 0 mp_autoteambalance 0 mp_startmoney 10000 sv_cheats 1 sv_showimpacts 1 sv_grenade_trajectory 1 sv_infinite_ammo 2 mp_restartgame 1 (notice how mp_restartgame 1 is the last command in the list to active all the above commands) Step two Save the notepad to following location: Steam\SteamApps\common\Counter-Strike Global Offensive\csgo\cfg Give it a name random name: filename.
cfg (don't forget to type in the file extension cfg and the "all files" explained below) Make sure you select "save as type: all files" and make sure you give it unique name - do not override any other file.
See the image below.
Step three You are all set.
Start a server and type in command: exec filename Cinque Terre