Medic scripts

From TF2 Wiki

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

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"

Personal tools