ShazamsCurrentScripts

From TF2 Wiki

Jump to: navigation, search

Contents

Shazam's! Current Autoexec

As promised earlier, I will now include this script, which is pretty much exclusively a 'class selection' script with the following features:

  • Pressing 1-9 on the keypad twice will kill you and change you to the class the corresponds to that key
  *This is the same as the selection screen.
  • Pressing 0 on the keypad will reload the current class script.
  • Pressing delete on the keypad will reload the current class script and kill you.

I'm not entirely sure how much credit belongs to me for making this. I think I started with somebody else's script and then went to work on it to make it what I want, but alot of what I had to do was mostly (numerous) bug fixes and rebinds. Well, here it is.

exec clear.cfg
bind "end" "exec autoexec.cfg"
// Class Selection
// ==========



Alias "scoutexec"                   "exec scout.cfg"
alias "+class_sco"		"set_class_sco"
alias "-class_sco"		"unset_class_sco"
alias "set_class_sco"		"alias -class_sco unset_class_sco; wait 25; alias -class_sco halt_set_class_sco"
alias "unset_class_sco"		"alias +class_sco class_sco2; wait 25; alias +class_sco set_class_sco"
alias "halt_set_class_sco"	"alias -class_sco unset_class_sco"
alias "class_sco2" 		"join_class scout; exec scout.cfg; alias classexec scoutexec"

Alias "soldierexec"                   "exec soldier.cfg"
alias "+class_sol"		"set_class_sol"
alias "-class_sol"		"unset_class_sol"
alias "set_class_sol"		"alias -class_sol unset_class_sol; wait 25; alias -class_sol halt_set_class_sol"
alias "unset_class_sol"		"alias +class_sol class_sol2; wait 25; alias +class_sol set_class_sol"
alias "halt_set_class_sol"	"alias -class_sol unset_class_sol"
alias "class_sol2" 		"join_class soldier; exec soldier.cfg; alias classexec soldierexec"

Alias "pyroexec"                   "exec pyro.cfg"
alias "+class_pyr"		"set_class_pyr"
alias "-class_pyr"		"unset_class_pyr"
alias "set_class_pyr"		"alias -class_pyr unset_class_pyr; wait 25; alias -class_pyr halt_set_class_pyr"
alias "unset_class_pyr"		"alias +class_pyr class_pyr2; wait 25; alias +class_pyr set_class_pyr"
alias "halt_set_class_pyr"	"alias -class_pyr unset_class_pyr"
alias "class_pyr2" 		"join_class pyro; exec pyro.cfg; alias classexec pyroexec"

Alias "demoexec"                   "exec demoman.cfg"
alias "+class_dem"		"set_class_dem"
alias "-class_dem"		"unset_class_dem"
alias "set_class_dem"		"alias -class_dem unset_class_dem; wait 25; alias -class_dem halt_set_class_dem"
alias "unset_class_dem"		"alias +class_dem class_dem2; wait 25; alias +class_dem set_class_dem"
alias "halt_set_class_dem"	"alias -class_dem unset_class_dem"
alias "class_dem2" 		"join_class demoman; exec demoman.cfg; alias classexec demoexec"

Alias "heavyexec"                   "exec heavyweapons.cfg"
alias "+class_hwg"		"set_class_hwg"
alias "-class_hwg"		"unset_class_hwg"
alias "set_class_hwg"		"alias -class_hwg unset_class_hwg; wait 25; alias -class_hwg halt_set_class_hwg"
alias "unset_class_hwg"		"alias +class_hwg class_hwg2; wait 25; alias +class_hwg set_class_hwg"
alias "halt_set_class_hwg"	"alias -class_hwg unset_class_hwg"
alias "class_hwg2" 		"join_class heavyweapons; exec heavyweapons.cfg; alias classexec heavyexec"

Alias "engiexec"                   "exec engineer.cfg"
alias "+class_eng"		"set_class_eng"
alias "-class_eng"		"unset_class_eng"
alias "set_class_eng"		"alias -class_eng unset_class_eng; wait 25; alias -class_eng halt_set_class_eng"
alias "unset_class_eng"		"alias +class_eng class_eng2; wait 25; alias +class_eng set_class_eng"
alias "halt_set_class_eng"	"alias -class_eng unset_class_eng"
alias "class_eng2" 		"join_class engineer; exec engineer.cfg; alias classexec engiexec"

