Team Fortress 2
Mapijs Jan 25, 2017 @ 4:32am
medic script keeps carrying over to other classes
So i got a medic script that binds a shout-out to M2 to let my team know i ubered. But the bind keeps carrying over to other classes. I tried using a config.cfg which i execute in the other classes, the first thing in that config is unbindall. But this also doesn't work. Can someone help me?
< >
Showing 1-8 of 8 comments
Mapijs Jan 25, 2017 @ 5:41am 
? i use unbindall and then i rebind everything
Levanator Jan 25, 2017 @ 5:42am 
Originally posted by Mapijs:
? i use unbindall and then i rebind everything
Don't mind him, have you tried putting it only in the medic.cfg
Pakaku Jan 25, 2017 @ 5:43am 
You wrote the chat bind in your Medic.cfg, right?
Mapijs Jan 25, 2017 @ 6:02am 
Originally posted by Pakaku:
You wrote the chat bind in your Medic.cfg, right?
yes
Mapijs Jan 25, 2017 @ 6:03am 
Originally posted by Levanator:
Originally posted by Mapijs:
? i use unbindall and then i rebind everything
Don't mind him, have you tried putting it only in the medic.cfg
if you are talking about putting the unbind in medic.cfg, how would that help?
CandyhH (Banned) Jan 25, 2017 @ 6:05am 
Imagine deflecting as pyro and scoping as sniper etc
Mapijs Jan 25, 2017 @ 6:07am 
Originally posted by Candy Glaze:
Imagine deflecting as pyro and scoping as sniper etc
i played a competetive valve match, that was when i noticed that everytime i detonated a sticky as demo, i would say uber popped in the chat..... lets just say... i spammed a lot that game
Doehardt Jan 25, 2017 @ 6:37am 
Originally posted by Mapijs:
Originally posted by Candy Glaze:
Imagine deflecting as pyro and scoping as sniper etc
i played a competetive valve match, that was when i noticed that everytime i detonated a sticky as demo, i would say uber popped in the chat..... lets just say... i spammed a lot that game
If you have buttons with special functions for each class, you need to unbind all of them at the start of each class config then rebind them to either the standard behavior or whatever you want your class to do when pressing particular buttons.

Example:

soldier.cfg
unbind "mouse2" bind "mouse2" "+watch" alias "+watch" "+attack2; r_drawviewmodel 0; spec_prev" alias "-watch" "-attack2; r_drawviewmodel 0"
"+watch" is an alias that should mirror what the default tf2 is doing except showing viewmodels.

Example for different functions (example: mouse5)

engineer.cfg
unbind "mouse5" alias "buildDispenser" "destroy 0; build 0" bind "mouse5" "buildDispenser"

medic.cfg
unbind "mouse5" bind "mouse5" "fake_uber" alias "fake_uber" "voicemenu 1 7; fake_alert" alias "fake_alert" "say_team [ ! ]FAKING FULL UBER!"
That should give you the general idea.

-------------------------------------------------------------------------------------------
Personally all my configs start with this:
exec keybinds r_drawviewmodel 1
This loads my keybinds.cfg with every class change, which allows me to use keybinds.cfg for default unbinding everything before a class config starts. Just to show the part:
unbind CTRL unbind ALT unbind CAPSLOCK unbind mouse2 unbind mouse3 unbind mouse4 unbind mouse5 unbind MWHEELUP unbind MWHEELDOWN unbind kp_ins unbind kp_end unbind kp_downarrow unbind kp_pgdn unbind downarrow unbind uparrow unbind leftarrow unbind rightarrow unbind z
With this at the start of this config, I take measures of binding everything else that isn't having multiple functions accross classes like mouse1 being used for +attack or my movement keys.
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Jan 25, 2017 @ 4:32am
Posts: 8