Scripts - Class
_____________
The following line needs to be put in 'autoexec.cfg' for class configs to automatically load when you spawn. Or you could type it in console and it will save in 'config.cfg'.
setinfo "ec" "1"
Engineer
Erect buildables by holding a key, release to stop and hit again to detonate:
Rotate 45° & 180°:
//Build script.
// Build entry or exit teleporter using a single key for each.
// Detonate by hitting the same key again.
// Stop building by lifting the key.
//dispenser script
alias +dispenser "detdispenser; build 1"
alias -dispenser "build 3"
//sentry script
alias +sentry "detsentry; build 2"
alias -sentry "build 3"
//teleporter script
alias +tele_ent "detentryteleporter; build 4"
alias -tele_ent "build 3"
alias +tele_exit "detexitteleporter; build 5"
alias -tele_exit "build 3"
bind "v" "+sentry" // Builds sentry
bind "b" "rotatesentry; speak fvox/fuzz; motdfile echo.txt; motd_write Rotating 45 Degrees CCW; developer 1; motd; developer 0; motdfile motd.txt" //Rotate 45° CCW
bind "n" "rotatesentry180; speak fvox/fuzz; motdfile echo.txt; motd_write Rotating 180 Degrees CCW; developer 1; motd; developer 0; motdfile motd.txt" //Rotate 180° CCW
bind "MOUSE2" "+dispenser" // Builds dispencer
bind "g" "+tele_ent" // Builds tele entrance
bind "h" "+tele_exit" // Builds tele exit
Dismantale whatever you are closest to:
//Dismantle nearest thing
bind "m" "dismantle 1; wait; dismantle 2; wait; dismantle 4; wait; dismantle 5"
Spy
Taken from 4est's configs but editied so you get the announcements back like pre Steam.
Put:
cl_forwardspeed 400
cl_backspeed 400
cl_sidespeed 400
in all the class configs including spy.cfg:
// Spy Scripts
// Silent feign, throw flag/packs and keep disguise
// bind "mouse3" "silent" -in spy.cfg
alias silent "discard;wait;dropitems;wait;sfeign;wait;force_centerview"
// feign and throw flag/packs
// bind "mouse4" "ffeign" -in spy.cfg
alias ffeign "cl_pitchspeed 6000; wait; +lookdown; wait; discard; wait; dropitems; feign; wait; -lookdown; wait; force_centerview; cl_pitchspeed 150"
// 4est's Spy Script Compilation
// I implemented a nice spy slow down script into a very handy spy class choosing script.
// Then I made comm aliases to ONLY announce when a button is pushed per Eck's recommendation. GG to the script authors -4est
// 3 speed spy slowdown script ** READ NOTES ABOUT USE **
//It would announce your speed to the upper left of your screen. *Pre Steam*
alias tf_sl1 "cl_forwardspeed 200;cl_backspeed 200;cl_sidespeed 200"
alias tf_sl2 "cl_forwardspeed 300;cl_backspeed 300;cl_sidespeed 300"
alias tf_sl3 "cl_forwardspeed 400;cl_backspeed 400;cl_sidespeed 400"
// These binds are in "spy.cfg"
//bind j tf_sl1 // SLOW speed
//bind k tf_sl2 // Medium speed
//bind n tf_sl3 // Normal speed - also activated any time you attack with the spyswipe alias
// *NOTE* If you are using a multi cfg system like this one, add the one line
// "tf_sl3"
// to your "settings.cfg" file to set default speed upon class or map changes.
// The alias is set here in "classdefault.cfg" and then "settings.cfg" is executed next.
// OTHERWISE add the line "tf_sl3" to ALL your <classname>.cfg files to set the default speeds.
// If not, other classes may play at a slow speed.
// ***YOU MUST ADD*** "tf_sl3"
// It will set all classes to default speeds (cl_forwardspeed 400, cl_backspeed 400, cl_sidespeed 400)
// THEN you can safely use this slowdown script to mimic the speed of your disguise classes.
// ------- Disguise Menu, Selection, and Comms ---------------
//From DarthGreg, use this alias for +attack.
//It automatically redisguises you after you fire your weapon.
alias +spyattack "+attack;wait;tf_sl3" // attacks and returns to default speed
alias -spyattack "-attack; last_disguise;" // stops attack and returns to last disguise
//bind mouse1 +spyattack // -in spy.cfg
// On-screen menu was owned by Steam's removal of echo :/ so the next 2 lines are remarked out.
//alias class "echo KP1=[SCOUT] KP2=[SNIPER] KP3=[SOLDIER] KP4=[DEMOMAN]; class2"
//alias class2 "echo KP5=[MEDIC] KP6=[HWGUY] KP7=[PYROMANIAC] KP8=[SPY] KP9=[ENGINEER]"
// the command "class" was removed as the first item in the "enemy" and "friend" aliases below
// I stole the the use of kp_ins as a toggle for enemy or friedly from DarthGreg.
// It works great by using the speak command to say "your" and "enemy".
alias enemy "speak enemy; bind kp_ins friend; bind kp_end e1; bind kp_downarrow e2; bind kp_pgdn e3; bind kp_leftarrow e4; bind kp_5 e5; bind kp_rightarrow e6; bind kp_home e7; bind kp_uparrow e8; bind kp_pgup e9"
alias friend "speak your; bind kp_ins enemy; bind kp_end f1; bind kp_downarrow f2; bind kp_pgdn f3; bind kp_leftarrow f4; bind kp_5 f5; bind kp_rightarrow f6; bind kp_home f7; bind kp_uparrow f8; bind kp_pgup f9"
//bind "kp_ins" "enemy" // enemy disguise menu toggle between enemy or friendly
// speaks "enemy" or "your" when choosing -in spy.cfg
alias e1 "disguise_enemy 1; motdfile echo.txt; motd_write Enemy SCOUT; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise e1; bind m nmesc" // Disguise as NME Scout
alias e2 "disguise_enemy 2; motdfile echo.txt; motd_write Enemy SNIPER; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise e2; bind m nmesn" // Disguise as NME Sniper
alias e3 "disguise_enemy 3; motdfile echo.txt; motd_write Enemy SOLDIER; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise e3; bind m nmesol" // Disguise as NME Soldier
alias e4 "disguise_enemy 4; motdfile echo.txt; motd_write Enemy DEMO; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise e4; bind m nmedem" // Disguise as NME Demo
alias e5 "disguise_enemy 5; motdfile echo.txt; motd_write Enemy MEDIC; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise e5; bind m nmemed" // Disguise as NME Medic
alias e6 "disguise_enemy 6; motdfile echo.txt; motd_write Enemy HWGUY; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise e6; bind m nmehw" // Disguise as NME HW guy
alias e7 "disguise_enemy 7; motdfile echo.txt; motd_write Enemy PYRO; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise e7; bind m nmepy" // Disguise as NME Pyro
alias e8 "disguise_enemy 8; motdfile echo.txt; motd_write Enemy SPY; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise e8; bind m nmespy" // Disguise as NME Spy
alias e9 "disguise_enemy 9; motdfile echo.txt; motd_write Enemy ENGINEER; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise e9; bind m nmeeng" // Disguise as NME Engineer
alias f1 "disguise_friendly 1; motdfile echo.txt; motd_write Friendly SCOUT; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise f1; bind m frsc" // Disguise as Friendly Scout
alias f2 "disguise_friendly 2; motdfile echo.txt; motd_write Friendly SNIPER; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise f2; bind m frsn" // Disguise as Friendly Sniper
alias f3 "disguise_friendly 3; motdfile echo.txt; motd_write Friendly SOLDIER; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise f3; bind m frsol" // Disguise as Friendly Soldier
alias f4 "disguise_friendly 4; motdfile echo.txt; motd_write Friendly DEMO; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise f4; bind m frdem" // Disguise as Friendly Demo
alias f5 "disguise_friendly 5; motdfile echo.txt; motd_write Friendly MEDIC; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise f5; bind m frmed" // Disguise as Friendly Medic
alias f6 "disguise_friendly 6; motdfile echo.txt; motd_write Friendly HWGUY; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise f6; bind m frhw" // Disguise as Friendly HW Guy
alias f7 "disguise_friendly 7; motdfile echo.txt; motd_write Friendly PYRO; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise f7; bind m frpy" // Disguise as Friendly Pyro
alias f8 "disguise_friendly 8; motdfile echo.txt; motd_write Friendly SPY; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise f8; bind m frspy" // Disguise as Friendly Spy
alias f9 "disguise_friendly 9; motdfile echo.txt; motd_write Friendly ENGINEER; developer 1; motd; developer 0; motdfile motd.txt; alias last_disguise f9; bind m freng" // Disguise as Friendly Engineer
enemy; e3 // automatically sets the enemy/friendly disguise toggle
// and chooses the Soldier disguise upon first spawn
// After choosing a disguise with an alias above, just press "m" to say_team your disguise
alias nmesc "say_team -spy-(%h/%a): Disguising as ENEMY SCOUT"
alias nmesn "say_team -spy-(%h/%a): Disguising as ENEMY SNIPER"
alias nmesol "say_team -spy-(%h/%a): Disguising as ENEMY SOLDIER"
alias nmedem "say_team -spy-(%h/%a): Disguising as ENEMY DEMOMAN"
alias nmemed "say_team -spy-(%h/%a): Disguising as ENEMY MEDIC"
alias nmehw "say_team -spy-(%h/%a): Disguising as ENEMY HWGUY"
alias nmepy "say_team -spy-(%h/%a): Disguising as ENEMY PYRO"
alias nmespy "say_team -spy-(%h/%a): Disguising as ENEMY SPY"
alias nmeeng "say_team -spy-(%h/%a): Disguising as ENEMY ENGINEER"
alias frsc "say_team -spy-(%h/%a): Disguising as FRIENDLY SCOUT"
alias frsn "say_team -spy-(%h/%a): Disguising as FRIENDLY SNIPER"
alias frsol "say_team -spy-(%h/%a): Disguising as FRIENDLY SOLDIER"
alias frdem "say_team -spy-(%h/%a): Disguising as FRIENDLY DEMOMAN"
alias frmed "say_team -spy-(%h/%a): Disguising as FRIENDLY MEDIC"
alias frhw "say_team -spy-(%h/%a): Disguising as FRIENDLY HWGUY"
alias frpy "say_team -spy-(%h/%a): Disguising as FRIENDLY PYRO"
alias frspy "say_team -spy-(%h/%a): Disguising as FRIENDLY SPY"
alias freng "say_team -spy-(%h/%a): Disguising as FRIENDLY ENGINEER"
Demoman
3 button Detpack selection with comm button warning - just push mouse2 as you set the pack:
//Detpack
alias +det5PACK "+det5; bind MOUSE2 FIVESECS"
alias -det5PACK "-det5; bind MOUSE2 detpipe"
alias +det20PACK "+det20; bind MOUSE2 TWENTYSECS"
alias -det20PACK "-det20; bind MOUSE2 detpipe"
alias +det50PACK "+det50; bind MOUSE2 FIFTYSECS"
alias -det50PACK "-det50; bind MOUSE2 detpipe"
// <<<<Team announements messages>>>> - edit team messages here
alias FIVESECS "say_team -Demoman-: **5sec Detpack set**"
alias TWENTYSECS "say_team -Demoman-: **20sec Detpack set**"
alias FIFTYSECS "say_team -Demoman-: **50sec Detpack set**"
bind c +det5PACK // sets a 5 second det pack
bind v +det20PACK // sets a 20 second det pack
bind b +det50PACK // sets a 50 second det pack