Alias "medicexec"                   "exec medic.cfg"
alias "+class_med"		"set_class_med"
alias "-class_med"		"unset_class_med"
alias "set_class_med"		"alias -class_med unset_class_med; wait 25; alias -class_med halt_set_class_med"
alias "unset_class_med"		"alias +class_med class_med2; wait 25; alias +class_med set_class_med"
alias "halt_set_class_med"	"alias -class_med unset_class_med"
alias "class_med2" 		"join_class medic; exec medic.cfg; alias classexec medicexec"

Alias "sniperexec"                   "exec sniper.cfg"
alias "+class_sni"		"set_class_sni"
alias "-class_sni"		"unset_class_sni"
alias "set_class_sni"		"alias -class_sni unset_class_sni; wait 25; alias -class_sni halt_set_class_sni"
alias "unset_class_sni"		"alias +class_sni class_sni2; wait 25; alias +class_sni set_class_sni"
alias "halt_set_class_sni"	"alias -class_sni unset_class_sni"
alias "class_sni2" 		"join_class sniper; exec sniper.cfg; alias classexec sniperexec"

Alias "spyexec"                   "exec spy.cfg"
alias "+class_spy"		"set_class_spy"
alias "-class_spy"		"unset_class_spy"
alias "set_class_spy"		"alias -class_spy unset_class_spy; wait 25; alias -class_spy halt_set_class_spy"
alias "unset_class_spy"		"alias +class_spy class_spy2; wait 25; alias +class_spy set class_spy"
alias "halt_set_class_spy"	"alias -class_spy unset_class_spy"
alias "class_spy2" 		"join_class spy; exec spy.cfg; alias classexec spyexec"

// Class Selection Binds
// ===============================
bind "KP_END"	"+class_sco"		// Press 1 twice quickly to select Scout
bind "KP_DOWNARROW"	"+class_sol"		// Press 2 twice quickly to select Soldier
bind "KP_PGDN"	"+class_pyr"		// Press 3 twice quickly to select Pyro
bind "KP_LEFTARROW"	"+class_dem"		// Press 4 twice quickly to select Demoman
bind "KP_5"	"+class_hwg"		// Press 5 twice quickly to select Heavy
bind "KP_RIGHTARROW"	"+class_eng"		// Press 6 twice quickly to select Engineer
bind "KP_HOME"	"+class_med"		// Press 7 twice quickly to select Medic
bind "KP_UPARROW"	"+class_sni"		// Press 8 twice quickly to select Sniper
bind "KP_PGUP"	"+class_spy"		// Press 9 twice quickly to select Spy
bind "KP_INS"	"classexec"		// Press to execute the current class configuration file
bind "KP_DEL"	"kill; classexec"	// Press to instantly kill yourself and execute the current class cfg file

Shazam's! Current Scout Script

Before you use this script, I recommend you create a clear.cfg file in your script folder. Putting the line "exec clear.cfg" at the beginning of your scripts once you have done this helps prevent multiple commands binding to one key, and thus helps prevent errors. Here is my clear.cfg script, which will work great with all of my scripts.

// clear.cfg
// resets the binds my scripts use to default in between class changes
// Put the line clear.cfg in the beginning of a script to execute as a subscript

-attack-reload
-attack2-rs

unbind "MOUSE1"unbind "MOUSE2"unbind "MOUSE3"
unbind "MOUSE4" unbind "MOUSE5" unbind "q" 
unbind "1"unbind "2" unbind "3" 
unbind "4" unbind "5" unbind "6" 
unbind "7"unbind "8" unbind "9"
unbind "w"unbind "a"unbind "s"
unbind "d"unbind "ctrl"

bind "MOUSE1" "+attack"bind "MOUSE2" "+attack2"
bind "q" "lastinv"bind "1" "Slot1"
bind "2" "Slot2"bind "3" "slot3"
bind "4" "Slot4"bind "5" "slot5"
bind "6" "slot6"bind "7" "slot7"
bind "8" "slot8"bind "9" "slot9"
bind "w" "+forward"bind "a" "+moveleft"
bind "s" "+back"Bind "d" "+moveright"
bind "ctrl" "+duck"

Current Iteration: Version 2.0 --Shazam! 07:10, 5 May 2010 (UTC)

