Console commands: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Avery (talk | contribs)
Add instructions for hosting a custom game
Avery (talk | contribs)
Add deadlock_get_old_builds and private_lobby_create.
 
(One intermediate revision by the same user not shown)
Line 54: Line 54:
|
|
|Disables fast stamina. Requires cheats.
|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
|citadel_enable_no_hero_death
Line 89: Line 94:
|
|
|Pause the match.
|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
|citadel_pregame_duration
Line 143: Line 153:
|3
|3
|Changes how many seconds the countdown will last when the game is unpaused. Requires cheats.
|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
|deadlock_early_development_warning_disabled
Line 148: Line 163:
|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".
|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 6th, 2024]].
|-
|-
|deadlock_post_match_survey_disabled
|deadlock_post_match_survey_disabled
Line 168: Line 189:
|
|
|Sets your health to the given percentage of your max health. Requires cheats.
|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
|hurtme
Line 207: Line 233:
|Kills an NPC (troopers, guardians, walkers, etc.).
|Kills an NPC (troopers, guardians, walkers, etc.).
This causes the standard death sequence with particles, announcer lines, drops souls, etc.
This causes the standard death sequence with particles, announcer lines, drops souls, etc.
|-
|private_lobby_create
|
|
|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.]]
|-
|-
|quit
|quit

Latest revision as of 02:39, 13 September 2024

Console commands allow you to modify gameplay settings. Pressing F7 will open the developer console, which allows you to run commands.

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
  • 0: Select a team and hero.
  • 1: Join spectators.
  • 2: Join The Amber Hand and select a hero.
  • 3: Join The Sapphire Flame and select a hero.
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: Auto
  • 0: North America
  • 1: Europe
  • 2: Asia
  • 3: South America
  • 4: Europe (not sure if this is different from 1)
  • 5: Oceania
-1 Overrides your matchmaking region.
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_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_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 6th, 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.
killme Kills you.
kingme Gives you 1.2 million souls and levels up all your abilities. Requires cheats.
map
  • street_test: The main multiplayer map
  • new_player_basics: The Hero Sandbox map
  • 1v1_test: Seems like an early, smaller version of street_test
  • hero_testing: Seems like an early Hero Sandbox
Starts a game and loads into the chosen map.

When used in a multiplayer lobby, this command will kick everyone from the server. Use changelevel to switch maps without kicking everyone.

npc_destroy The name of an NPC to destroy (type npc_destroy<space> to see a list of names).

If no name is provided, destroys the NPC you're looking at.

Destroys an NPC (troopers, guardians, walkers, etc.).

As opposed to npc_kill, which causes the standard death sequence, this command zaps the NPC out of existence.

npc_kill The name of an NPC to kill (type npc_kill<space> to see a list of names).

If no name is provided, kills the NPC you're looking at.

Kills an NPC (troopers, guardians, walkers, etc.).

This causes the standard death sequence with particles, announcer lines, drops souls, etc.

private_lobby_create Brings up a menu that allows players to create a private lobby hosted on Valve servers.

Added in Update:September 12, 2024.

quit Closes the game.
resetme Resets your level, abilities, and souls. Requires cheats.
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.

Hosting Custom Games[edit | edit source]

  • 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 .

Adding Bots[edit | edit source]

  • 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.

For some reason, all the bots will be in one lane until a guardian in that lane dies. I'm not sure how to fix this. You can test this behaviour by looking at a guardian/walker and killing it with npc_kill.