Forum

Config Help (Medic.)

Created 29th August 2016 @ 19:24

Add A Reply Pages: 1

Stimpy

Hi Guys/Gals.

Not played for 3-4 years and thinking of getting back into TF2.

My old config was as below, but when i right click with needles or saw out it no longer changes to medigun, what is wrong/changed with the config below? Also the weapon calls no longer work. any help would be most appreciated!

//=============================
// Weapon Specific Calls
// — these are called every time a weapon is changed to and set individual scripts for that weapon.
// — alternate weapons have separate calls where appropriate, e.g. class_weapon1_2
//=============================
// Needlegun
alias “class_weapon1_1”
// Blutsauger
alias “class_weapon1_2”
// Medigun
alias “class_weapon2_1”
// Kritzkrieg
alias “class_weapon2_2”
// Bonesaw
alias “class_weapon3_1”
// Ubersaw
alias “class_weapon3_2”

// ————-
// Toggle Calls
// — called when the an alternate weapon toggle is used
// =============
alias equip_weapon1_1 “echo Needlegun”
alias equip_weapon1_2 “echo Blutsauger”
alias equip_weapon2_1 “echo Medigun; say_team ==== Medigun Equipped ====”
alias equip_weapon2_2 “echo Kritzkrieg; say_team ==== Kritzkrieg Equipped ====”
alias equip_weapon3_1 “echo Bonesaw”
alias equip_weapon3_2 “echo Ubersaw”

alias +class_attack2 “+attack2; say_team **I’m using uber**”
alias -class_attack2 “-attack2”

Bind mouse2 +class_attack2

Cheers
Shrew

doks

Don`t think there is anything wrong with your config as such…

Just make sure it is in the right folder. tf/custom/cfg and NOT in tf/cfg.

Stimpy

Quoted from doks

Don`t think there is anything wrong with your config as such…

Just make sure it is in the right folder. tf/custom/cfg and NOT in tf/cfg.

It wasn’t in there, but i have tried it in there also and it doesn’t work. When i right click it doesn’t change my weapon back to medigun. says the Text fine, but doesn’t weapon switch on right click like it use to.

i could be missing something? im not sure it was my exact working script, just the one i found in the depths of my HDD and looked about right.


Last edited by Stimpy,

hr

alias +class_attack2 “+attack2; say_team **I’m using uber**”
alias -class_attack2 “-attack2”

Bind mouse2 +class_attack2

It doesn’t look like the alias “+class_attack2” has any reference to switching to medigun. Perhaps it should be;

alias +class_attack2 “slot2;+attack2; say_team **I’m using uber**”
alias -class_attack2 “-attack2”

Bind mouse2 +class_attack2

As for the switching between medigun and kritz, it also seems like there is no reference to actually switching the weapon, just an alias which isn’t bound to anything.

I have something like this for my demoman;

alias loadout2 “load_itempreset 1;say_team Bad stickies loaded;bind2”
alias loadout1 “load_itempreset 0;say_team Good stickies loaded;bind1”

alias bind1 “bind mouse5 loadout2”
alias bind2 “bind mouse5 loadout1”

Perhaps you could change it to this;

alias loadout2 “load_itempreset 1;say_team Kritz loaded;bind2”
alias loadout1 “load_itempreset 0;say_team Medigun loaded;bind1”

alias bind1 “bind mouse5 loadout2”
alias bind2 “bind mouse5 loadout1”

I haven’t tested this stuff out, have a try and I’ll take another look if it doesn’t work.

Jan

(League Admin)
|FV|

Quoted from doks

Just make sure it is in the right folder. tf/custom/cfg and NOT in tf/cfg.

That doesn’t matter. I have my config directly in cfg folder.

As for the rest hr beat me to it for 5 min. :D

Stimpy

Hi Guys,

I have tested this, but didn’t do what i had hoped. Basically its this line i need to edit, what i would like it to do in on medic, which i click mouse 2 i would like it to switch me from needle gun or bonesaw to my medigun, i use to use this when taking on scouts etc. so i could try needle first them and if that didn’t go as planed i could double tap mouse 2 to pop uber!

alias +class_attack2 “+attack2; say_team **I’m using uber**”
alias -class_attack2 “-attack2

Thanks in advance.
Shrew

Jan

(League Admin)
|FV|

hr gave you the answer. Compare those lines and you’ll see yours is missing “slot2” command which actually switches to medigun.

alias +class_attack2 “slot2;+attack2; say_team **I’m using uber**”
alias -class_attack2 “-attack2”


Last edited by Jan,

Jan

(League Admin)
|FV|

E: double post


Last edited by Jan,

Stimpy

Quoted from Jan

hr gave you the answer. Compare those lines and you’ll see yours is missing “slot2” command which actually switches to medigun.

alias +class_attack2 “slot2;+attack2; say_team **I’m using uber**”
alias -class_attack2 “-attack2”

As suggested i have tried this with odd results, not the desired effect.
Basically what happens is it does’t switch weapon, if i am on a saw it sends me into a made taunt spree which cannot be stopped even by changing class.

Jan

(League Admin)
|FV|

Then you might have some other binds/aliases somewhere in other config files. I use exactly the same script (only without say_team part) and it works perfectly.

Stimpy

Ok, so with a bit of google i have found a solution.

alias "primary" "slot1;r_drawviewmodel 0;viewmodel_fov 0;bind mwheeldown secondary;bind mwheelup melee"
alias "secondary" "slot2;r_drawviewmodel 1;viewmodel_fov 90;bind mwheeldown melee;bind mwheelup primary"
alias "melee" "slot3;r_drawviewmodel 1;viewmodel_fov 90;bind mwheeldown primary;bind mwheelup secondary"

alias +charge "slot2;+attack2;dropitem;say_team "I'v Blown My Uber, GO GO GO Charge!";voicemenu 0 0;autocall_initial;spec_prev"
alias -charge "-attack2"
bind mouse2 +charge

Add A Reply Pages: 1