Start the game with the -console command line parameter. Then, press ~ during game play to display the console window. Enter one of the following codes to activate the corresponding cheat function. Also, any code can be used as a command line parameter by prefixing it with the "-" character.
Effect - Code
God mode (server only) - god
Spawn indicated item - give
Reduce your health - buddha
Damage player - hurtme
All weapons - impulse 101
Spawn a jeep - impulse 82
Ignored by NPCs - notarget
Walk through objects (server only) - noclip
List maps - maps
Load indicated map - map
Toggle developer mode; 2 is verbose - developer <0-2>
Enable mouse look - +mlook
Show crosshairs - hud_quickhelp/text? 1
Sets the size of carried weapon; 54 is default - viewmodel_fov
Execute script file - exec
Toggle HUD display - cl_drawhud <0 or 1>
Toggle HUD display - cl_enablehud <0 or 1>
Toggle frame rate display - cl_showfps <0 or 1>
Creates an NPC; only where NPC are allowed - npc_create
Create an NPC aiming away from player - npc_create_aimed
Toggle picker mode - picker
Move player to indicated location; requires sv_cheats 1 - setpos
Set view to indicated pitch yaw; requires sv_cheats 1 - Setang
Set gravity value - sv_gravity
Set minimum stopping speed when on ground - sv_stopspeed
Set world friction - sv_friction
Set bounce multiplier for physically simulated objects collision - sv_bounce
Set maximum velocity of any moving object - sv_maxvelocity
Set vertical view fixup when eyes are near water plane - sv_waterdist
Change air density - air_density
Set length of explosion confusion - dsp_explosion_effect_duration
Toggle bounding-boxes debug mode; red: ignore damage, white: respond to damage, green: health - prop_debug
Toggle reporting missing .WAV files - sv_soundemitter_filecheck
Limits the number of texture units; 0 lets the game decide - mat_numtextureunits |