This article's documentation is for the "GoldSrc" engine. Click here for more information.

impulse

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
edit

impulse is a console command available in all GoldSrc GoldSrc games.

It is a generic client-side console command that is used to send commands to the server without modifying the usercmd.

The advantage is that new commands can be added without compatibility-breaking networking changes; the disadvantage is that only one impulse can be sent at a time, and that the commands themselves are non-descriptive.

Syntax:

impulse NUMBER

Impulse commands are generally used for development functions and/or cheats, and almost all require sv_cheats. See CBasePlayer::ImpulseCommands(), CBasePlayer::CheatImpulseCommands()

Impulses

General

# Notes Description
76 Spawn monster_human_grunt
100 Not a cheat Toggle the player flashlight. Requires item_suit. Bound to F by default.
101 Half-Life - Gives all weapons and suit

Counter-Strike - Gives player max money amount ($16000).

102 Spawns 1 random human gib (model "models/hgibs.mdl" with randomly set body) at player's location. [1]
103 Prints AI state of the CBaseMonster entity the player is looking at to the console. Requires developer 1.
104 Dumps global states to console (in Source it would be done by command dump_globals)
105 Toggles between player being silent/audible. Npcs won't hear silent player.
106 Prints the classname, targetname, model and also globalname if non-empty of the entity under the crosshairs to the console.
107 Prints the material that player is looking at to console.
195, 196, 197 Nonfunctional[confirm] Supposed to show the shortest path to the nearest air, large, and human nodes respectively.
199 show nearest node and all connections
201 Not a cheat Creates a player spray on the brush under the crosshair. Use Options, Multiplayer to set a spray. Default key is T.
202 Spray blood over the brush under the crosshair.
203 Removes the entity under the crosshairs only if it can take damage. (seems to be usable only on npcs)

Half-Life

# Notes Description
99 Not a cheat If this command was submitted to the console at least three times, this will show the Valve, Sierra Studios and Half-Life logo rotating on the upper right-hand corner of the screen. Works on WON, Steam versions.
This command does not work with 1280x720/1280x960 or higher resolutions after 25th Anniversary Update, because the game would fail to find the "sprites/1280_logo.spr" file.
This command was used during E3 1998, as seen on the small television screens showcasing gameplay videos of Half-Life.

See also