PDA

View Full Version : bind issue


coll9947
April 21st, 2008, 02:57 PM
last night i was messing with my binds/scripts and i screwed up my ability to activate ubers, so i want to say sorry to anyone that died while i had a full uber on them. i was kind of drunk and at first i didn't realize there was a problem because a couple times i died so soon after i got the uber that i thought i was just late on the click. i thought i had fixed it between rounds but i didn't, being drunk and whatnot. i have since sorted out my scripts. again, sorry, i'm sure it was absolutely rage-inducing.

on that note i want to discuss scripts.

i want click-and-hold melee attack on my mouse2 for every class but sniper, heavy, demo, and medic. initially i figured just put the melee script into all my .cfgs except the classes i mentioned. however, as most of you i'm sure know, the config stays even after switching classes, so it messes up right-click functionality for sniper/medic/demo/heavy. for these classes i'd like press-and-hold melee on the F key.

is there a simple way to alter the script to solve this problem? I've done a grip of reading on the TF2 wiki and other scripting references, but found little.

SATAn
April 21st, 2008, 04:02 PM
just make it so you have a bind on 2 different keys to load the correct script for the 2 different class types (melee and secondary) so you can load either cfg with a click of said button.

TrashedDT
April 21st, 2008, 11:54 PM
Adding the line "unbind all" will remove all binds and scripts. With my setup I call this everytime, as it's part of my autoexec.cfg. My autoexec also rebinds all the keys in common with all the classes. After autoexec is called the respective class cfg is called loading the rest of the needed binds.

Afterthought: I should clarify that each of my class.cfg call autoexec.cfg.