Features:

  • Streamlined weapon selection system
 *Mousewheel up selects primary, Mwheeldown selects secondary, Right click selects and fires melee.
 *Pressing Mouse 1 when melee is out will switch you to primary again, for quick close combat switching.
  • Firemode selection (for FaN and Scattergun). Default is FaN.
 *Scattergun firemode has autoreload enabled.  FaN has it disabled.  Pistol is unaffected by these firemodes and will have it on by default, so don't worry about that.
 *Mouse 3 is the default firemode switching button.
  • Number keys are assigned common voice commands, since the weapon switching is done with the mouse.
//Reduces errors
developer 1; echo Scout Script Loaded.; Wait 200;developer 0;
exec clear.cfg
unbind 1
unbind 2
unbind 3
unbind 4
unbind 5
unbind q
//Firemodes for Primary
alias +primary1 "cl_autoreload 1slot1;+attack"
alias -primary1 "-attack"

alias +primary2 "-reload;cl_autoreload 0;slot1;+attack"
alias -primary2 "-attack;"
bind mouse1 +primary2
bind mouse5 +attack2
//Firemode for Secondary
alias +secondary "cl_autoreload 1;slot2;+attack"
alias -secondary "-attack;"
alias none ""
//'Fire'mode for Melee
alias +melee "slot3;+attack"
alias -melee "-attack;primaryfiremode;Developer 0"
Bind mouse2 +melee
//Scroll Wheel binds
alias "FANtoggle" "slot1; bind mouse1 +primary2"
alias "standardtoggle" "slot1; bind mouse1 +primary1"
alias "weapontoggle" "slot2; bind mouse1 +secondary;"
bind mwheelup FANtoggle
bind mwheeldown weapontoggle

//Toggles firemodes
alias "PrimaryFiremode"
alias "Unlock" "-reload; bind mouse1 +primary2; bind mwheelup FANtoggle; bind mouse3 standard;developer 1; echo Force-A-Nature Firemode engaged.; Wait 200;developer 0; alias primaryfiremode unlock"
alias "Standard" "bind mouse1 +primary1; bind mwheelup standardtoggle; bind mouse3 unlock;developer 1; echo Scattergun Firemode engaged.; Wait 200;developer 0; alias primaryfiremode standard"
bind mouse3 standard
unlock

//voicemenu shortcuts
//voicemenu shortcuts
alias "help" "voicemenu 2 0"
alias "sentryahead" "voicemenu 1 2"
alias "incoming" "voicemenu 1 0"
alias "uberme" "voicemenu 1 6"
alias "thanks" "voicemenu 0 1"
alias "go" "voicemenu 0 2"
//binds
bind 1 help
bind 2 sentryahead
bind 3 incoming
bind 4 go
bind 5 uberme
bind 6 thanks

Shazam's! Current Soldier Script

Current Iteration: Version 2.0 --Shazam! 07:10, 5 May 2010 (UTC)

Features:

  • Streamlined weapon selection system
 *Mousewheel up selects primary, Mwheeldown selects melee, Right click selects and fires secondary.
 *Pressing Mouse 1 when secondary is out will switch you to either the melee or the primary depending on what you had out last.
  • "Quick melee" function.
 *Upon pressing the quickmelee key, you will pull out your melee for as long as you are holding it.  Releasing this key will take you to last weapon.
 *Mouse 5 is the default quick melee button.
  • Number keys are assigned common voice commands, since the weapon switching is done with the mouse.


//Reduces errors
developer 1; echo Soldier Script Loaded.; Wait 200;developer 0
exec clear.cfg
unbind 1
unbind 2
unbind 3
unbind 4
unbind 5
unbind q
//autoreload and special
Cl_autoreload 1
bind mouse4 +attack2
//Melee 'firemode'
alias +melee "slot3;+attack"
alias -melee "-attack"
alias none ""
//Secondary firemode
alias +secondary "slot2;+attack"
alias -secondary "-attack"
alias none ""
bind mouse2 +secondary
//Primary firemode
alias +primary "slot1; +attack"
alias -primary "-attack"
alias none ""
bind mouse1 +primary
//Scroll wheel binds
alias "meleetoggle" "slot3; bind mouse1 +melee;"
alias "weapontoggle" "slot1; bind mouse1 +primary;"
bind mwheelup weapontoggle
bind mwheeldown meleetoggle
//Quickmelee function
alias "+QuickMelee" "slot3; wait; bind mouse1 +attack;bind mouse2 +attack"
alias "-QuickMelee" "lastinv; bind mouse1 +primary; bind mouse2 +secondary"
bind "mouse5" "+quickmelee"
//voicemenu shortcuts
alias "help" "voicemenu 2 0"
alias "sentryahead" "voicemenu 1 2"
alias "incoming" "voicemenu 1 0"
alias "uberme" "voicemenu 1 6"
alias "thanks" "voicemenu 0 1"
alias "go" "voicemenu 0 2"
//binds
bind 1 help
bind 2 sentryahead
bind 3 incoming
bind 4 go
bind 5 uberme
bind 6 thanks

