Nick's Class Scripts

Guides related to Team Fortress 2.

Nick's Class Scripts

Postby Nick on Thu Jun 24, 2010 10:13 am

Yesterday I started working on some class specific config files. These are special config files that get executed when you switch to a class. This is very helpful for when you have class specific scripts that don't need to be running while you play other classes, or to completely change the controls based on which class you're playing.

Now I know this won't be for everyone, and they will probably look a little weird to most of you .. but hell I'd like to share anyway in case someone can use it. If you want to use it and need help customizing it or something, lemme know ;)

medic.cfg
FEATURES:
- Left mouse switches to Medigun/Kritzkrieg and then rebinds to fire it
- Right mouse switches to Syringe Gun/Blusauger and then rebinds to fire it
- clicking the scroll wheel takes out Bonesaw/Ubersaw and then rebinds to fire it, scrolling also fires but doesn't take out the saw (can't seem to make scroll both take the weapon and use it at the same time, using breaks when I try that)
- Mouse 5 switches to Medigun/Kritzkrieg, drops Intel carried if any, rebinds to use Uber and masks the Uber callout (calls for Medic as you activate it, so the enemy won't know you did)
- Q fakes Uber (You shout out "Charge Ready!" while it actually isn't yet)
Code: Select all
// Load default binds
exec default.cfg

// Class switch announcer
say_team "Going Medic!"

// Medigun
alias +heal "slot2; +attack"
alias -heal "-attack"

// Needle Rain!
alias +needle "slot1; +attack"
alias -needle "-attack"

// Melee
alias +melee "slot3; +attack"
alias -melee "-attack"

// Uber + drop item + mask
alias +uber "slot2; dropitem; +attack2; say_team "KRITZ OR UBER USED";voicemenu 0 0"
alias -uber "-attack2"

// Fake Uber
alias fakeuber "voicemenu 1 7; say_team "KRITZ OR UBER FAKED""

// Binds
bind MOUSE5 "+uber"         // Take out Medigun + drop item + use Uber + mask Uber
bind MOUSE2 "+needle"         // Take out Syringe Gun/Blutsauger + rebind to fire it
bind MOUSE1 "+heal"         // Take out Medigun/Kritzkrieg + rebind to fire it
bind Q "fakeuber"            // Fake Uber
bind MOUSE3 "+melee"         // Take out Bonesaw/Ubersaw
bind MWHEELUP "+attack"
bind MWHEELDOWN "+attack"


soldier.cfg
FEATURES:
- Left mouse switches to Rocket Launcher, and rebinds to fire
- Right click jumps (for ez-mode rocketjumps)
- Mouse 5 switches to Shotgun/Buff Banner and rebinds to fire it
- Same melee deal as with Medic
- Q also whips out melee weapon and rebinds to fire
Code: Select all
// Load default binds
exec default.cfg

// Class switch announcer
say_team "Going Soldier!"

// Rocket Launcher
alias +rlauncher "slot1; +attack;
alias -rlauncher "-attack";

// Buff Banner/Shotgun
alias +bbsg "slot2; +attack"
alias -bbsg "-attack"

// Melee
alias +melee "slot3; +attack"
alias -melee "-attack"

// Soldier binds
bind Mouse1 "+rlauncher"
bind MOUSE2 "+jump"
bind MOUSE5 "+bbsg"
bind MWHEELUP "+attack"
bind MWHEELDOWN "+attack"
bind MOUSE3 "+melee"
bind Q "+melee"


demoman.cfg
FEATURES:
- Left ouse is primary fire
- Right mouse is secondary fire
- Mouse 5 switches between Sticky Launcher/Grenade Launcher
- same melee deal as other + Q for melee as well
Code: Select all
// Load default binds
exec default.cfg

// Class switch announcer
say_team "Going Demoman!"

// Switch weapon
alias switch "grenade"
alias grenade "slot1; alias switch sticky"
alias sticky "slot2; alias switch grenade"

// Binds
bind MWHEELUP "+attack"
bind MWHEELDOWN "+attack"
bind MOUSE3 "+melee"
bind Q "+melee"
bind MOUSE5 "switch"
bind MOUSE1 "+attack"
bind MOUSE2 "+attack2"


heavyweapons.cfg
FEATURES:
- Left mouse switches to minigun and rebinds to fire
- Right mouse is secondary fire
- Mouse 5 switches to shotgun/sandvich and rebinds to use
clicking scroll wheel takes out melee weapon; scroll up for primary fire, down for secondary
- Q takes out Sandvich and throws it on the floor
Code: Select all
// Load default binds
exec default.cfg

// Class switch announcer
say_team "Going Heavy!"

// Minigun
alias +minigun "slot1; +attack"
alias -minigun "-attack"

// Shotgun/Sandvich
alias +sgsv "slot2; +attack"
alias -sgsv "-attack"

// Melee
alias +melee "slot3; +attack"
alias -melee "-attack"

// Drop Sandvich
alias +dsv "slot2; +attack2"
alias -dsv "-attack2"

// Binds
bind MOUSE1 "+minigun"
bind MOUSE2 "+attack2"
bind MWHEELUP "+attack"
bind MWHEELDOWN "+attack2"
bind MOUSE3 "+melee"
bind MOUSE5 "+sgsv"
bind Q "+dsv"


sniper.cfg
FEATURES:
- Left mouse to use Sniper rifle and rebind to fire
- Right mouse to use Sniper rifle, and rebinds to zoom
- Mouse 5 to use SMG/Jarate and rebind to fire
- scroll melee as other
- Q also melee
Code: Select all
// Load default binds
exec default.cfg

// Class switch announcer
say_team "Going Sniper!"

// Sniper Rifle/Huntsman
alias +srbow "slot1; +attack"
alias -srbow "-attack"

// Sniper zoom
alias +zoom "slot1; +attack2"
alias -zoom "-attack2"

// SMG/Jarate
alias +smgj "slot2; +attack"
alias -smgj "-attack"

// Melee
alias +melee "slot3; +attack"
alias -melee "-attack"

// Binds
bind MWHEELUP "+attack"
bind MWHEELDOWN "+attack"
bind MOUSE3 "+melee"
bind MOUSE1 "+srbow"
bind MOUSE5 "+smgj"
bind MOUSE2 "+zoom"
bind Q "+melee"


pyro.cfg
FEATURES:
- Left mouse for flamethrower + rebind to fire
- Right mouse for flamethrower + rebinds to airblast
- Mouse 5 for Flaregun/shotgun + rebind to fire
- Scroll + Q melee again
Code: Select all
// Load default binds
exec default.cfg

// Class switch announcer
say_team "Going Pyro!"

// Flamethrower
alias +flame "slot1; +attack"
alias -flame "-attack"

// Flaregun/Shotgun
alias +flaresg "slot2; +attack"
alias -flaresg "-attack"

// Axe
alias +melee "slot3; +attack"
alias -melee "-attack"

// Airblast
alias +air "slot1; +attack2"
alias -air "-attack2"

// Binds
bind MWHEELUP "+attack"
bind MWHEELDOWN "+attack"
bind MOUSE3 "+melee"
bind MOUSE1 "+flame"
bind MOUSE2 "+air"
bind MOUSE5 "+flaresg"
bind Q "+melee"


engineer.cfg
FEATURES:
- Left mouse for wrench + rebind to fire
- Right mouse for shotgun + rebind to fire
- Mouse 5 for pistol + rebind to fire
- Scroll up for build menu
- Scroll down for demolish menu
- Q to build selected building
(use number keys to select building in both menus)
Code: Select all
// Load default binds
exec default.cfg

// Class switch announcer
say_team "Going Engineer!"

// Wrench
alias +wrench "slot3; +attack"
alias -wrench "-attack"

// Shotgun
alias +shotgun "slot1; +attack"
alias -shotgun "-attack"

// Pistol
alias +pistol "slot2; +attack"
alias -pistol "-attack"

// Binds
bind Mouse1 "+wrench"
bind MOUSE2 "+shotgun"
bind MOUSE5 "+pistol"
bind MWHEELUP "slot4"
bind MWHEELDOWN "slot5"
bind MOUSE3 "+attack2"
bind Q "+attack"


scout.cfg
FEATURES:
- Left mouse takes shotgun + rebinds to fire
- Right mouse takes bat + rebinds to fire
- Mouse 5 takes Pistol/Bonk/Crit-a-Cola + rebinds to fire
- Q spams "need a dispenser here" because every Scout needs to spam that. It's mandatory.
Code: Select all
// Load default binds
exec default.cfg

// Class switch announcer
say_team "Going Scout!"

// Shotgun
alias +sg "slot1; +attack"
alias -sg "-attack"

// Pistol/Bonk!/Crit-a-Cola
alias +pbcc "slot2; +attack"
alias -pbcc "-attack"

// Melee
alias +melee "slot3; +attack"
alias -melee "-attack"

// Binds
bind MWHEELUP "+attack"
bind MWHEELDOWN "+attack"
bind MOUSE3 "+melee"
bind MOUSE1 "+sg"
bind MOUSE2 "+melee"
bind MOUSE5 "+pbcc"
bind Q "voicemenu 1 4"


spy.cfg
FEATURES:
- Left mouse switches to knife, rebinds to fire and re disguises as last class after stabbing
- Right mouse same as knife, but with pistol
- Mouse 5 cloaks
- Q for manual last disguise
- Scroll up for Sapper + rebind to use (untested, but should work technically)
- Scroll down to disguise as semi-random class (switches between Engineer, Pyro, demoman and Sniper)
(you can still manually diguise as a class by pressing 4 and then picking a class, but this is for fast disguises)
Code: Select all
// Load default binds
exec default.cfg

// Class switch announcer
say_team "Going Spy!"

// Revolver
alias +revolver "slot1; +attack"
alias -revolver "-attack; lastdisguise"

// Knife
alias +knife "slot3; +attack"
alias -knife "-attack; lastdisguise"

// Sapper
alias +sapper "build 4; +attack"
alias -sapper "-attack"

// Semi-random disguise (cycle between Sniper, Demoman, Engineer and Pyro)
alias randomd "d1"
alias d1 "disguise 2 -1; alias randomd d2"
alias d2 "disguise 4 -1; alias randomd d3"
alias d3 "disguise 9 -1; alias randomd d4"
alias d4 "disguise 7 -1; alias randomd d1"

// Last Disguise
bind "Q" "lastdisguise"
bind MWHEELDOWN "randomd"
bind MWHEELUP "+sapper"
bind MOUSE5 "+attack2"
bind MOUSE1 "+knife"
bind MOUSE2 "+revolver"


default.cfg
(put your other binds in here)
Code: Select all
// Clear all keys
unbindall

// Movement
bind w "+forward"
bind s "+back"
bind a "+moveleft"
bind d "+moveright"
bind SPACE "+jump"
bind SHIFT "+duck"

// Communication
bind y "say"
bind u "say_team"
bind v "+voicerecord"
bind e "voicemenu 0 0"
bind z "voice_menu_1"
bind x "voice_menu_2"
bind c "voice_menu_3"

// Misc
bind r "+reload"
bind f "taunt"
bind g "inspect"
bind t "dropitem"
bind ` "toggleconsole"
bind - "disguiseteam"
bind m "open_charinfo_direct"
bind b "+quickswitch"
bind TAB "+showscores"
bind ESCAPE "cancelselect"
bind F5 "screenshot"

// Class & Team switching binds
bind , "changeteam"

bind KP_END "join_class scout"
bind KP_DOWNARROW "join_class soldier"
bind KP_PGDN "join_class pyro"
bind KP_LEFTARROW "join_class demoman"
bind KP_5 "join_class heavyweapons"
bind KP_RIGHTARROW "join_class engineer"
bind KP_HOME "join_class medic"
bind KP_UPARROW "join_class sniper"
bind KP_PGUP "join_class spy"

// Source Automatic Demo Recorder
bind f12 "exec sander.cfg"
User avatar
Nick
Leader
 
Posts: 6604
Joined: 13 May 2008
Location: Belgium
Title: Heretic
 

Re: Nick's Class Scripts

Postby [TC]Morty on Thu Jun 24, 2010 4:13 pm

These look pretty good. I briefly tried to mess with scripts, but only got a couple to work, mostly keybound team chats.
I like the Medic voice chat ones for hiding the charge ready callout.
The scout spam is a good one too.
"You are like the cyclops of Greek myth, except that you are Scottish, AND I HATE YOU!" -Soldier, on dominating Demomen

Likes to play as: Soldier, Pyro, Engy, Heavy, sometimes Medic
User avatar
[TC]Morty
Donator
 
Posts: 12
Joined: 17 May 2010
 

Re: Nick's Class Scripts

Postby Dewwy on Thu Jun 24, 2010 6:54 pm

These look really nice.

Unfortunately i broke my last mouse and am using a temporary one meaning i haven't got a 5th mouse button rendering these useless to me. :(
Life is a Haiku
It is short, it is pointless
It's made in japan
User avatar
Dewwy
 
Posts: 57
Joined: 03 August 2009
Location: Dustbowl
 

Re: Nick's Class Scripts

Postby Louis on Thu Jun 24, 2010 7:16 pm

great use of time
User avatar
Louis
Donator
 
Posts: 4347
Joined: 27 March 2008
Location: York
Title: not a troll
 

Re: Nick's Class Scripts

Postby Something Random :) on Thu Jun 24, 2010 7:53 pm

Dewwy wrote:Unfortunately i broke my last mouse and am using a temporary one meaning i haven't got a 5th mouse button rendering these useless to me. :(


I haven't had mouse 5/6 for years. Mouse3 is sufficient :)


And I've never really though about scripts for tf2, but these look fairly nice. I only ever used scripts for NS.
Something Random :)
Donator
 
Posts: 336
Joined: 17 May 2010
 

Re: Nick's Class Scripts

Postby Louis on Thu Jun 24, 2010 8:23 pm

i have a normal mouse that isnt for nerds with 8 buttons........
User avatar
Louis
Donator
 
Posts: 4347
Joined: 27 March 2008
Location: York
Title: not a troll
 

Re: Nick's Class Scripts

Postby Nick on Thu Jun 24, 2010 11:29 pm

Glad you guys like it. The scripts posted above are pretty much complete overhauls of how every class plays. after posting them here I figured it might be a good idea to start all over from scratch and make just utility scripts that don't change the dynamics of a class as much. Does anyone want these?
User avatar
Nick
Leader
 
Posts: 6604
Joined: 13 May 2008
Location: Belgium
Title: Heretic
 

Re: Nick's Class Scripts

Postby Bonkers on Wed Aug 11, 2010 5:42 pm

could u make one so that i can use it to spam the cheers sound ingame? i can't find a guide anywhere
IS GOOD DAY TO BE GIANT MAN!!!!! AND EAT COOKIES BWAHAHAHAHAHAHA =P
User avatar
Bonkers
 
Posts: 198
Joined: 28 May 2009
 

Re: Nick's Class Scripts

Postby Dracion on Wed Aug 11, 2010 6:24 pm

The voice commands limited so you can't spam them very often. I have The "Thanks!" "Go! Go! Go!" Menu bound to F and I am constantly spamming stuff from there so I'd know :p
Massive annoying self made signature goes here.
User avatar
Dracion
Donator
 
Posts: 3037
Joined: 23 November 2008
Location: Right behind you
 

Re: Nick's Class Scripts

Postby Bonkers on Wed Aug 11, 2010 6:29 pm

i wanna know how to spam them because when i do this Bind q "Voicemenu 2 3" it doesnt do anything
IS GOOD DAY TO BE GIANT MAN!!!!! AND EAT COOKIES BWAHAHAHAHAHAHA =P
User avatar
Bonkers
 
Posts: 198
Joined: 28 May 2009
 

Re: Nick's Class Scripts

Postby Nick on Wed Aug 11, 2010 6:51 pm

I assume you want "sentry ahead" which is "voicemenu 1 2"

Here's a reference list:
Code: Select all
"voicemenu 0 0"   Medic!
"voicemenu 0 1"   Thanks!
"voicemenu 0 2"   Go go go!
"voicemenu 0 3"   Move up!
"voicemenu 0 4"   Flank left!
"voicemenu 0 5"   Flank right!
"voicemenu 0 6"   Yes!
"voicemenu 0 7"   No!

"voicemenu 1 0"   Incoming!
"voicemenu 1 1"   Spy!
"voicemenu 1 2"   Sentry ahead!
"voicemenu 1 3"   Need a Teleporter here!
"voicemenu 1 4"   Need a Dispenser here!
"voicemenu 1 5"   Need a Sentry here!
"voicemenu 1 6"   Activate UberCharge!
"voicemenu 1 7"  (MEDIC) UberCharge Ready!

"voicemenu 2 0"   Help!
"voicemenu 2 1"   Battle Cry
"voicemenu 2 2"   Cheers
"voicemenu 2 3"   Jeers
"voicemenu 2 4"   Positive
"voicemenu 2 5"   Negative
"voicemenu 2 6"   Nice shot!
"voicemenu 2 7"   Good job!
User avatar
Nick
Leader
 
Posts: 6604
Joined: 13 May 2008
Location: Belgium
Title: Heretic
 


Return to TF2



Who is online

Users browsing this forum: No registered users and 2 guests