Medic scripts

From TF2 Wiki

Share/Save/Bookmark
Jump to: navigation, search
Community script navigation
General scripts
Weapon scripts
General class scripts
Collection scripts
Class scripts
Scout scripts
Soldier scripts
Pyro scripts
Engineer scripts
Heavy scripts
Demoman scripts
Medic scripts
Sniper scripts
Spy scripts


Contents

[FB] Chris' competitive medic script

Also available (updated more regularly) at FakkelBrigade
// ---------------------------------------------------------------------------------------------------------------------------------
// Chris' competitive medic config, requires at least a four button mouse with a scroll wheel
// v1.052 | 07 June 2010
// ---------------------------------------------------------------------------------------------------------------------------------
// Problems or questions? Message me at http://steamcommunity.com/profiles/76561197995375493
// ---------------------------------------------------------------------------------------------------------------------------------
// PUT YOUR AUTOCALL PERCENTAGE INSTEAD OF 50 THE BIT MARKED "Initial autocall percentage"
// ---------------------------------------------------------------------------------------------------------------------------------
// Binds:
// F1 = Tap twice to move to new spawn room
// F2 = Have all teammates nearby show their location
// M1 = Medigun/kritzkrieg
// M2 = Syringe gun/blutsauger, when getting out will make all teammates call out
// M3 = Bonesaw/ubersaw
// M4 = Uber, will switch to medigun automatically, will drops any intelligence being carried, and will also mask the "go go go" voice command
// Mouse wheel = Scroll up for syringe gun, down for medigun
// C = Vocalise fake ubercharge to enemy team
//
// Shift commands:
// SHIFT + C = Mask "I am fully charged" or other calls
// SHIFT + O = Kill self (to move place in spawn etc)
// ---------------------------------------------------------------------------------------------------------------------------------
// If you want to automatically undo this when changing to another class, put this in the config for that class (obviously uncomment it first)
// You might want to put it in your autoexec as well, because binds are retained between sessions
//
// alias "resetmedcfg" "unbind "shift"; bind "mouse1" "+attack";bind "mouse2" "+attack2";bind "mwheelup" "invprev";bind "mwheeldown" "invnext";unbind "mouse3";unbind "mouse4";bind "C" "voice_menu_3";-reload;-forward;echo "*** MEDIC CONFIG UNLOADED ***""
// resetmedcfg
//
// OR
//
// bind a key to it in your autoexec only like:
//
// alias "resetmedcfg" "unbind "shift"; bind "mouse1" "+attack";bind "mouse2" "+attack2";bind "mwheelup" "invprev";bind "mwheeldown" "invnext";unbind "mouse3";unbind "mouse4";bind "C" "voice_menu_3";-reload;-forward;echo "*** MEDIC CONFIG UNLOADED ***""
// bind "p" "resetmedcfg"
// resetmedcfg
// ---------------------------------------------------------------------------------------------------------------------------------
//                                                           CONFIG BEGINS
// ---------------------------------------------------------------------------------------------------------------------------------

// Auto call changer
alias "autocall_initial" "hud_medicautocallersthreshold "50"" // Initial autocall percentage
alias "autocall_temp" "hud_medicautocallersthreshold "150"" // Autocall percentage when getting out blutsauger/syringe
alias "+autocall_temp_hit" "autocall_temp"
alias "-autocall_temp_hit" "autocall_initial"

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

// Syringe gun/blutsauger
alias "+needles" "slot1;+attack;-reload;autocall_temp"
alias "-needles" "-attack;+reload"

// Bonesaw/ubersaw
alias "+saw" "slot3;+attack;autocall_temp"
alias "-saw" "-attack"

// Uber and notification
alias "+uber" "slot2;dropitem;+attack2;say_team "*** KRITZ OR UBER USED ***";voicemenu 0 0;autocall_initial"
alias "-uber" "-attack2;"

// Fake uber and notification
alias "fakeuber" "voicemenu 1 7;say_team "*** KRITZ OR UBER FAKED ***""

// Mask calls
alias "maskuber" "voicemenu 0 0;say_team "*** MASKED UBER CALL ***""

// Spawn move
alias "forwardspawn_random" "join_class "random"; alias "forwardspawn_toggle" "forwardspawn_medic""
alias "forwardspawn_medic" "join_class "medic"; alias "forwardspawn_toggle" "forwardspawn_random";say_team "*** MOVED SPAWN ***""
alias "forwardspawn_toggle" "forwardspawn_random"

// Shift mask
alias "+shiftmask" "bind "C" "maskuber";bind "o" "kill""
alias "-shiftmask" "bind "C" "fakeuber";unbind "o""