Shazam's! Current Pyro Script

Current Iteration: Version 2.0 --Shazam! 07:10, 5 May 2010 (UTC)

Features:

  • Streamlined weapon selection system
 *Mousewheel up selects primary, Mwheeldown selects secondary, Right click selects and fires melee.
 *Pressing Mouse 1 when melee is out will switch you to primary for close combat switching.
 *This intuitive design offers a significant advantage with axetinguishing among other things.
  • Airblast is bound to mouse5 by default.
  • "Quickflame" function integrated into weapon switch when switching to melee. Will fire current weapon just long enough to give a little puff of flame or launch a flare into an enemy before you chop them up.
  • Number keys are assigned common voice commands, since the weapon switching is done with the mouse.
//Reduces errors
developer 1; echo Pyro Script Loaded.; Wait 200;developer 0
exec clear.cfg
Unbind "1"
Unbind "2"
Unbind "3"
Unbind "q"
//Primary firemode and bind
alias +primary "slot1;+attack"
alias -primary "-attack"
alias none ""
bind mouse1 +primary
//Secondary firemode and bind
alias +secondary "slot2;+attack"
alias -secondary "-attack;+reload"
alias none ""
//Melee 'firemode' and bind. Quickattack on switch is intergrated in the beginning, before -attack2
alias +melee "+attack; wait 5; -attack; -attack2;slot3;+attack"
alias -melee "-attack: bind mouse1 +primary"
alias none ""
bind mouse2 +melee
//Scroll wheel binds
alias "meleetoggle" "slot1; bind mouse1 +primary;"
alias "weapontoggle" "slot2; bind mouse1 +secondary;"
bind mwheelup meleetoggle
bind mwheeldown weapontoggle
//Airblast Bind
bind mouse5 +attack2
//voice commands
alias "help" "voicemenu 2 0"
alias "sentryahead" "voicemenu 1 2"
alias "incoming" "voicemenu 1 0"
alias "uberme" "voicemenu 1 6"
alias "thanks" "voicemenu 0 1"
alias "go" "voicemenu 0 2"
//binds
bind 1 help
bind 2 sentryahead
bind 3 incoming
bind 5 uberme
bind 6 thanks
bind 4 go

Shazam's! Current Engineer Script

Current Iteration: Version 2.0 --Shazam! 07:10, 5 May 2010 (UTC)

Features:

  • Streamlined weapon selection system
 *Mousewheel up selects primary, Mwheeldown selects secondary, Right click selects and fires melee.
 *Pressing Mouse 1 when melee is out will switch you to primary for close combat switching purposes.
  • Mouse 5 is default secondary fire button (for rotating blueprints).
  • Number keys are to build keys and destroy keys, circumventing the pda and thus making the process faster, since the weapon switching is done with the mouse.
 *1-4 will build the sentry, dispenser, and tele entrances/exits respectively.
 *When one of these is already built, the key will instead destroy the building in question, so pay attention.
 *Holding Mouse 4 (default) will circumvent the destroy command for cases in which the maximum building amount is more than 1 each.
  • When a blueprint is out, you can initiate the build sequence by pressing the key assigned to melee (right mouse by default)
//Reduces Errors
developer 1; echo Engineer Script Loaded.; Wait 200;developer 0
exec clear.cfg
unbind 1
unbind 2
unbind 3
unbind 4
unbind 5
unbind q
//Primary firemode and bind. Autoreload Tacked on to the end of -Primary.
alias +primary "bind mouse2 +melee;-reload;-attack;slot1;+attack"
alias -primary "-attack"

bind mouse1 +primary
//Secondary firemode. Integrates autofire.
alias +secondary "bind mouse2 +melee;-reload;slot2;+attack"
alias -secondary "-attack"

