r/Tf2Scripts • • Jun 28 '20

Satisfied Lil help for doing a med script

ok so basicaly i need some help for a comp med script since i play med in 6s (and sometimes hl) but i need this script/cfg to not go in conflict with my spy cfg (i play spy in hl mostly) the things needed are the usualbinds for saying uber ready/popped/faked maybe the autobind for uber popped when i pop it

medic radar

auto uber fake or something similar even bind for it

Uber on rmb with any weapon out

and i guess that's it ps the spy cfg has this comands in case you have suggestions for modifying it so it will not conflict i will accept for sure (pretty simple and clean)

bind "Q" "disguise 8 -2" // undisguese bind 

bind "MOUSE5" "slot2; disguise 5 -1" //Enemy medic disguise

Ps again i even use mr slin crosshair switcher script does it give some problems or?

7 Upvotes

27 comments sorted by

View all comments

Show parent comment

1

u/Loquenlucas Jun 28 '20

reset_binds.cfg

ok done everything tested but didn't send the chat why it didn't do? i copy pasted everything modifying only the unbind

1

u/Starach Jun 28 '20 edited Jun 28 '20

Can you copy paste what you have in your Medic.cfg, Spy.cfg and reset_binds.cfg so I can take a look at it? Probably easier that way (:

1

u/Loquenlucas Jun 28 '20

Medic

exec reset_binds.cfg // Useful script that allows you to have a button do different things for different classes
// Uber Bind Script
alias +charge "+attack2; say_team "***UBER USED***"; voicemenu 2 3"
alias -charge "-attack2"
bind "MOUSE2" +charge
// Fake Uber Bind
bind "q" "voicemenu 1 7;say_team ---UBER FAKED---"
tf_medigun_autoheal "1" // Just a good setting to have
// Medic Radar
alias "+MedicRadar" "Hud_MedicAutocallersThreshold 500"
alias "-MedicRadar" "Hud_MedicAutocallersThreshold 50"
bind "h" "+MedicRadar"

Spy

exec reset_binds.cfg
bind "Q" "disguise 8 -2" // undisguese bind 

bind "MOUSE5" "slot2; disguise 5 -1" //Enemy medic disguise

Reset binds

unbind "MOUSE2"
bind "MOUSE2" "+attack2"
// This removes all the fancy med binds I have done to M2 and resets it to default

unbind "q"
unbind "MOUSE5"
// I use 'g' and 'h' as special class specific keys so this unbinds them allowing them to be customised in individual class cfgs
// I don't need to bind them to anything because I do that in the class specific cfg files
bind "1" "slot1;r_drawviewmodel 1"
bind "2" "slot2;r_drawviewmodel 1"
bind "3" "slot3;r_drawviewmodel 1"
bind "4" "slot4;r_drawviewmodel 1"
bind "5" "slot5;r_drawviewmodel 1"
// This turns all my viewmodels back on. I have different ones on and off for different classes.

Autoexec

mat_motion_blur_enabled 0
cl_hud_playerclass_use_playermodel 1
glow_outline_effect_enable 1
sv_allow_point_servercommand always
viewmodel_fov 90
tf_use_min_viewmodels 1
unbind Q
unbind MOUSE5
// Null-cancelling movement script

alias +scores "net_graph 4; +showscores"
alias -scores "net_graph 0; -showscores"
bind tab +scores
//interp stuff
cl_cmdrate 67
cl_interp_ratio 1
cl_lagcompensation 1
cl_pred_optimize 2
cl_smooth 0
cl_smoothtime 0.01
cl_updaterate 67
rate 60000
cl_interp .033 //for hitscan classes
//cl_interp .0152 //for projectile classes

1

u/Loquenlucas Jun 28 '20

didn't put in the hold m2 for switch when i have uber cause as you said it could conflict and all so

1

u/Starach Jun 28 '20

Ah, I fixed that in the edit, sorry for the confusion. This should now work fine.

// Uber Bind and M2-to-Uber script
bind "MOUSE2" +medicm2
alias +medicm2 "dropitem;slot2;+attack2; say_team "***UBER USED***"; voicemenu 2 3"
alias -medicm2 "-attack2"

What was the problem you had? What was not showing up? I would recommend taking the 'unbind q' and 'unbind MOUSE5' out of auto exec. As long as exec reset_binds.cfg is in the first line in every class config file you will be fine.

1

u/Loquenlucas Jun 28 '20

// Uber Bind and M2-to-Uber script
bind "MOUSE2" +medicm2
alias +medicm2 "dropitem;slot2;+attack2; say_team "***UBER USED***"; voicemenu 2 3"
alias -medicm2 "-attack2"

i just removed the unbid from autoexec the problem was that when i popped the uber on a bot for test and didn't send the message in chat saying uber popped now i try to take this script and change it to the old one so from

alias +charge "+attack2; say_team "***UBER USED***"; voicemenu 2 3"
alias -charge "-attack2"
bind "MOUSE2" +charge

i change with

bind "MOUSE2" +medicm2 alias +medicm2 "dropitem;slot2;+attack2; say_team "***UBER USED***"; voicemenu 2 3" alias -medicm2 "-attack2"

1

u/Loquenlucas Jun 28 '20 edited Jun 28 '20

changed still doesn't send the message in team chat when i pop the uber and the other stuff doesn't seem to work too i tested with the bots for fast uber build on dustbowl and test

1

u/Starach Jun 28 '20

Try typing ‘exec medic’ into console while in game (while you are a medic). Also make sure your file is just named ‘medic’.

I loaded into a server earlier and it worked for me. I’ll do a bit more digging later today.

1

u/Loquenlucas Jun 28 '20

but it's strange i tried calling it medic.cfg (it's a cfg file not text i checked) but doesn't work meanwhile my spy cfg works

1

u/Starach Jun 28 '20

It should work, all I know is mine is just called ‘medic’. I’m basically just playing a game of spot the difference atm.

1

u/Loquenlucas Jun 28 '20

lemme test this out in a casual server

but not even the autoheal works

1

u/Starach Jun 28 '20

That implies that it can’t see the medic file, rather than the scripts aren’t working.

→ More replies