// Rebind aliases
alias "slot1bind" "slot1;autocall_temp"
alias "slot2bind" "slot2;autocall_initial"

// Bind
bind "c" "fakeuber"

bind "f1" "forwardspawn_toggle"
bind "f2" "+autocall_temp_hit"
bind "mouse1" "+heal"
bind "mouse2" "+needles"
bind "mouse3" "+saw"
bind "mouse4" "+uber"
bind "mwheelup" "slot1bind"
bind "mwheeldown" "slot2bind"
bind "shift" "+shiftmask"

// Print to console
echo "*** CHRIS' COMPETITIVE MEDIC CONFIG LOADED ***"

Complete and perfect medic config by Random

alias syringegun "slot1;cl_crosshair_file crosshair5;cl_crosshair_scale 30;cl_crosshair_red 0;cl_crosshair_green 255;cl_crosshair_blue 0;r_drawviewmodel 0;viewmodel_fov 120;MW1" alias medigun "slot2;cl_crosshair_file crosshair7;cl_crosshair_scale 30;cl_crosshair_red 0;cl_crosshair_green 255;cl_crosshair_blue 255;r_drawviewmodel 1;viewmodel_fov 120;MW2" alias bonesaw "slot3;cl_crosshair_file crosshair5;cl_crosshair_scale 30;cl_crosshair_red 0;cl_crosshair_green 255;cl_crosshair_blue 0;r_drawviewmodel 1;viewmodel_fov 120;MW3"

alias Q1 "medigun" alias Q2 "syringegun" alias MW1 "bind mwheelup bonesaw;bind mwheeldown medigun;bind q Q1" alias MW2 "bind mwheelup syringegun;bind mwheeldown bonesaw;bind q Q2" alias MW3 "bind mwheelup medigun;bind mwheeldown syringegun"

bind 1 syringegun bind 2 medigun bind 3 bonesaw bind 4 slot4 bind 5 slot5

medigun

cl_autoreload "1" tf_medigun_autoheal "1" hud_medichealtargetmarker "1" hud_medicautocallers "1"


// ---------------------------------------------------------------------------- // Temp Fix // ----------------------------------------------------------------------------

alias "autocall_initial" "hud_medicautocallersthreshold "101"" // Initial autocall percentage alias "autocall_temp" "hud_medicautocallersthreshold "300"" alias "+autocall_temp_hit" "autocall_temp" alias "-autocall_temp_hit" "autocall_initial"

alias "+tempfix" "dropitem; +autocall_temp_hit" alias "-tempfix" "-autocall_temp_hit"

bind "v" "+tempfix ;voicemenu 3 1"

// ---------------------------------------------------------------------------- // Uber Binds // ----------------------------------------------------------------------------

bind mouse2 +useuber bind mouse2 +usekritz

alias +useuber "+attack2; say_team >>> USING UBER <<<;dropitem" alias -useuber "-attack2"

alias +usekritz "+attack2; say_team >>> USING KRITZ <<<;voicemenu 2 4;dropitem" alias -usekritz "-attack2"

bind "MOUSE1" "+attack" bind mouse2 "+useuber" unbind mouse4 unbind mouse5

// ---------------------------------------------------------------------------- // Fake Uber // ----------------------------------------------------------------------------

bind "f" "sayfakeuber; voicemenu 1 7" alias sayfakeuber "say_team >>> FAKE UBER <<<"

// ---------------------------------------------------------------------------- // Silence Uber // ----------------------------------------------------------------------------

bind "R" "say_team >>> UBER READY <<<;voicemenu 2 4"

// ---------------------------------------------------------------------------- // Loadout preset magic // ----------------------------------------------------------------------------

load_itempreset 0 alias uber "load_itempreset 0;alias "uberkritz" "kritz"; alias "switchspawn" "switchspawn_uber"" alias kritz "load_itempreset 1;alias "uberkritz" "uber"; alias "switchspawn" "switchspawn_kritz" alias uberkritz "kritz"

alias switchspawn_uber_1 "load_itempreset 2; alias "switchspawn_uber" "switchspawn_uber_2"" alias switchspawn_uber_2 "load_itempreset 0; alias "switchspawn_uber" "switchspawn_uber_1"" alias switchspawn_uber "switchspawn_uber_1"

alias switchspawn_kritz_1 "load_itempreset 3; alias "switchspawn_kritz" "switchspawn_kritz_2"" alias switchspawn_kritz_2 "load_itempreset 1; alias "switchspawn_kritz" "switchspawn_kritz_1"" alias switchspawn_kritz "switchspawn_kritz_1"

