All Console Commands for Heroes of Hammerwatch II

Welcome, heroes! Heroes of Hammerwatch II delivers an exciting action RPG experience, challenging players to brave treacherous dungeons and expand their town beyond the Castle of Hammerwatch. This rogue-like adventure offers deep gameplay, but sometimes, a little extra control can enhance your journey or help debug tricky situations. This guide provides a comprehensive list of all console commands available in Heroes of Hammerwatch II, allowing you to fine-tune your game, experiment with settings, or even activate cheats for a more relaxed playthrough. Whether you’re a seasoned adventurer or just starting, mastering these commands can unlock new ways to enjoy the game.

How to Access the Command Console

Gaining access to the command console in Heroes of Hammerwatch II is a straightforward process, enabling you to quickly input any desired commands. To open the console window, simply press the tilde key (~) on your keyboard. This key is typically found directly below the Esc key and to the left of the ‘1’ key. Once pressed, a command line interface will appear on your screen. Here, you can type out commands precisely as they are listed. After entering a command, hit the Enter key to execute it. If a command requires additional parameters, ensure you include them correctly following the command name. This simple action opens up a world of customization and control within the game, whether you’re adjusting settings or exploring new possibilities.

All Console Commands

Here you will find a comprehensive compilation of all available console commands in Heroes of Hammerwatch II. These commands are categorized for easier navigation, covering everything from visual adjustments to gameplay mechanics and debugging tools.

Game Config Commands 

These commands allow you to modify various core aspects of the game’s behavior and general settings. They affect how certain mechanics function or how the game world is presented, offering ways to tailor your gameplay experience beyond standard in-game options.

  • r_hdr: Toggles High Dynamic Range rendering, impacting the game’s lighting and color depth.
  • g_laser_sight: Controls the visibility of the aim guide (laser sight). Use 1 for on, 0 for off, or -1 for automatic.
  • g_local_player_marker: Displays a unique colored circle beneath your character, making it easier to track yourself. Set to True or False.
  • g_mousemove_speed: Adjusts the sensitivity multiplier for mouse cursor movement when using a gamepad.
  • g_movedir_snap: Sets the angle for snapping movement direction on gamepads, providing more precise control.
  • g_potion_delay: Imposes a brief cooldown on potion usage to prevent accidental rapid consumption.
  • g_richpresence: Enables or disables rich presence integration for platforms like Discord and Steam, showing your current game activity.
  • r_shadows: Modifies the quality and extent of shadows. Options include 0 (off), 1 (sun only), or 2 (all shadows).
  • r_smooth_scrolling: Activates or deactivates smooth camera transitions during movement.
  • rg_brightness: Adjusts the overall brightness level of the game’s visuals.
  • rg_contrast: Changes the contrast ratio of colors on screen, affecting image vibrancy.
  • rg_gamma: Modifies the gamma correction value, altering the perceived brightness of mid-tones.
  • rg_crt_curve: Sets a multiplier for the CRT (Cathode Ray Tube) curve visual effect, giving a retro feel.
  • rg_pixel_perfect: Determines if the game renders in a pixel-perfect mode (scaled for performance) or full resolution (slower, potentially smoother effects like shadows).

Video Config Commands

These commands offer direct control over the game’s visual display settings, enabling you to optimize performance or achieve a specific graphical style. From resolution changes to aspect ratio adjustments, you can fine-tune how the game appears on your monitor.

  • v_resolution: Changes the game’s rendering resolution. For instance, use v_resolution 1920x1080.
  • v_fullscreen: Toggles between fullscreen and windowed display modes. Input 0 for windowed or 1 for fullscreen.
  • v_vsync: Activates or deactivates vertical synchronization, which can prevent screen tearing. Use True or False.
  • v_forced_aspect_ratio: Allows you to manually set the game’s aspect ratio, potentially creating a zoomed-out perspective.

Console Config Commands 