//Melee 'firemode'1.
alias +melee "-attack;slot3;+attack;bind mouse1 +primary"
alias -melee "-attack"

Bind mouse2 +melee
//Melee 'firemode'2. Integrates build key before switching to Melee
alias +melee2 "-attack;+attack; wait 5; -attack;slot3;+attack;bind mouse1 +primary"
alias -melee2 "-attack;bind mouse2 +melee"

//Scroll Wheel binds
alias "meleetoggle" "slot1; bind mouse1 +primary;"
alias "weapontoggle" "slot2; bind mouse1 +secondary;"
bind mwheelup meleetoggle
bind mwheeldown weapontoggle
//Rotate buildings bind
bind mouse5 +attack2
//Simplified build/destroy interface
alias sentry "destroy 3; build 3;bind mouse2 +melee2;developer 1; echo Destroying old sentry, initiating build mode.; Wait 200;developer 0"
alias dispenser "destroy 0; build 0;bind mouse2 +melee2;developer 1; echo Destroying old dispenser, initiating build mode.; Wait 200;developer 0"
alias entrance "destroy 1; build 1;bind mouse2 +melee2;developer 1; echo Destroying old entrance, initiating build mode; Wait 200;developer 0"
alias exit "destroy 2; build 2;bind mouse2 +melee2;developer 1; echo Destroying old exit, initiating build mode.; Wait 200;developer 0"


//Build commands for multiple buildables servers
alias extrasentry "build 3;bind mouse2 +melee2"
alias extradispenser "build 0;bind mouse2 +melee2"
alias extraentrance "build 1;bind mouse2 +melee2"
alias extraexit "build 2;bind mouse2 +melee2"

//Binds for it.
Alias destsent "bind 1 sentry"
Alias destdisp "bind 2 dispenser"
Alias destent "bind 3 entrance"
Alias destexit "bind 4 exit"
//Shift mode for extras
Alias shiftsent "bind 1 extrasentry"
Alias shiftdisp "bind 2 extradispenser"
Alias shiftent "bind 3 extraentrance"
Alias shiftexit "bind 4 extraexit"

 Alias +destructoff "shiftsent; shiftdisp; shiftent; shiftexit; developer 1; echo Destruction temporarily disabled: choose your extra building.; Wait 200;developer 0"
Alias -destructoff "destsent; destdisp; destent; destexit; developer 1; echo Destruction component reactivated.  Using the build keys will automatically destroy the selected building for fast relocation purposes.; Wait 200;developer 0"

Bind mouse4 +destructoff
-destructoff

Shazam's! Current Heavy Weapons Guy Script

Current Iteration: Version 2.0 --Shazam! 07:10, 5 May 2010 (UTC)

Features:

  • Streamlined weapon selection system
 *Mousewheel up selects primary, Mwheeldown selects secondary, Right click selects and fires melee.
 *Pressing Mouse 1 when melee is out will switch you to primary for close combat switching purposes.
 *Note that if you have spun up your minigun it is best to wait until you have spun down to switch weapons, or you will only keep spinning up
  *Some measures have been taken to prevent this, but when you use secondary fire to spin up, they will not work.
  • Mouse 5 is default secondary fire button (for spinning up).
  • Number keys are assigned to common voice commands, as the weapon switching is done with the mouse now.
  • "Quickvich" function.
 *Enables you to eat a sandvich with 1 key, switching you to chaingun in the middle of the eating animation for increased combat readiness should some enemy attempt to ambush you after hearing your 'noms'. 
//reduces errors
developer 1; echo Heavy Weapons Script Loaded.; Wait 200;developer 0
exec clear.cfg
Unbind "1"
Unbind "2"
Unbind "3"
Unbind "q"

//Primary firemode and bind
alias +primary "bind mouse2 slot3; bind mouse3 slot2; slot1; +attack"
alias -primary "-attack; spinguard"
bind mouse1 +primary

//Secondary firemode and bind
alias +secondary "slot2;+attack"
alias -secondary "-attack"

//Melee 'fire'mode and bind
alias +melee "bind mouse1 priswitch; slot3; +attack"
alias -melee "-attack"

bind mouse2 +melee
//scrollwheel binds
alias "primarytoggle" "slot1; bind mouse1 +primary"
alias "secondarytoggle" "slot2; bind mouse1 +secondary"
bind mwheelup primarytoggle
bind mwheeldown secondarytoggle
//Spin-up bind
bind mouse5 +attack2
//Quickvich function!
alias "QuickVich" "bind mouse1 priswitch; slot2; wait 85; +attack; wait 5; -attack; slot1"
bind "mouse3" "QuickVich"

