Console commands: Difference between revisionsGive feedback
This does not seem to be the case anymore : bots are attributed "normal" lanes now, since the 10 october patch |
→All Known Convars/Commands: Removed. VDC wiki link available. Tag: Replaced |
||
| (33 intermediate revisions by 16 users not shown) | |||
| Line 1: | Line 1: | ||
Console commands allow you to modify gameplay settings. | Console commands allow you to modify gameplay settings. If the player has the "Dev command console" option enabled in settings, pressing '''F7''' will open the developer console, which allows you to run commands. They can be used in the [[Hideout]], Sandbox and "Explore NYC" modes, as well as cheat-enabled custom games. | ||
For a complete list of console commands and variables, see the [https://developer.valvesoftware.com/wiki/List_of_Deadlock_console_commands_and_variables Valve Developer Wiki]. | |||
For a non-formatted list of console variables, see [[Data:Convars.json]]. | |||
== Useful Console Commands == | == Useful Console Commands == | ||
| Line 25: | Line 29: | ||
* 0: Select a team and hero. | * 0: Select a team and hero. | ||
* 1: Join spectators. | * 1: Join spectators. | ||
* 2: Join The | * 2: Join The Hidden King and select a hero. | ||
* 3: Join The | * 3: Join The Archmother and select a hero. | ||
| | | | ||
|Allows changing your team and hero. | |Allows changing your team and hero. | ||
| Line 115: | Line 119: | ||
* 5: Oceania | * 5: Oceania | ||
| -1 | | -1 | ||
|Overrides your matchmaking region. | |Overrides your matchmaking region. '''(Currently does not work)''' | ||
|- | |- | ||
|citadel_show_bullet_lag_compensation | |citadel_show_bullet_lag_compensation | ||
| Line 153: | Line 157: | ||
| | | | ||
|Shows the post-match survey popup asking players to rate the match. | |Shows the post-match survey popup asking players to rate the match. | ||
|- | |||
|citadel_unit_status_use_new | |||
|true/false | |||
| | |||
|Enables experimental health bars. | |||
|- | |- | ||
|citadel_unlock_flex_slots | |citadel_unlock_flex_slots | ||
| Line 209: | Line 218: | ||
| | | | ||
|Deals 10 damage to yourself. Requires cheats. | |Deals 10 damage to yourself. Requires cheats. | ||
|- | |||
|kill | |||
|The name of an NPC or Player to kill | |||
| | |||
|Kills the target. | |||
|- | |- | ||
|killme | |killme | ||
| Line 222: | Line 236: | ||
|map | |map | ||
| | | | ||
* | * dl_midtown: The main multiplayer map | ||
* street_test: Old version of | * dl_streets: 4 lanes map | ||
* street_test: Old version of 4 lanes map (before [[Update:September 26, 2024]]) | |||
* new_player_basics: The Hero Sandbox map | * new_player_basics: The Hero Sandbox map | ||
* 1v1_test: Seems like an early, smaller version of street_test | * 1v1_test: Seems like an early, smaller version of street_test | ||
| Line 231: | Line 246: | ||
When used in a multiplayer lobby, this command will kick everyone from the server. Use <code>changelevel</code> to switch maps without kicking everyone. | When used in a multiplayer lobby, this command will kick everyone from the server. Use <code>changelevel</code> to switch maps without kicking everyone. | ||
|- | |- | ||
| | |citadel_minimap_unit_click_radius | ||
| | | align="right" | | ||
| | | | ||
| | |Minimap ping radius | ||
|- | |- | ||
| | |citadel_minimap_max_icon_shrink | ||
| | | align="right" |1 | ||
| | | | ||
| | |Range of icons shrinking when grouped (e.g. player icons) | ||
|- | |- | ||
| | |citadel_minimap_player_width | ||
| align="right" | | |||
| | | | ||
|Default minimap player icon sizes | |||
|- | |||
|citadel_minimap_overlap_scan_distance | |||
| align="right" | | |||
| | | | ||
| | |How close icons have to be to shrink (see citadel_minimap_max_icon_shrink) | ||
|- | |- | ||
| | |minimap_update_rate_hz | ||
| | | align="right" |5 | ||
| | | | ||
| | |Frequency of minimap updates | ||
|- | |- | ||
| | |citadel_minimap_zip_line_thickness | ||
| | | align="right" |5 | ||
| | | | ||
| | |Thickness of ziplines on minimap | ||
|- | |- | ||
|selecthero | |selecthero | ||
| Line 279: | Line 294: | ||
== Auto execute console commands on startup == | == Auto execute console commands on startup == | ||
* In the <installation path>\steamapps\common\Deadlock\game\citadel\cfg folder create a text file name it autoexec.cfg | * In the <code><installation path>\steamapps\common\Deadlock\game\citadel\cfg</code> folder create a text file name it <code>autoexec.cfg</code> | ||
* Put the console commands that you want to run on startup of Deadlock in the autoexec.cfg file, one console command on each line and save it | * Put the console commands that you want to run on startup of Deadlock in the <code>autoexec.cfg</code> file, one console command on each line and save it | ||
* In the Steam app right-click | * In the Steam app right-click Deadlock in your list of games on the Library tab and select Properties... | ||
* In the "LAUNCH OPTIONS" field enter -console -exec autoexec[[File: | * In the "LAUNCH OPTIONS" field enter <code>-console -exec autoexec</code> | ||
[[File:Launch_options_field.png|456x456px]] | |||
== Hosting Custom Games == | == Hosting Custom Games == | ||
* The host starts a custom game by loading into the map with <code>map | * The host starts a custom game by loading into the map with <code>map dl_midtown</code> | ||
** You may want to pause the game immediately after joining by pressing '''P''' to give other players time to join the match. | ** You may want to pause the game immediately after joining by pressing '''P''' to give other players time to join the match. | ||
* The host finds their ID by running <code>status</code> | * The host finds their ID by running <code>status</code> | ||
** Find a green line in the console that looks like this: <code>[Client] steamid : [A:1:XXXXXXXXXX:XXXXX] (XXXXXXXXXXXXXXXXX)</code> (the Xs will be | ** Find a green line in the console that looks like this: <code>[Client] steamid : [A:1:XXXXXXXXXX:XXXXX] (XXXXXXXXXXXXXXXXX)</code> (the Xs will be replaced with numbers) | ||
** Select the part after <code>steamid</code> that looks like this, including the square brackets: <code>[A:1:XXXXXXXXXX:XXXXX]</code> | ** Select the part after <code>steamid</code> that looks like this, including the square brackets: <code>[A:1:XXXXXXXXXX:XXXXX]</code> | ||
** Right click and choose "Copy Selected Text" | ** Right click and choose "Copy Selected Text" | ||
* The host sends players the ID they just copied. Players can now connect to the game by opening their console and running <code>connect [A:1:XXXXXXXXXX:XXXXX]</code> (replace the part after connect with the ID they got from the host). | * The host sends players the ID they just copied. Players can now connect to the game by opening their console and running <code>connect [A:1:XXXXXXXXXX:XXXXX]</code> (replace the part after connect with the ID they got from the host). | ||
* Upon joining, players will be able to select their team and hero. To bring up this menu again, players can run <code>changeteam 0</code>. | * Upon joining, players will be able to select their team and hero. To bring up this menu again, players can run <code>changeteam 0</code>. | ||
* If you ever want to restart the game, the host can run <code>changelevel | * If you ever want to restart the game, the host can run <code>changelevel dl_midtown</code> . | ||
=== Adding Bots === | === Adding Bots === | ||
* On the main menu, before you start the game, run <code>exec | * On the main menu, before you start the game, run <code>exec citadel_botmatch_practice_6v6</code> to load the bot config. | ||
** If you're already in a game, you can perform these steps then run <code>changelevel dl_midtown</code> to restart the game instead of starting a new one. | |||
** If you're already in a game, you can perform these steps then run <code>changelevel | |||
* Run <code>citadel_spawn_practice_bots false</code> so that bots won't spawn immediately when the game starts. | * Run <code>citadel_spawn_practice_bots false</code> so that bots won't spawn immediately when the game starts. | ||
* Run <code>citadel_spawn_practice_bots_count 12</code> to ensure that bots fill all remaining slots (they'll be added until both teams have 6 players). | * Run <code>citadel_spawn_practice_bots_count 12</code> to ensure that bots fill all remaining slots (they'll be added until both teams have 6 players). | ||
| Line 312: | Line 324: | ||
** Remember to choose your (the host's) own team and hero as well. This may automatically unpause the game - press '''P''' after selecting a team to pause again. | ** Remember to choose your (the host's) own team and hero as well. This may automatically unpause the game - press '''P''' after selecting a team to pause again. | ||
** After all human players have joined teams and selected heroes, the host runs <code>citadel_spawn_practice_bots true</code>, then presses '''P''' again to unpause the game. Bots should fill the remaining slots on each team. | ** After all human players have joined teams and selected heroes, the host runs <code>citadel_spawn_practice_bots true</code>, then presses '''P''' again to unpause the game. Bots should fill the remaining slots on each team. | ||
== External links == | |||
* [https://developer.valvesoftware.com/wiki/List_of_Deadlock_console_commands_and_variables List of Deadlock console commands and variables] on the Valve Developer Community. | |||
== Navigation == | |||
{{Gameplay Navbox}} | |||
[[Category:Gameplay]] | [[Category:Gameplay]] | ||
Latest revision as of 20:44, 23 July 2026
Console commands allow you to modify gameplay settings. If the player has the "Dev command console" option enabled in settings, pressing F7 will open the developer console, which allows you to run commands. They can be used in the Hideout, Sandbox and "Explore NYC" modes, as well as cheat-enabled custom games.
For a complete list of console commands and variables, see the Valve Developer Wiki.
For a non-formatted list of console variables, see Data:Convars.json.
Useful Console Commands
[edit | edit source]Commands that require cheats will not work in standard multiplayer matches. To enable cheats in a custom lobby, run sv_cheats true.
| Command | Values | Default | Description |
|---|---|---|---|
| bot_kick_all | Kicks all bots from the game. | ||
| changelevel | See the map command.
|
Loads a new map.
When used in a multiplayer lobby, players will remain connected while the map changes. | |
| changeteam |
|
Allows changing your team and hero. | |
| citadel_allow_purchasing_anywhere | true/false | Enables purchasing anywhere on the map, not just at shops. Requires cheats. | |
| citadel_enable_fast_cooldowns | Enables fast cooldowns, causing all abilities to have a 2 second cooldown. Requires cheats. | ||
| citadel_disable_fast_cooldowns | Disables fast cooldowns. Requires cheats. | ||
| citadel_enable_fast_stamina | Enables fast stamina, causing stamina to regen very fast. Requires cheats. | ||
| citadel_disable_fast_stamina | Disables fast stamina. Requires cheats. | ||
| citadel_dps_multiplier | number | 1.0 | Adds a multiplier to player damage output. Affects all damage including weapon and ability damage. Requires cheats. |
| citadel_enable_no_hero_death | Enables invincibility (your health will never go below 1). Requires cheats. | ||
| citadel_disable_no_hero_death | Disables invincibility. Requires cheats. | ||
| citadel_display_new_player_recommendations | true/false | true | Turns the "Great for New Players" banner on/off when selecting a hero. |
| citadel_hero_testing_enabled | true/false | false | Enables the "Testing Tools" menu from the Hero Sandbox. Enabling the menu does not require cheats, but using any of this menu's functionality will. |
| citadel_hero_testing_infinite_money | true/false | false | Gives players infinite souls and ability points. |
| citadel_hud_visible | true/false | true | Shows/hides the HUD. |
| citadel_pause | Pause the match. | ||
| citadel_player_move_speed_scale | number | 1.0 | Scales movement speed causing players to move faster or slower. Requires cheats. |
| citadel_pregame_duration | number | 10.0 | Changes the duration of the pregame (countdown before the game starts). |
| citadel_region_override |
|
-1 | Overrides your matchmaking region. (Currently does not work) |
| citadel_show_bullet_lag_compensation | number | 0 | How long to show bullet hitboxes. Green hitbox is client, red hitbox is server. |
| citadel_solo_bot_match | true/false | false | Gets enabled by bot match configs. When disabled, bots don't move. This also enables the pregame countdown.
Not sure what else it does. |
| citadel_create_unit | Hero name from dump_hero_names
|
Spawns an allied dummy bot in front of the player. Requires cheats | |
| citadel_spawn_nearby_neutrals | Respawns nearby neutral camps. Requires cheats. | ||
| citadel_spawn_practice_bots | true/false | false | Enable to spawn bots when the game starts.
You can also set this to true during a game to spawn bots (although setting it to false, kicking bots, and setting it to true again will not respawn bots). |
| citadel_spawn_practice_bots_count | number | Number of practice bots to spawn when citadel_spawn_practice_bots is set to true.
| |
| citadel_test_survey_popup | Shows the post-match survey popup asking players to rate the match. | ||
| citadel_unit_status_use_new | true/false | Enables experimental health bars. | |
| citadel_unlock_flex_slots | Unlocks all flex slots. Requires cheats. | ||
| citadel_unpause_countdown | number | 3 | Changes how many seconds the countdown will last when the game is unpaused. Requires cheats. |
| citadel_weapon_damage_multiplier | number | 1.0 | Adds a multiplier to weapon damage output. Does not affect ability damage. Requires cheats. |
| deadlock_early_development_warning_disabled | true/false | false | Disables the Early Development Build popup when the game starts. This gets set to true if you close the popup after checking "Don't show this again". |
| deadlock_get_old_builds | Downloads and prints out all of the build data for your account prior to the new builds feature.
Added in Update:August 6, 2024. | ||
| deadlock_post_match_survey_disabled | true/false | false | Disables the post-match survey. This gets set to true if you submit or skip a survey after checking "Don't show this again". |
| disconnect | Disconnect from the current match. | ||
| dump_hero_names | Lists the internal names of all available heros. Requires cheats. | ||
| healthpct | 0 - 100 | Sets your health to the given percentage of your max health. Requires cheats. | |
| hud_damagemeter | true/false | false | Displays your current DPS next to your crosshair. Requires cheats. |
| hurtme | Deals 10 damage to yourself. Requires cheats. | ||
| kill | The name of an NPC or Player to kill | Kills the target. | |
| killme | Kills you. | ||
| kingme | Gives you 1.2 million souls and levels up all your abilities. Requires cheats. | ||
| map |
|
Starts a game and loads into the chosen map.
When used in a multiplayer lobby, this command will kick everyone from the server. Use | |
| citadel_minimap_unit_click_radius | Minimap ping radius | ||
| citadel_minimap_max_icon_shrink | 1 | Range of icons shrinking when grouped (e.g. player icons) | |
| citadel_minimap_player_width | Default minimap player icon sizes | ||
| citadel_minimap_overlap_scan_distance | How close icons have to be to shrink (see citadel_minimap_max_icon_shrink) | ||
| minimap_update_rate_hz | 5 | Frequency of minimap updates | |
| citadel_minimap_zip_line_thickness | 5 | Thickness of ziplines on minimap | |
| selecthero | Hero name from dump_hero_names
|
Requires you to be on the hero selection screen, or have citadel_hero_testing_enabled set to true.
| |
| trooper_kill_all | Kills all non-neutral creeps and guardians that aren't shielded. Requires cheats. | ||
| trooper_kill_non_bosses | Kills all non-neutral creeps. Requires cheats. |
Auto execute console commands on startup
[edit | edit source]- In the
<installation path>\steamapps\common\Deadlock\game\citadel\cfgfolder create a text file name itautoexec.cfg - Put the console commands that you want to run on startup of Deadlock in the
autoexec.cfgfile, one console command on each line and save it - In the Steam app right-click Deadlock in your list of games on the Library tab and select Properties...
- In the "LAUNCH OPTIONS" field enter
-console -exec autoexec
Hosting Custom Games
[edit | edit source]- The host starts a custom game by loading into the map with
map dl_midtown- You may want to pause the game immediately after joining by pressing P to give other players time to join the match.
- The host finds their ID by running
status- Find a green line in the console that looks like this:
[Client] steamid : [A:1:XXXXXXXXXX:XXXXX] (XXXXXXXXXXXXXXXXX)(the Xs will be replaced with numbers) - Select the part after
steamidthat looks like this, including the square brackets:[A:1:XXXXXXXXXX:XXXXX] - Right click and choose "Copy Selected Text"
- Find a green line in the console that looks like this:
- The host sends players the ID they just copied. Players can now connect to the game by opening their console and running
connect [A:1:XXXXXXXXXX:XXXXX](replace the part after connect with the ID they got from the host). - Upon joining, players will be able to select their team and hero. To bring up this menu again, players can run
changeteam 0. - If you ever want to restart the game, the host can run
changelevel dl_midtown.
Adding Bots
[edit | edit source]- On the main menu, before you start the game, run
exec citadel_botmatch_practice_6v6to load the bot config.- If you're already in a game, you can perform these steps then run
changelevel dl_midtownto restart the game instead of starting a new one.
- If you're already in a game, you can perform these steps then run
- Run
citadel_spawn_practice_bots falseso that bots won't spawn immediately when the game starts. - Run
citadel_spawn_practice_bots_count 12to ensure that bots fill all remaining slots (they'll be added until both teams have 6 players). - Start the game (i.e.
map street_test) and press P to pause the game during the pregame (as soon as you load in).- You can use
citadel_pregame_durationbefore starting the game to increase the duration of the pregame if you want.
- You can use
- Allow all other human players to connect and select their team and hero.
- The team/hero menu can be a bit glitchy. Players can use the
changeteamcommand instead (see table above for command description). - Remember to choose your (the host's) own team and hero as well. This may automatically unpause the game - press P after selecting a team to pause again.
- After all human players have joined teams and selected heroes, the host runs
citadel_spawn_practice_bots true, then presses P again to unpause the game. Bots should fill the remaining slots on each team.
- The team/hero menu can be a bit glitchy. Players can use the
External links
[edit | edit source]- List of Deadlock console commands and variables on the Valve Developer Community.
Navigation
[edit | edit source]
| ||||||||||||||