These specific commands empower you to customize the command console itself. You can alter its appearance, behavior, and even hide it completely, providing a personalized and efficient interface for command entry and feedback.

  • cs_bgcolor: Sets the background color of the console window using a vec4 (red, green, blue, alpha) value. Example: cs_bgcolor 1 0 0 0.5 for translucent red.
  • cs_fgcolor: Changes the text color displayed within the console, also using a vec4 format.
  • cs_enabled: Completely enables or disables the console functionality, useful if you wish to rebind the console key.
  • cs_height: Adjusts the console window’s height as a multiplier of the screen height (e.g., 0.5 for 50%).
  • cs_show_build: Determines whether the game’s build ID is visible in the bottom left corner of the screen.
  • cs_show_log: Displays recent log entries as an overlay at the top of your screen for quick debugging.
  • cs_show_log_count: Specifies the number of recent log lines to be shown when cs_show_log is active.
  • cs_speed: Controls the animation speed when the console window appears or disappears; higher values mean faster transitions.
  • condump: Exports the current contents of the console to a file. Specify the filename (e.g., condump "mylog.txt").

Cheat Commands

The cheat commands offer powerful modifications to your game, intended for testing, experimentation, or simply having fun without strict gameplay constraints. Remember, these are generally only active on modded profiles and are clearly flagged in-game to indicate their use.

  • e_cheats: This command must be enabled first for any other cheat commands to function. A red text overlay will confirm its activation. Only available on modded profiles.
  • change_level: Loads a specific level by its relative path, such as levels/testDoodad.lvl.
  • g_scale: Adjusts the overall scaling of the game’s view. Default for 16:9 is typically 4.
  • g_timescale: Controls the game’s speed; values above 1 speed up, values below 1 slow down.
  • cht_change_weather: Instantly alters the current weather pattern. Options include fair, windy, rain_2, rain_3, snow_1, snow_2.
  • cht_clear_flags: Removes all currently set game flags, which might affect your save state.
  • cht_clear_inventory: Deletes every item from your inventory, including critical key items.
  • cht_clear_skills: Resets all skill point allocations, allowing you to re-spec your character.
  • cht_explore_level: Reveals the entire map of the current level.
  • cht_finish_quest <quest-id>: Marks a specified quest as completed.
  • cht_give_item <id> <amount>: Grants a specific quantity of an item identified by its ID.
  • cht_give_and_equip_item <id>: Provides an item and automatically equips it to your character.
  • cht_give_experience <amount>: Adds a specified amount of experience points to your character.
  • cht_give_gold <amount>: Awards your character a specified quantity of gold.
  • cht_give_health <amount>: Restores or grants the specified amount of health.
  • cht_give_mana <amount>: Restores or grants the specified amount of mana.
  • cht_give_many_equipment <slot> <quality> <tier> <amount> [0 = random]: Generates multiple equipment pieces with specified characteristics.
  • cht_give_random_equipment <amount>: Bestows a specified number of random equipment items.
  • cht_give_tier <tier>: Grants all items and benefits associated with a specific tier: apprentice, adept, expert, master.
  • cht_give_uniques <slot> <tier> <amount> <tag>: Provides multiple unique items based on specified slot, tier, quantity, and tags.
  • cht_god: Toggles invincibility mode.
  • cht_killall: Eliminates all enemies currently present on the level.
  • cht_levelup <amount>: Increases your character’s level by the specified number of levels.
  • cht_list_all_items: Outputs a list of all items and their IDs in the game to the console/log.
  • cht_list_flags: Displays all currently active flags in the game.
  • cht_list_quests: Shows a list of all quests and their corresponding IDs.
  • cht_noclip: Toggles the ability to pass through terrain and objects freely.
  • cht_play_music <value>: Initiates playback of a specified music track.
  • cht_play_ambience <value>: Starts playing a particular ambient sound track.
  • cht_plr_hidden: When true, your character sprite becomes invisible on screen.
  • cht_plr_level_progress <level>: Sets your character to a specific level, assigning appropriate gear and key items.
  • cht_refil_potions: Replenishes all your potion charges.
  • cht_revive: Immediately revives your fallen character.
  • cht_set_flag <flag> <value> <persistent>: Allows you to manually set or unset a game flag, with an option for persistence.
  • cht_show_tailor: Opens the Tailor UI, enabling character color customization.
  • cht_solve_quest <id>: Marks a specified quest as “solved.”
  • cht_start_quest <id>: Initiates a specific quest within the game.