alias switchspawn "switchspawn_uber"

bind mwheelup "switchspawn" bind mwheeldown "switchspawn"

bind uparrow "uber; say_team >>> TAKING UBER <<<; bind mouse2 +useuber" bind downarrow "kritz; say_team >>> TAKING KRITZ <<<; bind mouse2 +usekritz"


// ---------------------------------------------------------------------------- // Spawn Move // ----------------------------------------------------------------------------

alias forwardspawn_random "join_class "random";alias "forwardspawn_toggle" "forwardspawn_medic"" alias forwardspawn_medic "join_class "medic";alias "forwardspawn_toggle" "forwardspawn_random";say_team ">>> MOVED SPAWN <<<"" alias forwardspawn_toggle "forwardspawn_random"

bind f1 "forwardspawn_toggle"


Auto-Medigun

This version uses the SLOT command for weapon selection. Assuming you don't have class specific configurations set up, this is the one you want to use.
Posted by Essobie
alias +automedigun "-attack; slot2"
alias -automedigun "+attack"

bind "PGUP" "+automedigun"		// Tap to select new heal target.
bind "MWHEELUP" "-attack; slot1"	// Use to select Slot 1 (and disable AutoMedigun)
bind "MWHEELDOWN" "-attack; slot3"	// Use to select Slot 3 (and disable AutoMedigun)

Auto-Medigun (USE Command)

This version uses the USE command for weapon selection for no other reason than it is cool. This will pretty much require you to have class specific configurations set up.
Posted by Essobie
alias +automedigun "-attack; use tf_weapon_medigun"
alias -automedigun "+attack"
alias syringegun "-attack; use tf_weapon_syringegun_medic"
alias bonesaw "-attack; use tf_weapon_bonesaw"

bind "PGUP" "+automedigun"	// Tap to select new heal target.
bind "MWHEELUP" "syringegun"	// Use to select Syringe Gun (and disable AutoMedigun)
bind "MWHEELDOWN" "bonesaw"	// Use to select Bonesaw (and disable AutoMedigun)

Auto-Medigun with MOUSE1 (USE Command)

This is a modification of Essobie's script, but allows you to use MOUSE1 to select a new target. The downside is that you'll need another script to "reset" your MOUSE1, 1, 2, and 3 binds (to +attack, slot1, slot2 and slot3) when you change classes.
Note: if you use this script as is, you will not be able to cycle cameras using MOUSE1 while spectating, or anything else that is assigned to what you bind the exact command "+attack" to rather than the command itself. Essobie
Posted by Yogi
alias set_normal_attack "alias +automedigun +attack; alias -automedigun -attack"
alias set_medigun_attack "alias +automedigun -attack; alias -automedigun +attack"

alias +automedigun "+attack"
alias -automedigun "-attack"

alias medigun "-attack; use tf_weapon_medigun; set_medigun_attack"  // -attack prob not necessary, but just to be safe
alias syringegun "-attack; use tf_weapon_syringegun_medic; set_normal_attack"
alias bonesaw "-attack; use tf_weapon_bonesaw; set_normal_attack"

bind "MOUSE1" "+automedigun"
bind "1" "syringegun" // Use to select Syringe Gun (and disable AutoMedigun)
bind "2" "medigun" // Use to select medigun, then tap mouse1 to select new target
bind "3" "bonesaw" // Use to select Bonesaw (and disable AutoMedigun)

Auto-Medigun Weapon Switch/Heal

This is a modification of the Auto Spin Script for the heavy to allow you the use of the Mouse2 button to switch to your med gun, begin firing, and stop with another click. Switching weapons will cause continual firing. Same disclaimer applies, you will not be able to switch camera views, and you will need to "reset" or "re-bind" your mouse2 key for other classes, not a problem if you have separate config files though.
Posted by Shifty54
alias +togglehealing "+heal"
alias -togglehealing "-heal"
alias toggle "stop"
alias start "alias toggle stop; alias -togglehealing -heal"
alias stop "alias toggle start; alias -togglehealing -stop1"
alias +heal "use tf_weapon_medigun"
alias -heal "+attack;toggle"
alias -stop1 "-attack;toggle"
bind "MOUSE2" "+togglehealing"

Left-Shift Auto-Medigun stutter