//Safeguard against getting trapped in spin mode when switching weapons
Alias "spinguard" "bind mouse3 slot2; bind mouse2 slot3; wait 250; bind mouse2 +melee; bind mouse3 quickvich"
Alias "priswitch" "slot1; bind mouse1 slot1; wait 80; bind mouse1 +primary"

//voice commands
//voicemenu shortcuts
alias "help" "voicemenu 2 0"
alias "sentryahead" "voicemenu 1 2"
alias "incoming" "voicemenu 1 0"
alias "uberme" "voicemenu 1 6"
alias "thanks" "voicemenu 0 1"
alias "go" "voicemenu 0 2"
//binds
bind 1 help
bind 2 sentryahead
bind 3 incoming
bind 4 go
bind 5 uberme
bind 6 thanks

Shazam's! Current Demoman Script

Current Iteration: Version 2.0 --Shazam! 07:10, 5 May 2010 (UTC)

Features:

  • Streamlined weapon selection system
 *Mousewheel up selects primary, Mwheeldown selects melee, Right click selects and fires secondary.
 *Pressing Mouse 1 when secondary is out will switch you to either the melee or the primary depending on what you had out last.
  • Weapon "Firemode" function.
 *This function will switch the sticky launcher between 2 modes of fire: Rapid stickies, and regular mode.
 *Rapid sticky mode will launch stickies rapidly at the shortest range, and regular mode will revert the fuction to normal.
 *Switching key is 3 by default.  Upon switching the game will announce it in the upper corner, much like with scout and engi.
  • "Rapid detonation" function.
 *Holding down the secondary fire key (5 by default) will rapidly detonate stickies.  This is useful in conjunction with the rapid fire function, or when detonating many stickies at closer ranges with the Scottish Resistance.
 *This will crash your game on servers with the wait command disabled instead of just not working, unfortunately.  
    *Best solution is just not to play on those servers, though I may consider adding another function to make this toggleable if demand is high enough.
  • Number keys are assigned common voice commands, since the weapon switching is done with the mouse.
//Reduces errors
developer 1; echo Demoman Script Loaded.; Wait 200;developer 0
exec clear.cfg
unbind 1
unbind 2
unbind 3
unbind 4
unbind 5
unbind q
Cl_autoreload 1
//Melee 'fire'mode
alias +melee "slot3;+attack"
alias -melee "-attack"

bind mouse2 +melee
//Secondary firemode and bind
alias +secondary "-rs;slot2;+attack"
alias -secondary "-attack;"

//Rapidfire mode for secondary
alias +rapidsec "slot2;+rs"
alias -rapidsec "-rs;"

//Primary firemode and bind
alias +primary "slot1; +attack"
alias -primary "-attack"

bind mouse1 +primary
//Scroll Wheel binds
alias "sectoggle" "slot2; bind mouse1 +secondary"
alias "Primarytoggle" "slot1; bind mouse1 +primary"
alias "rapidsectoggle" "slot2; bind mouse1 +rapidsec"
bind mwheelup primarytoggle
bind mwheeldown sectoggle

//Toggles firemodes
alias "Rapid" "-reload; rapidsectoggle; bind mwheeldown rapidsectoggle; bind mouse3 Normal;developer 1; echo Rapid deployment mode engaged.; Wait 200;developer 0"
alias "Normal" "-reload; sectoggle; bind mwheeldown sectoggle; bind mouse3 Rapid;developer 1; echo Regular Sticky deployment engaged.; Wait 200;developer 0"
bind mouse3 Normal
Normal
Slot1
//Detonate bind
bind mouse5 +rapidet
//Rapid sticky deployment portion
alias "+rs" "alias reps +rsse;+rsse"
alias "+rsse" "+attack;wait 4;-rsse"
alias "-rsse" "-attack;wait 4;reps"
alias "reps" "+rsse"
alias "-rs" "alias reps none"

//Rapid stick detonation beta
alias "+rs2" "alias reps2 +rsse2;+rsse2"
alias "+rsse2" "+attack2;wait 4;-rsse2"
alias "-rsse2" "-attack2;wait 4;reps2"
alias "reps2" "+rsse"
alias "-rs2" "alias reps2 none"
Alias "+rapidet" "-reload;+rs2"
Alias "-rapidet" "-rs2"

//voicemenu shortcuts
alias "help" "voicemenu 2 0"
alias "sentryahead" "voicemenu 1 2"
alias "incoming" "voicemenu 1 0"
alias "uberme" "voicemenu 1 6"
alias "thanks" "voicemenu 0 1"
alias "go" "voicemenu 0 2"
//binds
bind 1 help
bind 2 sentryahead
bind 3 incoming
bind 5 uberme
bind 6 thanks
bind 4 go

//voicemenu shortcuts
alias "help" "voicemenu 2 0"
alias "sentryahead" "voicemenu 1 2"
alias "incoming" "voicemenu 1 0"
alias "uberme" "voicemenu 1 6"
alias "thanks" "voicemenu 0 1"
alias "go" "voicemenu 0 2"
//binds
bind 1 help
bind 2 sentryahead
bind 3 incoming
bind 5 uberme
bind 6 thanks
bind 4 go

Shazam's! Current Medic Script

Current Iteration: Version 2.0 --Shazam! 07:10, 5 May 2010 (UTC)

Features:

    • Streamlined weapon selection system
 *Mousewheel up selects primary, Mwheeldown selects melee, Right click selects and fires secondary.
 *Pressing Mouse 1 when secondary is out will switch you to primary again, for quick close combat switching.
  • "Quick melee" function.
 *Upon pressing the quickmelee key, you will pull out your melee for as long as you are holding it.  Releasing this key will take you to last weapon.
 *Mouse 5 is the default quick melee button.
  • "Quick Uber" (w/ announcement) function.
 *The quick uber function will quickly switch to your medigun and deploy an uberchage, if this is possible.
 *If your gauge is not at 100, do not do it, as it will announce in teamchat "*Deploying uber!*".
 *I consider this function still in beta, as it sometimes messes with the script.  If that happens, reloading it works well.  
 *I will include my autoexec later on for the purpose of making reloading scripts easier.
 *Mouse 3 is the default Quick Uber button.
  • Number keys are assigned common voice commands, since the weapon switching is done with the mouse.
//Reduces errors
developer 1; echo Medic Script Loaded.; Wait 200;developer 0
exec clear.cfg
unbind 1
unbind 2
unbind 3
unbind 4
unbind 5
unbind q
cl_autoreload 1
//Primary firemode and bind
alias +primary "slot1;+attack;bind mouse3 quickuber"
alias -primary "-attack;"
bind mouse1 +primary
//Secondary firemode and bind
alias +secondary "slot2;+attack;bind mouse3 uberwarn;bind mouse1 +primary"
alias -secondary "-attack;"
bind mouse2 +secondary
//Melee 'fire'mode
alias +melee "slot3;+attack;bind mouse3 quickuber"
alias -melee "-attack"
//Scroll wheel binds
alias "meleetoggle" "+melee; wait; -melee; bind mouse1 +melee"
alias "weapontoggle" "+primary; wait; -primary; bind mouse1 +primary"
bind mwheelup weapontoggle
bind mwheeldown meleetoggle
//Melee on hold function
alias "+QuickMelee" "slot3; wait; bind mouse1 +attack;bind mouse2 +attack"
alias "-QuickMelee" "lastinv; bind mouse1 +primary; bind mouse2 +secondary"
bind "mouse5" "+quickmelee"
//Quickuber function
Alias "quickuber" "slot2;wait 90;+attack2;wait 5; -attack2;say_team **Deploying Uber!**"
bind mouse3 quickuber
Alias "Uberwarn" "+attack2;say_team **Deploying Uber!**"
//voicemenu shortcuts
alias "help" "voicemenu 2 0"
alias "sentryahead" "voicemenu 1 2"
alias "incoming" "voicemenu 1 0"
alias "uberme" "voicemenu 1 6"
alias "thanks" "voicemenu 0 1"
alias "go" "voicemenu 0 2"
//binds
bind 1 help
bind 2 sentryahead
bind 3 incoming
bind 4 go
bind 5 uberme
bind 6 thanks

Shazam's! Current Sniper Script

Current Iteration: Version 2.0 --Shazam! 07:10, 5 May 2010 (UTC)

Features:

  • Streamlined weapon selection system
 *Mousewheel up selects primary, Mwheeldown selects secondary, Right click selects and fires melee.
 *Pressing Mouse 1 when melee is out will switch you to either primary or secondary, depending on what was out last.
  • "Zoom on hold" function"
 *Holding Mouse 5 (default) will zoom you in, releasing will zoom you out.
  • Custom sensitivities. Change them at your leisure.
  • Number keys are assigned common voice commands, since the weapon switching is done with the mouse.
//Reduces Errors
developer 1; echo Sniper Script Loaded.; Wait 200;developer 0
exec clear.cfg
Unbind "1"
Unbind "2"
Unbind "3"
Unbind "q"
//Primary firemode and bind
alias +primary "sensitivity 9.55;slot1;+attack"
alias -primary "-attack"
alias none ""
bind mouse1 +primary
//Secondary firemode
alias +secondary "sensitivity 9.55;-attack2;slot2;+attack"
alias -secondary "-attack"
alias none ""
//Melee 'fire'mode
alias +melee "sensitivity 9.55;-attack2;slot3;+attack"
alias -melee "-attack"
alias none ""
bind mouse2 +melee
//Scroll wheel binds
alias "snipertoggle" "slot1; bind mouse1 +primary;"
alias "smgtoggle" "slot2; bind mouse1 +secondary;"
bind mwheelup snipertoggle
bind mwheeldown smgtoggle
//Switch to sniper/Zoom on hold Function
Alias "+scope" "snipertoggle; +attack2; wait 5; -attack2"
alias "-scope" "+attack2; wait 5; -attack2"
bind "MOUSE5" "+scope"
//Zoom sensitivity ratio.  Adjust how you like.
zoom_sensitivity_ratio .80

//voicemenu shortcuts
alias "help" "voicemenu 2 0"
alias "sentryahead" "voicemenu 1 2"
alias "incoming" "voicemenu 1 0"
alias "uberme" "voicemenu 1 6"
alias "thanks" "voicemenu 0 1"
alias "go" "voicemenu 0 2"
//binds
bind 1 help
bind 2 sentryahead
bind 3 incoming
bind 5 uberme
bind 6 thanks
bind 4 go

God if I have to type 'sensitivity' one more time... --Shazam! 11:36, 4 April 2009 (UTC):*Posted by Shazam!

Shazam's! Current Spy script.

Current Iteration: Version 2.0 --Shazam! 07:10, 5 May 2010 (UTC)

Features:

  • Streamlined weapon selection system
 *Mousewheel up selects melee, Mwheeldown selects primary, Right click selects and fires secondary.  Hold it down to sap quickly.
 *Pressing Mouse 1 when secondary is out will switch you to either the melee or the primary depending on what you had out last.
  • 4 Key opens up disguise kit as usual, for precise selecting and key conservation.
  • Q key will select your last disguise for use.
  • Number keys are assigned common voice commands, since the weapon switching is done with the mouse.

A simple, elegant interface for a simple, elegant class.

spy.cfg contains:

//Beginning portion.  Be sure to set up a clear.cfg
exec clear.cfg
developer 1; echo Spy Script Loaded.; Wait 125;developer 0
unbind 1
unbind 2
unbind 3
bind 4 slot4
unbind 5
unbind q
//Melee 'fire'mode
alias +melee "slot3;+attack"
alias -melee "-attack"

bind mouse1 +melee
//Secondary firemode 
alias +secondary "slot2;+attack"
alias -secondary "-attack"

bind mouse2 +secondary
//Primary Firemode
alias +primary "slot1; +attack"
alias -primary "-attack;"

//mwheelbinds
alias "meleetoggle" "slot3; bind mouse1 +melee;"
alias "weapontoggle" "slot1; bind mouse1 +primary;"
bind mwheelup meleetoggle
bind mwheeldown weapontoggle
//last disguise and stealth binds
bind "MOUSE5" "+attack2"
bind "q" "lastdisguise"

//voicemenu shortcuts
alias "help" "voicemenu 2 0"
alias "sentryahead" "voicemenu 1 2"
alias "incoming" "voicemenu 1 0"
alias "uberme" "voicemenu 1 6"
alias "thanks" "voicemenu 0 1"
alias "go" "voicemenu 0 2"
//binds
bind 1 help
bind 2 sentryahead
bind 3 incoming
bind 5 uberme
bind 6 thanks
bind 7 go


Personal tools