Debug Commands

  • cs_show_menu*: Displays an on-screen menu with various debug options and information about your current save.
  • list_flags: Lists all active flags in the console, providing insight into game states.
  • r_draw_scripts*: Visualizes active scripts on screen for debugging game logic.
  • r_draw_scripts_compact*: Toggles a compact view for drawn scripts.
  • r_draw_scripts_lines*: When scripts are drawn, toggles the visibility of connecting lines between them.
  • r_draw_collision*: Renders the collision boxes of objects, useful for level design and interaction debugging.
  • r_draw_physics*: Shows the physics properties and interactions of objects.
  • r_draw_raycasts*: Visualizes raycasts, useful for understanding line-of-sight and targeting.
  • r_draw_pathfinds*: Displays information related to enemy and NPC pathfinding.
  • r_draw_line_of_sight: Toggles the game’s fog of war or line of sight effect visibility.
  • debug_widgets: Provides debugging assistance for on-screen user interface widgets.
  • ui_cursor_unit: Shows the name of any unit your mouse cursor is hovering over.
  • dump_level_save*: Exports the current level’s save data into a file within the game directory.
  • res_dump_generated 1: (Set in config file) Writes all runtime-generated files to a temporary folder in the game directory.

Editor Config Commands

For those who delve into custom content creation, these commands provide tools to configure the in-game editor’s visual feedback and operational limits. They help streamline the editing process by controlling how script lines appear and how many actions can be undone.

  • r_script_line_alpha: Adjusts the transparency (alpha) of script lines displayed in the editor.
  • r_script_line_scroll: Enables or disables the animated scrolling effect for script links in the editor.
  • r_draw_scripts_lines_head: Sets the size of the arrowhead used for script links in the editor.
  • ed_grid_color: Changes the RGBA color of the editor’s grid overlay. Example: 0.5,0.1,0.1,0.8 for a transparent red grid.
  • ed_grid_width: Specifies the pixel thickness of the grid lines in the editor.
  • ed_history_limit: Defines the maximum number of changes the editor will store in its undo history.

Multiplayer and Lobby Command

This particular command offers a basic function for interacting within multiplayer lobbies directly from the console, providing a quick way to communicate with other players without navigating the UI.

  • lobby_say: Sends a chat message to other players within the current multiplayer lobby via the console.

Sound Commands

These commands offer precise control over various audio elements within Heroes of Hammerwatch II. You can individually adjust the volume levels for different categories of sound, allowing for a perfectly balanced auditory experience to match your preferences.

  • snd_volume: Adjusts the overall master volume scale for all in-game audio.
  • snd_volume_env: Controls the volume level specifically for environmental sound effects.
  • snd_volume_music: Modifies the volume scale for the game’s background music.
  • snd_volume_sfx: Sets the volume level for general sound effects, such as combat and interaction noises.
  • snd_volume_ui: Adjusts the volume scale for user interface sounds.
  • snd_volume_voice: Controls the volume level for character voice lines and other vocal elements.

UI Commands 

These commands enable customization of the game’s user interface, allowing you to control how elements like health bars, player names, and overall UI scaling are presented on your screen. This helps in decluttering or emphasizing crucial information during gameplay.

  • ui_bars_visibility: Determines when health/mana bars appear in the middle of the screen. Options: -1 (never), 0 (only when not full), 1 (always).
  • ui_draw_plr_names: Controls the visibility of player names above character heads. Options: -1 (never), 0 (only in town), 1 (always).
  • ui_draw_plr_names_real: Toggles displaying players’ Steam/GOG usernames instead of their character names above their heads.
  • ui_scale: Adjusts the overall scaling multiplier for the entire user interface.

Other Commands 

This category encompasses various utility commands that provide extra functionality, from creating custom keybindings to real-time monitoring of specific game variables. These can be particularly useful for power users or those engaged in detailed troubleshooting.

  • bind: Allows you to assign a console command to a specific key. For example, bind f4 "killall" will execute the killall command when F4 is pressed.
  • track MYVAR: Displays the real-time value of a specified console variable (MYVAR). To remove tracking, restart the game or use cs_show_vars 0.
  • plot 60 MYVAR: Visualizes the real-time value of a console variable (MYVAR) as a plot. The first argument determines the number of frames the values are retained. To remove the plot, restart the game or use cs_show_vars 0.

Leave a Reply

Latest posts

Discover more from iGV Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading