+
and -
. Issuing the +
part produces an effect in the game (e.g. walking forward) that continues on until the -
pair is issued, stopping the effect.kill
, screenshot
, quit
save <filename>
, load <filename>
, speak <sentence>
bind <key> <command>
, alias <name> <command>
say words to say to the public game feed
sv_cheats
set to 1.
+
and -
. In general it is used to control the player character. Throughout this page, game input command pairs will only be addressed by their +
prefix and the -
-prefixed command is implied to also exist.+forward
moves the player forward, and -forward
stops it. +use
makes the player USE an entity in front of them until -use
is issued.
bind
command is instrumental for interacting with GoldSource engine, as it translates keyboard keypresses into commands. bind
takes 2 arguments, the key name, and the command to issue. bind w +forward
makes the game issue the +forward
command when the W key is pressed down. Because it's assigned to an input command it also implicitly issue the -forward
command when the same key is released.unbind <key>
. There's also unbindall
but do not issue this command willy-nilly!
.cfg
files containing a list of commands to send. It's used by the engine extensively to set up the current game, by executing some fixed-named script files autoexec.cfg
, config.cfg
, and userconfig.cfg
. In particular, the game auto-generates config.cfg
any time you change key binds (both via the Options dialog or via console) or some cvars.
You should not edit config.cfg
directly and expect the changes to remain, as the game rewrites it and random commands that are not binds or cvars will get discarded. Use userconfig.cfg
to setup your own set of commands you want executed on a game. You can also have any other config file that you can execute at any moment by issuing the exec <path/to/file.cfg>
command.
bind
command) by separating them with semicolons (;
) e.g. bind mheelup "invprev;+attack;wait;-attack"
. Note in the example the wait
command, which delays the execution of the rest of the commands by 1 frame, which in the example is required between the issuing of +attack
and -attack
.alias +speedup "host_framerate 0.08"
alias -speedup "host_framerate 0"
bind kp_plus +speedup
turns your keypad plus key into a "fast forward" key, which reverts to normal when the key is released.userconfig.cfg
.
gfx/shell/kb_act.lst
) for commands/aliases and the Options [> Multiplayer] > Advanced tab (user.scr
) for cvars.
You must log in to post a comment. You can login or register a new account.