r/Tf2Scripts • u/multitarian • Aug 06 '19
Question Script request: Reverse medic toggle
Medic script:
+attack is always on when holding the medigun unless you hold mouse (option to toggle). Mouse1 would toggle +attack (not other weapons_
2
Upvotes
1
u/just_a_random_dood Aug 06 '19
bind 2 slot2; +attackbind +mouse1 -attackbind -mouse1 +attackOk I think this is it? When you press the 2 in the number row, it'll go to your Medigun and automatically start attacking (healing). Then mouse1 is I think doing the opposite of what it usually does. Make sure you don't switch to your Medigun via the scrollwheel, you have to do it from the top row
This of course all goes into your medic.cfg
1
u/Stack_Man Aug 23 '19 edited Aug 23 '19
Put the above in
medic.cfgput the following in every class's.cfgas the first line.put the following in
autoexec.cfgUntested. Let me know if there are problems.
Edit: Q and scrollwheel functionality will be here later.Scrollwheel and Q; Put inmedic.cfg. Replacebind 2,bind 1, andbind 3of the first script with the ones in this script.bind 2 "slot2; +attack; inverseMouse; qStateTwo; scrollStateTwo"bind 1 "slot1; -attack; revertMouse; qStateOne; scrollStateOne"bind 3 "slot3; -attack; revertMouse; qstateThree; scrollStateThree"alias inverseMouseWithAtkDown "inverseMouse; invnext; +attack"alias revertMouseWithAtkDown "revertMouse; invnext; -attack"alias inverseMouseWithAtkUp "inverseMouse; invprev; +attack"alias revertMouseWithAtkUp "revertMouse; invprev; -attack"alias scrollStateOne "bind mwheeldown inverseMouseWithAtkDown; bind mwheelup revertMouseWithAtkUp"alias scrollStateTwo "bind mwheeldown revertMouseWithAtkDown; bind mwheelup revertMouseWithAtkUp"alias scrollStateThree "bind mwheeldown revertMouseWithAtkDown; bind mwheelup inverseMouseWithAtkUp"bind mwheeldown "inverseMouseWithAtk"bind mwheelup "revertMouseWithAtk"alias qStateOne "Q and scrollwheel functionality is a little too complex. Might never do it. For now, use
bind Q "lastinv -attack"When switching to the medigun with Q, click once. Avoid using scrollwheel.
1
u/just_a_random_dood Aug 30 '19
Uhh, very late, but I forgot all about tf2mate, which has the script
just type
enable_autohealinto your config when you want to enable it, anddisable_autohealwhen you want to disable it. Or make a bindToggle between the two like this(I've never used a toggle like this, I've got no clue if it'll actually work) or you can bind two separate buttons to enable/disable
In any case... yeah. Sorry for bringing this so late.