
Gsom Console 1.0.0 Tools 4.2 Community
Submitted by user RaubTieR; MIT; 2025-08-03
A Half-Life 1 inspired console for Godot projects. There is an autoload singleton and optional UI.
Implements variables, commands, aliases, input, etc. See full readme on GitHub or built-in Godot docs.
Register CVARs/CMDs/actions from code:
GsomConsole.register_cvar("test", 5, "Description.")
GsomConsole.register_cmd("do_something", "Description.")
GsomConsole.register_action("jump")
This is NOT a GDScript REPL console, it uses separate syntax and rules similar to Half-Life and Quake (and Bash/CMD terminals if that makes sense).
There is a number of built-in commands - all documented in readme and in embedded help. Just a list here: greet, help, quit, mainscene, map, alias, echo, exec, find, write_cvars, write_groups, set, toggle, ifvi, ifvv, inc, dec, condump, open_user, clear, list_bound_commands, list_bind_names, bind, unbind, unbindall, toggle_console, wait.
# A short example script
gravity 10
ifvi gravity == 10 "echo gravity was 10; inc gravity"
bind quote_left toggle_console
bind w +move_up
alias +m_up "+move_up; recolor #549f16"
alias -m_up "-move_up; recolor #9f5416"
bind t +m_up
View files Download Submit an issue Recent Edits