Looking to level up your Deadlock experience with some handy console commands? This guide will show you how to create an autoexec.cfg file to automate certain commands and keyboard shortcuts, making your gameplay smoother and more optimized. This guide is a translation of Lovely’s guide on the official Deadlock Discord and will evolve over time.
The autoexec.cfg file is essential to save aliases and commands between sessions, so you don’t have to re-enter them every time you start the game. In this guide, discover how to create one and add the best commands for Deadlock. These commands can help you customize your key bindings or remove certain graphical elements for a better experience.
For even more tips on configuring Deadlock, check out our guide to easily changing your crosshair in Deadlock and our complete guide on mastering Wall Jump in Deadlock to enhance your performance.
How to Create and Use an Autoexec File in Deadlock
Follow these steps to set up an autoexec.cfg file in Deadlock:
- Go to the directory
steamapps\common\Project8Staging\game\citadel\cfg
- Create a Notepad file in this folder and name it autoexec.cfg.
- Open the file and add the command
sv_cheats true
as the first entry. - Save and close the file.
- Right-click on **Deadlock** in Steam, then go to Properties.
- Under the **General** tab, add
-dev +exec autoexec.cfg
in the launch options.
Every time you launch Deadlock, all the commands and shortcuts added to the autoexec.cfg file will execute automatically.
Useful Commands to Add to Your Autoexec
Here are some useful commands you can add to your autoexec.cfg file to customize and optimize your gameplay in Deadlock.
Switch Regions on the Fly
To quickly switch regions without leaving the game, add the following command:
bind KEY "incrementvar citadel_region_override -1 3 1"
Replace KEY
with the key you wish to assign. Be careful not to use a key already assigned to another action.
Toggle HUD Visibility
To quickly toggle the HUD display on and off, use this command:
bind KEY "toggle citadel_hud_visible true false"
This lets you switch between a clean view and the full HUD display, which is useful for taking screenshots or reducing visual clutter.
Disable New Player Recommendation Icon
This command removes the green “Ideal for new players” icon that appears next to the heroes’ portraits in the roster:
citadel_display_new_player_recommendations false
Instantly Activate Item Abilities
To quickly activate item abilities with a single press (without needing to click again for confirmation or target activation), add this command:
bind KEY "+in_item1;+attack;-in_item1;-attack"
Replace KEY
with the key you wish to assign. You can also adapt this command for different slots in your item bar (item1 to item4).