Editing Console commands

Jump to navigation Jump to search
Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
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.
Console commands allow you to modify gameplay settings. Pressing '''F7''' will open the developer console, which allows you to run commands.
 
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 29: Line 25:
* 0: Select a team and hero.
* 0: Select a team and hero.
* 1: Join spectators.
* 1: Join spectators.
* 2: Join The Hidden King and select a hero.
* 2: Join The Amber Hand and select a hero.
* 3: Join The Archmother and select a hero.
* 3: Join The Sapphire Flame and select a hero.
|
|
|Allows changing your team and hero.
|Allows changing your team and hero.
Line 119: Line 115:
* 5: Oceania
* 5: Oceania
| -1
| -1
|Overrides your matchmaking region. '''(Currently does not work)'''
|Overrides your matchmaking region.
|-
|-
|citadel_show_bullet_lag_compensation
|citadel_show_bullet_lag_compensation
Line 157: Line 153:
|
|
|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 218: Line 209:
|
|
|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 236: Line 222:
|map
|map
|
|
* dl_midtown: The main multiplayer map
* dl_streets: The main multiplayer map
* dl_streets: 4 lanes map
* street_test: Old version of the main multiplayer map (before [[Update:September 26, 2024]])
* 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 246: Line 231:
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
|npc_destroy
| align="right" |
|The name of an NPC to destroy (type <code>npc_destroy<space></code> to see a list of names).
If no name is provided, destroys the NPC you're looking at.
|
|
|Minimap ping radius
|Destroys an NPC (troopers, guardians, walkers, etc.).
As opposed to <code>npc_kill</code>, which causes the standard death sequence, this command zaps the NPC out of existence.
|-
|-
|citadel_minimap_max_icon_shrink
|npc_kill
| align="right" |1
|The name of an NPC to kill (type <code>npc_kill<space></code> to see a list of names).
If no name is provided, kills the NPC you're looking at.
|
|
|Range of icons shrinking when grouped (e.g. player icons)
|Kills an NPC (troopers, guardians, walkers, etc.).
This causes the standard death sequence with particles, announcer lines, drops souls, etc.
|-
|-
|citadel_minimap_player_width
|private_lobby_create
| align="right" |
|
|
|
|Default minimap player icon sizes
|Brings up a menu that allows players to create a private lobby hosted on Valve servers.
Added in [[Update:September 12, 2024|Update:September 12, 2024.]]
|-
|-
|citadel_minimap_overlap_scan_distance
|quit
| align="right" |
|
|
|
|How close icons have to be to shrink (see citadel_minimap_max_icon_shrink)
|Closes the game.
|-
|-
|minimap_update_rate_hz
|resetme
| align="right" |5
|
|
|Frequency of minimap updates
|-
|citadel_minimap_zip_line_thickness
| align="right" |5
|
|
|Thickness of ziplines on minimap
|Resets your level, abilities, and souls. Requires cheats.
|-
|-
|selecthero
|selecthero
Line 297: Line 282:
* 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
* 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 Deadlock in your list of games on the Library tab and select Properties...
* 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 <code>-console -exec autoexec</code>
* In the "LAUNCH OPTIONS" field enter <code>-console -exec autoexec</code>[[File:Launch options field.png|left|456x456px]]
[[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 dl_midtown</code>
* The host starts a custom game by loading into the map with <code>map street_test</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 replaced with numbers)
** Find a green line in the console that looks like this: <code>[Client] steamid : [A:1:XXXXXXXXXX:XXXXX] (XXXXXXXXXXXXXXXXX)</code> (the Xs will be replace 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 dl_midtown</code> .
* If you ever want to restart the game, the host can run <code>changelevel street_test</code> .


=== Adding Bots ===
=== Adding Bots ===


* On the main menu, before you start the game, run <code>exec citadel_botmatch_practice_6v6</code> to load the bot config.
* On the main menu, before you start the game, run <code>exec citadel_botmatch_practice_6v6_hard</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.
** You can replace <code>hard</code> with <code>easy</code> or <code>medium</code> to choose the bot difficulty.
** If you're already in a game, you can perform these steps then run <code>changelevel street_test</code> to restart the game instead of starting a new one.
* 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 324: Line 311:
** 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]]
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)