Welcome to FOoM's TeamFortress Files
General Scripts

These are general scripts, mostly used for convienience. For the best results put them in your tfc/autoexec.cfg or Steam's tfc/userconfig.cfg using notepad. You may change the bind lines to include your own key choices, for best results manually write the bind lines to your tfc/config.cfg


Netgraph Display - Toggle thru the various types of displays.

//toggle netgraph
alias ngrfon3 "net_graph 3; net_graphwidth 192; net_graphheight 64; bind F4 ngrfon1"
alias ngrfon1 "net_graph 1; net_graphwidth 48; net_graphheight 20; bind F4 ngrffps"
alias ngrffps "net_graph 0; cl_showfps 1; bind F4 ngrfoff"
alias ngrfoff "cl_showfps 0; bind F4 ngrfon3"
bind F4 ngrffps



Williepete's - Flag Toss with health and team notification.

"This little bind has a lot of stuff and I thought I would use it to explain a few things. First, the two // will prevent the game engine from seeing anything after that on the same line. This is normally used to add comments or prevent a bind without deleting it from the config. This bind will throw the flag, message on mm2, give your health and armor at the time, and also say flag through your speakers. While it is fun to see all this happen when you hit a key, there is one important piece of information that can be useful. Based on the situation, you can see the flag carrier's status at the time of the flag toss. If he had -health, he died before he could throw the flag and if he threw the flag with a lot of health and armor, he is still alive and in the play."


//drops flag and says "flag" in the HUD and tells teammates.
alias throwflag "say_team THROWING FLAG [%h] [%a]; dropitems"
bind ALT "throwflag"



Field of View scripts - Toggle thru the various views.

//Field of view changes, for reg classes not snipers.
//toggle zoom in
alias zs80 "fov 80;bind F1 zs70;developer 1;echo zoom in 80;developer 0"
alias zs70 "fov 70;bind F1 zs90;developer 1;echo zoom in 70;developer 0"
alias zs90 "fov 90;bind F1 zs80;developer 1;echo normal 90;developer 0"

//toggle zoom out-wider field of view
alias zeiss100 "fov 100;bind F2 zeiss90;developer 1;echo zoom out 100;developer 0"
alias zeiss90 "fov 90;bind F2 zeiss100;developer 1;echo normal 90;developer 0"
bind F2 zeiss100


Record Demo - Use a simple key hit to start or stop demos.

// RECORDING DEMOS with team chat announce
alias mov1 "alias mydemo mov2; record demo1; wait; say_team START demo1"
alias mov2 "alias mydemo mov3; stop;wait; say_team STOP demo1"
alias mov3 "alias mydemo mov4; record demo2; wait; say_team START demo2"
alias mov4 "alias mydemo mov5; stop;wait; say_team STOP demo2"
alias mov5 "alias mydemo mov6; record demo3; wait; say_team START demo3"
alias mov6 "alias mydemo mov7; stop;wait; say_team STOP demo3"
alias mov7 "alias mydemo mov8; record demo4; wait; say_team START demo4"
alias mov8 "alias mydemo mov1; stop;wait; say_team STOP demo4"
alias mydemo mov1
bind x mydemo


Game Volume script

//Volume cycler
alias vollvl1 "volume 0.000000"
alias vollvl2 "volume 0.300000"
alias vollvl3 "volume 0.800000"
alias lowlvl1 "vollvl1; wait; alias pumpit uplvl1; developer 1; echo SOUND OFF;developer 0"
alias uplvl1 "vollvl2; wait; alias pumpit up2lvl2; developer 1; echo SOUND MEDIUM;developer 0"
alias up2lvl2 "vollvl3; wait; alias pumpit lowlvl1; developer 1; echo SOUND HIGH;developer 0"
alias pumpit lowlvl1
bind l pumpit


Clean Screenshot Script

//Cleanpic script by |RES|Entreri (modified by forn)
alias +cleanerpic "impluse 50; wait; r_drawviewmodel 0; wait; hud_draw 0; wait; crosshair 0; wait; net_graph 0; wait; wait; snapshot"
alias -cleanerpic "r_drawviewmodel 1; wait; crosshair 1; wait; hud_draw 0"
bind key +cleanerpic