Stutter is used to switch between healing targets. Click Left-Shift again to stutter once. Aurora helped me with a previous version, then it was lost. This I made myself. I use it in combination with a 'lastdisguise' code bit in it. I'm a newbie at writing scripts so this is an accomplishment for me. I have found no other 'stutter' scripts like this. This post needs revision.
Posted by NiteCyper
alias +kill "+attack"
alias -kill "-attack"
alias +shiftautofire "-kill; wait 25; +kill"
alias -shiftautofire "+kill"

bind "SHIFT" "+shiftautofire"
bind "MOUSE1" "+kill"

Two Button Auto Heal/Hold

This script is slightly different than those above in that it allows you to start the auto heal with 1 button and have it continue until (and only until) you hit that same button again. Pressing the 2nd button will only hold fire until it's released. This way you can either choose continual heal mode or regular attack mode, and you can switch healing targets easily using your regular shoot button.
Example
- Press MOUSE2 (this turns on auto heal)
- Press and hold MOUSE1 (this holds heal beam and allows you to aim at another patient)
- Release MOUSE1 (this starts the auto heal back up)
- Press MOUSE2 (This turns auto heal off, allowing you to fire the normal way with MOUSE1)
I like this better because it makes it easy for me to re-aim at another patient and switch to attack mode if I have to defend myself.
Posted By: Hishighness 03:55, 19 July 2009 (UTC)
// MOUSE3 Auto heal toggle with MOUSE1 hold.

alias "healToggle" "heal1"
alias "heal1" "+attack; alias healToggle heal2; bind MOUSE1 +switch"
alias "heal2" "-attack; alias healToggle heal1; bind MOUSE1 +attack"

alias +switch "-attack"
alias -switch "+attack"

bind "MOUSE3" "healToggle"
bind "MOUSE1" "+attack"

