In-Game Controls
| Command or Variable | Defaults | Description | Game |
|---|---|---|---|
| +attack | none | Fires primary weapon. | all |
| +attack2 | none | Alternate fire for primary weapon in HL. Shows class special ability menu in TFC. | all |
| +back | none | Move player backward. | all |
| +camdistance | none | Move chase cam away from player if third person is active. | all |
| +camin | none | Move chase cam forward only works if third person is active. | all |
| +cammousemove | none | Lets mouse motion control chase cam while command is held down if third person is active. | all |
| +camout | none | Move chase cam back and away if third person is active. | all |
| +campitchdown | none | Aim chase cam down if third person is active. | all |
| +campitchup | none | Aim chase cam upward if third person is active. | all |
| +camyawleft | none | Tilt chase cam to the left if third person is active. | all |
| +camyawright | none | Tilt chase cam to the right if third person is active. | all |
| +commandmenu | none | Open the command menu. | all |
| +det20 | none | Set detpack to explode in 20 seconds. | TFC, Demo class only |
| +det5 | none | Set detpack to explode in 5 seconds. | TFC, Demo class only |
| +det50 | none | Set detpack to explode in 50 seconds. | TFC, Demo class only |
| +duck | none | Duck or crouch. | all |
| +forward | none | Move player forward. | all |
| +graph | none | Show last active or default net_graph connection stats. | all |
| +gren1 | none | Toss primary grenade. | TFC |
| +gren2 | none | Toss secondary grenade. | TFC |
| +jlook | none | Enable joystick look. | all |
| +jump | none | Make player jump. | all |
| +klook | none | Enable keyboard look. | all |
| +left | none | Rotate player left. | all |
| +lookdown | none | Look down. | all |
| +lookup | none | Look up. | all |
| +mlook | none | Enable mouse look. | all |
| +movedown | none | Move player down (swim, fly, climb). | all |
| +moveleft | none | Strafe left. | all |
| +moveright | none | Strafe right. | all |
| +moveup | none | Move player up (swim, fly, climb). | all |
| +reload | none | Reload primary weapon. | all |
| +right | none | Rotate player right. | all |
| +score | none | Show player scoreboard (if applicable). | all |
| +showscores | none | Show pings, scores for all players on server (if applicable). | all |
| +speed | none | Player walks forward if autorun is enabled, otherwise player runs forward. | all |
| +strafe | none | Strafe modifier: direction keys strafe if this command is held down. | all |
| +use | none | Use item/objects (switch, scientist, etc.). | all |
| build | none | Display build menu for TFC engineers | TFC, Engineer class only |
| centerview | none | Centers player view | all |
| changeclass | none | Display class change menu. | TFC |
| changeteam | none | Display team change menu. | TFC |
| detdispenser | none | Remotely detonate ammo dispenser. | TFC, Engineer class only |
| detsentry | none | Remotely detonate sentry gun | TFC, Engineer class only |
| discard | none | Drop ammo your class can't use. | TFC |
| dropitems | none | Drop the flag. | TFC |
| escape | none | Same function as ESC key. | all |
| feign | none | Feign death loudly (player grunts as if killed) | TFC, Spy class only |
| flaginfo | none | Display flag status. | TFC |
| force_centerview | none | Forces centered player view. | all |
| fov | 90 | Sets player field of vision: use smaller numbers to zoom in, larger to zoom out.Range is 1-179. | all |
| hideconsole | none | Hide the console. | all |
| impulse | 100 | Special variables/actions performed dependent on argument. "impulse 100"enables flashlight. | all |
| invnext | none | Select next item in inventory. | all |
| invprev | 0 | Select previous item in inventory. | all |
| kill | none | Commit suicide. | all |
| lastinv | none | Switch to last item or weapon used. | TFC |
| messagemode | none | Shows prompt for message to send to all players connected to the server. | all |
| messagemode2 | none | Shows prompt for message to send to your team only. | all |
| pause | none | Pause game. | all |
| primeone | none | Prime primary grenade (like holding down +gren1). | TFC |
| primetwo | none | Prime secondary grenade (like holding down +gren2). | TFC |
| saveme | none | Call for medic. | TFC |
| sfeign | none | Silently feign death. | TFC, Spy class only. |
| slot1 | none | Select weapon/menu group/item 1. | all |
| slot10 | none | Select weapon/menu group/item 10. | all |
| slot2 | none | Select weapon/menu group/item 2. | all |
| slot3 | none | Select weapon/menu group/item 3. | all |
| slot4 | none | Select weapon/menu group/item 4. | all |
| slot5 | none | Select weapon/menu group/item 5. | all |
| slot6 | none | Select weapon/menu group/item 6. | all |
| slot7 | none | Select weapon/menu group/item 7. | all |
| slot8 | none | Select weapon/menu group/item 8. | all |
| slot9 | none | Select weapon/menu group/item 9. | all |
| special | none | Displays class special ability menu like +attack2, but not server-dependent. Select with menuselect x. | TFC |
| spectator | 0 | Enter spectator mode if applicable. | all |
| tell | [playername] "message" | Send message to console of given player. Other player must have developer set to 1 or console open to see it. | all |
| tf_weapon_ac | none | Select autocannon, ie "use tf_weapon_abc." | TFC, HWGuy class only |
| tf_weapon_autorifle | none | Select autorifle, ie "use tf_weapon_abc." | TFC, Sniper class only |
| tf_weapon_axe | none | Select crowbar, ie "use tf_weapon_abc." | TFC |
| tf_weapon_flamethrower | none | Select flamethrower, ie "use tf_weapon_abc." | TFC, Pyro class only |
| tf_weapon_gl | none | Select grenade launcher, ie "use tf_weapon_abc." | TFC, Demo class only |
| tf_weapon_ic | none | Select incendiary cannon, ie "use tf_weapon_abc." | TFC, Pyro class only |
| tf_weapon_knife | none | Select knife, ie "use tf_weapon_abc." | TFC, Spy class only |
| tf_weapon_medikit | none | Select medikit, ie "use tf_weapon_abc." | TFC, Medic class only |
| tf_weapon_ng | none | Select nailgun, ie "use tf_weapon_abc." | TFC, Sniper or Scout classes only |
| tf_weapon_pl | none | Select pipe bomb launcher, ie "use tf_weapon_abc." | TFC, Demo class only |
| tf_weapon_railgun | none | Select railgun, ie "use tf_weapon_abc." | TFC, Engineer class only |
| tf_weapon_rpg | none | Select rocket launcher, ie "use tf_weapon_abc." | TFC, Soldier class only |
| tf_weapon_sniperrifle | none | Select sniper rifle, ie "use tf_weapon_abc." | TFC, Sniper class only |
| tf_weapon_spanner | none | Select wrench, ie "use tf_weapon_abc." | TFC, Engineer class only |
| tf_weapon_superng | none | Select super nailgun, ie "use tf_weapon_abc." | TFC, Medic class only |
| tf_weapon_supershotgun | none | Select super shotgun, ie "use tf_weapon_abc." | TFC, HWGuy class only |
| tf_weapon_tranq | none | Select tranquilizer, ie "use tf_weapon_abc." | TFC, Spy class only |
| throwgren | none | Throw grenade last primed with prime one or prime two. | TFC |
| togglebrowser | none | Toggle default web browser. | all |
| toggleconsole | none | Toggle console. | all |
| violence_ablood | 1 | Enables blood decals. | all |
| violence_agibs | 1 | Enables gib models (when enemy blows up). | all |
| violence_hblood | 1 | Enables more blood. | all |
| violence_hgibs | 1 | Enables more gibs. Hooray! Turning any of the violence settings off will increase performance a little. | all |
| weapon_357 | none | Select .357 Magnum, ie "use weapon_abc." | HL, OpFor |
| weapon_9mmAR | none | Select 9mm assault rifle, ie "use weapon_abc." | HL, OpFor |
| weapon_9mmhandgun | none | Select Glock pistol, ie "use weapon_abc." | HL, OpFor |
| weapon_crossbow | none | Select crossbow, ie "use weapon_abc." | HL, OpFor |
| weapon_crowbar | none | Select crowbar, ie "use weapon_abc." | HL, OpFor |
| weapon_displacer | none | Select experimental displacer, ie "use weapon_abc." | OpFor |
| weapon_eagle | none | Select Desert Eagle pistol, ie "use weapon_abc." | OpFor |
| weapon_egon | none | Select gluon gun, ie "use weapon_abc." | HL, OpFor |
| weapon_gauss | none | Select gauss gun, ie "use weapon_abc." | HL, OpFor |
| weapon_grapple | none | Select Xen barnacle weapon, ie "use weapon_abc." | OpFor |
| weapon_handgrenade | none | Select hand grenades, ie "use weapon_abc." | HL, OpFor |
| weapon_hornetgun | none | Select hivehand, ie "use weapon_abc." | HL, OpFor |
| weapon_knife | none | Select knife, ie "use weapon_abc." | HL, OpFor |
| weapon_m249 | none | Select M-249, ie "use weapon_abc." | HL, OpFor |
| weapon_pipewrench | none | Select giant @$$-kicking wrench, ie "use weapon_abc." | OpFor |
| weapon_rpg | none | Select rocket-propelled grenade launcher, ie "use weapon_abc." | HL, OpFor |
| weapon_satchel | none | Select satchel explosive, ie "use weapon_abc." | HL, OpFor |
| weapon_shockrifle | none | Select alien shock roach, ie "use weapon_abc." | OpFor |
| weapon_shotgun | none | Select shotgun, ie "use weapon_abc." | HL, OpFor |
| weapon_snark | none | Select snark, ie "use weapon_abc." | HL, OpFor |
| weapon_sniperrifle | none | Select sniper rifle, ie "use weapon_abc." | OpFor |
| weapon_sporelauncher | none | Select alien spore launcher, ie "use weapon_abc." | OpFor |
| weapon_tripmine | none | Select laser tripmine, ie "use weapon_abc." | HL, OpFor |
Mouse & Joystick
| Command or Variable | Defaults | Description | Game |
|---|---|---|---|
| +attack | none | Fires primary weapon. | all |
| +attack2 | none | Alternate fire for primary weapon in HL. Shows class special ability menu in TFC. | all |
| +back | none | Move player backward. | all |
| +camdistance | none | Move chase cam away from player if thirdperson is active. | all |
| +camin | none | Move chase cam forward only works if thirdperson is active. | all |
| +cammousemove | none | Lets mouse motion control chase cam while command is held down if thirdperson is active. | all |
| +camout | none | Move chase cam back and away if thirdperson is active. | all |
| +campitchdown | none | Aim chase cam down if thirdperson is active. | all |
| +campitchup | none | Aim chase cam upward if thirdperson is active. | all |
| +camyawleft | none | Tilt chase cam to the left if thirdperson is active. | all |
| +camyawright | none | Tilt chase cam to the right if thirdperson is active. | all |
| +commandmenu | none | Open the command menu. | all |
| +det20 | none | Set detpack to explode in 20 seconds. | TFC, Demo class only |
| +det5 | none | Set detpack to explode in 5 seconds. | TFC, Demo class only |
| +det50 | none | Set detpack to explode in 50 seconds. | TFC, Demo class only |
| +duck | none | Duck or crouch. | all |
| +forward | none | Move player forward. | all |
| +graph | none | Show last active or default net_graph connection stats. | all |
| +gren1 | none | Toss primary grenade. | TFC |
| +gren2 | none | Toss secondary grenade. | TFC |
| +jlook | none | Enable joystick look. | all |
| +jump | none | Make player jump. | all |
| +klook | none | Enable keyboard look. | all |
| +left | none | Rotate player left. | all |
| +lookdown | none | Look down. | all |
| +lookup | none | Look up. | all |
| +mlook | none | Enable mouse look. | all |
| +movedown | none | Move player down (swim, fly, climb). | all |
| +moveleft | none | Strafe left. | all |
| +moveright | none | Strafe right. | all |
| +moveup | none | Move player up (swim, fly, climb). | all |
| +reload | none | Reload primary weapon. | all |
| +right | none | Rotate player right. | all |
| +score | none | Show player scoreboard (if applicable). | all |
| +showscores | none | Show pings, scores for all players on server (if applicable). | all |
| +speed | none | Player walks forward if autorun is enabled, otherwise player runs forward. | all |
| +strafe | none | Strafe modifier: direction keys strafe if this command is held down. | all |
| +use | none | Use item/objects (switch, scientist, etc). | all |
| build | none | Display build menu for TFC engineers | TFC, Engineer class only |
| centerview | none | Centers player view | all |
| changeclass | none | Display class change menu. | TFC |
| changeteam | none | Display team change menu. | TFC |
| detdispenser | none | Remotely detonate ammo dispenser. | TFC, Engineer class only |
| detsentry | none | Remotely detonate sentry gun | TFC, Engineer class only |
| discard | none | Drop ammo your class can't use. | TFC |
| dropitems | none | Drop the flag. | TFC |
| escape | none | Same function as ESC key. | all |
| feign | none | Feign death loudly (player grunts as if killed) | TFC, Spy class only |
| flaginfo | none | Display flag status. | TFC |
| force_centerview | none | Forces centered player view. | all |
| fov | 90 | Sets player field of vision: use smaller numbers to zoom in, larger to zoom out. Range is 1-179. | all |
| hideconsole | none | Hide the console. | all |
| impulse | 100 | Special variables/actions performed dependent on argument. "impulse 100" enables flashlight. | all |
| invnext | none | Select next item in inventory. | all |
| invprev | 0 | Select previous item in inventory. | all |
| kill | none | Commit suicide. | all |
| lastinv | none | Switch to last item or weapon used. | TFC |
| messagemode | none | Shows prompt for message to send to all players connected to the server. | all |
| messagemode2 | none | Shows prompt for message to send to your team only. | all |
| pause | none | Pause game. | all |
| primeone | none | Prime primary grenade (like holding down +gren1). | TFC |
| primetwo | none | Prime secondary grenade (like holding down +gren2). | TFC |
| saveme | none | Call for medic. | TFC |
| sfeign | none | Silently feign death. | TFC, Spy class only. |
| slot1 | none | Select weapon/menu group/item 1. | all |
| slot10 | none | Select weapon/menu group/item 10. | all |
| slot2 | none | Select weapon/menu group/item 2. | all |
| slot3 | none | Select weapon/menu group/item 3. | all |
| slot4 | none | Select weapon/menu group/item 4. | all |
| slot5 | none | Select weapon/menu group/item 5. | all |
| slot6 | none | Select weapon/menu group/item 6. | all |
| slot7 | none | Select weapon/menu group/item 7. | all |
| slot8 | none | Select weapon/menu group/item 8. | all |
| slot9 | none | Select weapon/menu group/item 9. | all |
| special | none | Displays class special ability menu like +attack2, but not server-dependent. Select with menuselect x. | TFC |
| spectator | 0 | Enter spectator mode if applicable. | all |
| tell | [playername] "message" | Send message to console of given player. Other player must have developer set to 1 or console open to see it. | all |
| tf_weapon_ac | none | Select autocannon, ie "use tf_weapon_abc." | TFC, HWGuy class only |
| tf_weapon_autorifle | none | Select autorifle, ie "use tf_weapon_abc." | TFC, Sniper class only |
| tf_weapon_axe | none | Select crowbar, ie "use tf_weapon_abc." | TFC |
| tf_weapon_flamethrower | none | Select flame thrower, ie "use tf_weapon_abc." | TFC, Pyro class only |
| tf_weapon_gl | none | Select grenade launcher, ie "use tf_weapon_abc." | TFC, Demo class only |
| tf_weapon_ic | none | Select incendiary cannon, ie "use tf_weapon_abc." | TFC, Pyro class only |
| tf_weapon_knife | none | Select knife, ie "use tf_weapon_abc." | TFC, Spy class only |
| tf_weapon_medikit | none | Select medikit, ie "use tf_weapon_abc." | TFC, Medic class only |
| tf_weapon_ng | none | Select nailgun, ie "use tf_weapon_abc." | TFC, Sniper or Scout classes only |
| tf_weapon_pl | none | Select pipe bomb launcher, ie "use tf_weapon_abc." | TFC, Demo class only |
| tf_weapon_railgun | none | Select railgun, ie "use tf_weapon_abc." | TFC, Engineer class only |
| tf_weapon_rpg | none | Select rocket launcher, ie "use tf_weapon_abc." | TFC, Soldier class only |
| tf_weapon_sniperrifle | none | Select sniper rifle, ie "use tf_weapon_abc." | TFC, Sniper class only |
| tf_weapon_spanner | none | Select wrench, ie "use tf_weapon_abc." | TFC, Engineer class only |
| tf_weapon_superng | none | Select super nailgun, ie "use tf_weapon_abc." | TFC, Medic class only |
| tf_weapon_supershotgun | none | Select super shotgun, ie "use tf_weapon_abc." | TFC, HWGuy class only |
| tf_weapon_tranq | none | Select tranquilizer, ie "use tf_weapon_abc." | TFC, Spy class only |
| throwgren | none | Throw grenade last primed with primeone or primetwo. | TFC |
| togglebrowser | none | Toggle default web browser. | all |
| toggleconsole | none | Toggle console. | all |
| violence_ablood | 1 | Enables blood decals. | all |
| violence_agibs | 1 | Enables gib models (when enemy blows up). | all |
| violence_hblood | 1 | Enables more blood. | all |
| violence_hgibs | 1 | Enables more gibs. Hooray! Turning any of the violence settings off will increase performance a little. | all |
| weapon_357 | none | Select .357 Magnum, ie "use weapon_abc." | HL, OpFor |
| weapon_9mmAR | none | Select 9mm assault rifle, ie "use weapon_abc." | HL, OpFor |
| weapon_9mmhandgun | none | Select Glock pistol, ie "use weapon_abc." | HL, OpFor |
| weapon_crossbow | none | Select crossbow, ie "use weapon_abc." | HL, OpFor |
| weapon_crowbar | none | Select crowbar, ie "use weapon_abc." | HL, OpFor |
| weapon_displacer | none | Select experimental displacer, ie "use weapon_abc." | OpFor |
| weapon_eagle | none | Select Desert Eagle pistol, ie "use weapon_abc." | OpFor |
| weapon_egon | none | Select gluon gun, ie "use weapon_abc." | HL, OpFor |
| weapon_gauss | none | Select gauss gun, ie "use weapon_abc." | HL, OpFor |
| weapon_grapple | none | Select Xen barnacle weapon, ie "use weapon_abc." | OpFor |
| weapon_handgrenade | none | Select hand grenades, ie "use weapon_abc." | HL, OpFor |
| weapon_hornetgun | none | Select hivehand, ie "use weapon_abc." | HL, OpFor |
| weapon_knife | none | Select knife, ie "use weapon_abc." | HL, OpFor |
| weapon_m249 | none | Select M-249, ie "use weapon_abc." | HL, OpFor |
| weapon_pipewrench | none | Select giant @$$-kicking wrench, ie "use weapon_abc." | OpFor |
| weapon_rpg | none | Select rocket-propelled grenade launcher, ie "use weapon_abc." | HL, OpFor |
| weapon_satchel | none | Select satchel explosive, ie "use weapon_abc." | HL, OpFor |
| weapon_shockrifle | none | Select alien shock roach, ie "use weapon_abc." | OpFor |
| weapon_shotgun | none | Select shotgun, ie "use weapon_abc." | HL, OpFor |
| weapon_snark | none | Select snark, ie "use weapon_abc." | HL, OpFor |
| weapon_sniperrifle | none | Select sniper rifle, ie "use weapon_abc." | OpFor |
| weapon_sporelauncher | none | Select alien spore launcher, ie "use weapon_abc." | OpFor |
| weapon_tripmine | none | Select laser tripmine, ie "use weapon_abc." | HL, OpFor |