Useful console commands in deadlock for practice and having fun with friends etc.
Basic information
You can open the console by using F7 by default
- In Steam, right click Deadlock and choose properties. In General > Launch Options, add -exec autoexec
- In Steam, right click Deadlock and choose Manage > Browse Local Files. Navigate to game > citadel > cfg. Create a new file called autoexec.cfg.
- Copy paste the commands you wish to run at startup into that config file.
Link to a list of all deadlock commands [deadlocked.wiki] very usefull for finding commands you can’t find online, Tip use Ctrl+F and type in a keyword of what you want the command to do.
Practice Commands
“map dl_streets”
Once you’re in the map
“citadel_hero_testing_enabled 1; sv_cheats 1; citadel_hero_testing_infinite_money true; citadel_allow_purchasing_anywhere true; ai_step; kingme”
“ent_create citadel_herotest_orbspawner”
possible bind
“bind 10 ent_create citadel_herotest_orbspawner”
“ai_step” & “ai_resume”
Generally useful commands – No sv_cheats enabled
- mm_prefer_solo_only — If you prefer playing with other solo queue players
- citadel_unit_status_use_new true — new health bar
- deadlock_post_match_survey_disabled true — Disables the post-match survey. This gets set to true if you submit or skip a survey after checking “Don’t show this again”.
- bind key command — to attach a command or input value to a key (replace key and command)
- unbind key — to unbind the action from a key (replace key)
- citadel_hud_visible — to show or hide the HUD
Generally Useful Commands – sv_cheats true
- citadel_hero_testing_enabled true — 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.
- noclip[[/b] — allows you to fly around the map and trough walls
- citadel_allow_purchasing_anywhere — allows the purchase of items anywhere on the map
- kill — die immediately
- trooper_kill_all — kill all troopers
- kingme — Gives you 1.2 million souls and levels up all your abilities.
- citadel_hero_testing_infinite_money true — Gives players infinite souls and ability points.
- trooper_kill_all — Kills all non-neutral creeps and guardians that aren’t shielded.
- dump_hero_names — shows a list of all the Heroes in the game including unreleased heroes
- selecthero hero_name — change hero to whatever hero name you write down, can be used to play unreleased hero’s
- getpos — get your current coordinates (Useful for taking screenshots in the same exact position for comparisons combined with setpos and citadel_hud_visible false/true)
- setpos — move to the mentioned coordinates
- explode — die immediately
- hurtme — deal 10 damage to self
Playing unreleased hero’s
- dump_hero_names — shows a list of all the Heroes in the game including unreleased heroes
- selecthero hero_name — change hero to whatever hero name you write down, can be used to play unreleased hero’s
Hosting Custom Games
- The host starts a custom game by loading into the map with map street_test
- 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 replace with numbers)
- Select the part after steamid that looks like this, including the square brackets: [A:1:XXXXXXXXXX:XXXXX]
- 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 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 street_test.
- On the main menu, before you start the game, run exec citadel_botmatch_practice_6v6_hard to load the bot config.
- You can replace hard with easy or medium to choose the bot difficulty.
- If you’re already in a game, you can perform these steps then run changelevel street_test to restart the game instead of starting a new one.
- Run citadel_spawn_practice_bots false so that bots won’t spawn immediately when the game starts.
- Run citadel_spawn_practice_bots_count 12 to 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_duration before starting the game to increase the duration of the pregame if you want.
- 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 changeteam command 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.
And that wraps up our share on Deadlock: Useful Deadlock commands. If you have any additional insights or tips to contribute, don’t hesitate to drop a comment below. For a more in-depth read, you can refer to the original article here by LiL Iroh 女, who deserves all the credit. Happy gaming!