InstaUber

  • Press mouse3 to instantly activate your ubercharge, doesn't matter what weapon you are currently using.
  • --By (µÞ{}fT¡34¡™ 10:48, 29 October 2008 (UTC)
--Rythyrix 11:19, 7 July 2009 (UTC) Rythyrix: Script now works properly. Drops flag to allow ubercharge to activate.


//InstaUber Script By CupOfTea
alias "+instauber" "slot2; dropitem; wait 50; +attack2"
alias "-instauber" "-attack2;"
bind "MOUSE3" "+instauber"

Total Weapon Interface Redesign

This is a total redesign of the weapons interface.
Features:
1: Mouse2 pulls medigun and then re-binds to fire it
2: Mouse1 pulls last weapon if on medigun and re-binds to fire it
3: 'Q' Swaps the current Mouse1 weapon between needlegun and bonesaw
  • Note: Mouse3 is the new ÜberCharge button...DO NOT FORGET THIS
This script could use some more management modifications as it's still not as clean as I would like it to be and I think some of it could be scripted a little cleaner/better. However the interface itself works and I am of the impression that this is the single most efficient way to play the medic class. It saves both time and effort when playing and is a very natural weapons interface. It originally had an auto heal beam feature but I removed that when valve added it in as a game feature, plus it allowed you to cheat your multiple ubers a bit and uber >7 players at a time.
  • Note: I also am making use of an outside .cfg to clear key input it is defined below
// clear.cfg
// for remapping binds and cleaning things up
// you can exec autoexec as well but I like to keep things simple
bind "MOUSE5" ""
bind "MOUSE3" ""
bind "MOUSE1" "+attack"
bind "MOUSE2" "+attack2"
bind "q" "lastinv"
// Medic.cfg remap -> Provided by Mordentral / M72 The LAW-BOOM BOOM

// Remap defaults
exec clear.cfg // Clear my configs and reset for the class

alias +destsent "slot2; +attack; alias +stab +backstab1; alias -stab -backstab1; alias +sap +destsent2; alias -sap -destsent2"
alias -destsent "-attack;"
alias +destsent2 "+attack;"
alias -destsent2 "-attack;"

alias "+sap" "+destsent"
alias "-sap" "-destsent"
bind "MOUSE2" "+sap"

bind "MOUSE3" "+attack2"

alias +backstab1 "slot1; +attack; alias +sht1 +shoot; alias -sht1 -shoot; alias +stab +backstab; alias -stab -backstab; alias +sap +destsent; alias -sap -destsent"
alias -backstab1 "-attack;"
alias +backstab "+attack"
alias -backstab "-attack;"

alias "+stab" "+backstab1"
alias "-stab" "-backstab1"
bind "MOUSE1" "+stab"


alias +shoot "slot3; +attack; alias +stab +attack; alias -stab -attack; alias +sht1 +backstab1; alias -sht1 -backstab1; alias +sap +destsent; alias -sap -destsent"
alias -shoot "-attack;"
alias +shoot1 "+attack"
alias -shoot1 "-attack"

alias "+sht1" "+shoot"
alias "-sht1" "-shoot"

bind "q" "+sht1;"
Posted by mordentral

Neater Total Weapon Interface Redesign

This is a total redesign of the weapons interface. Being a programmer the one above looked to complex, and I had to fix it. Please Comment.
Features:
1: Mouse2 pulls medigun and fires it
2: Mouse1 pulls syringe gun and fires it
3: Mouse3 pulls saw and fires it
  • Note: SHIFT+CLICK uses your uber now
  • Note: You cannot use the mousewheel to switch
  • Note: I also am making use of an outside .cfg to clear key input it is defined below
// clear.cfg
// for remapping binds and cleaning things up
// you can exec autoexec as well but I like to keep things simple
bind "q" "lastinv"
bind "MOUSE1" "+attack"
bind "MOUSE2" "+attack2"
bind "MWHEELUP" "nextwep"
bind "MWHEELDOWN" "prevwep""
exec clear.cfg // Clear my configs and reset for the class

//change group means change all the <keys> in this group to the one you want

//switches to medigun and starts attacking
alias +medigun "slot2; +attack;"
//stops attacking
alias -medigun "-attack;"

//switches to syringegun and starts attacking
alias +syringegun "slot1; +attack;"
//stops attacking
alias -syringegun "-attack;"

//switches to saw and starts attacking
alias +saw "slot3; +attack;
//stops attacking
alias -saw "-attack;"

//this alias
//+uber - rebinds the ubercharge key
alias +uber "defuber"
//-uber - switches back to regular medigun
alias -uber "defmedi"

//uses ubercharge
alias useuber "+attack2; wait 25; -attack2"

//change group
bind "SHIFT" "+uber"

//change group
bind "MOUSE1" "+medigun"
alias defmedi "bind MOUSE1 +medigun"
alias defuber "bind MOUSE1 useuber"

//change group
bind "MOUSE2" "+syringegun"
alias defsyr "bind MOUSE2 +syringegun"

//change group
bind "MOUSE3" "+saw"
alias defsaw "bind MOUSE3 +saw"

unbind "MWHEELUP"
unbind "MWHEELDOWN"

echo "{|Loaded Medic|}"
Posted by MercOpsX

avos Uberrampage thingy

first script ever and I made it at school... to use this script you toggle on during setup and then charge up an Uber. when you click e (or whatever) you will swap to the ubersaw and attack then switch straight back hopefully going on a killing rampage accross the map. Please comment

alias "rampagetoggle" "rampage1"
alias "rampage1" "alias wack +sawmode; alias rampagetoggle rampage2"
alias "rampage2" "alias wack; alias rampagetoggle rampage1"
alias +sawmode "use tf_weapon_bonesaw; +attack"
alias -sawmode "-attack; use tf_weapon_medigun"
alias "wack" ""

bind "e" "wack"
bind "h" "rampagetoggle"

by avocadobride

This script would be so much more effective if the ubercharge took a second (or 1/2 a second) to wear off of the medic, like it does with other players when the medic switches between others rapidly while ubercharged. As it stands, when you pull out the ubersaw, you lose vulnerability at the beginning of the weapon switch animation and can't attack until after the animation is done. If the vulnerability would at least last all the way through the weapon switch animation, then this script could be a lot more fun.


Improved medic interface

This is a simple scriptthat moves all of the medics actions onto the mouse

1. Right mouse switch's to and fires the syring gun (or other gun) with auto reload after a second of non-fireing.
2. Left mouse switch's to and fires the medi gun (or other healing gun) with mouse wheel down then trigering ubercharge.
3. Middle mouse switch's to and fires the bone saw (or other melee weapon), and swaps back to last weapon upon release.
4. Mouse wheel up and down switches to syring gun and medigun respecty

Both number buttons still work for selecting weapons Bug free

//Default setings 
-reload
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"

//Controls syring gun
alias +kill "slot1; +attack; wait150; -reload"
alias -kill "-attack; wait; +reload; wait; "
bind "mouse2" "+kill"

//Controls medi gun
alias +heal "slot2; +attack; bind "mwheeldown" "+attack2""
alias -heal "-attack; bind "mwheeldown" "slot2" "
bind "mouse1" "+heal"

bind "mwheelup" "slot1"
bind "mwheeldown" "slot2"

//Controls melee weapon
alias +melee "slot3;+attack"
alias -melee "-attack; lastinv"
bind "mouse3" "+melee"

Posted by Name_l3ss



Personal tools