Console commands: Difference between revisions

Jump to navigation Jump to search
Avery (talk | contribs)
Add npc_kill, npc_destroy, and citadel_hero_testing_infinite_money.
Avery (talk | contribs)
Add instructions for hosting a custom game
Line 9: Line 9:
!Default
!Default
!Description
!Description
|-
|bot_kick_all
|
|
|Kicks all bots from the game.
|-
|-
|changelevel
|changelevel
Line 15: Line 20:
|Loads a new map.
|Loads a new map.
When used in a multiplayer lobby, players will remain connected while the map changes.
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
|citadel_allow_purchasing_anywhere
Line 75: Line 89:
|
|
|Pause the match.
|Pause the match.
|-
|citadel_pregame_duration
|number
|10.0
|Changes the duration of the pregame (countdown before the game starts).
|-
|-
|citadel_region_override
|citadel_region_override
Line 87: Line 106:
| -1
| -1
|Overrides your matchmaking region.
|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
|citadel_spawn_nearby_neutrals
Line 92: Line 117:
|
|
|Respawns nearby neutral camps. Requires cheats.
|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 <code>citadel_spawn_practice_bots</code> is set to true.
|-
|-
|citadel_test_survey_popup
|citadel_test_survey_popup
Line 197: Line 233:
|Kills all non-neutral creeps. Requires cheats.
|Kills all non-neutral creeps. Requires cheats.
|}
|}
== Hosting Custom Games ==
* 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.
* 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 replace with numbers)
** 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"
* 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>.
* If you ever want to restart the game, the host can run <code>changelevel street_test</code> .
=== Adding Bots ===
* On the main menu, before you start the game, run <code>exec citadel_botmatch_practice_6v6_hard</code> to load the bot config.
** 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_count 12</code> to ensure that bots fill all remaining slots (they'll be added until both teams have 6 players).
* Start the game (i.e. <code>map street_test</code>) and press '''P''' to pause the game during the pregame (as soon as you load in).
** You can use <code>citadel_pregame_duration</code> 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 <code>changeteam</code> 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 <code>citadel_spawn_practice_bots true</code>, 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 <code>npc_kill</code>.