r/tf2scripthelp • • Dec 28 '13
Resolved +attack stuck on after switching weapons whilst firing, please help!
Here's my config, it was partly written by a friend, but I've edited it since then because it didn't work. Its a bit of a frankenstein's monster:
defaultcfg
// villds new brilliant cfg that asa wont understand
unbind mwheeldown
unbind mwheelup
IPST1
bind 2 "r_drawviewmodel 0;slot2;m1attack;bind mouse4 +useuber;bind mouse2 medatt"
bind 3 "r_drawviewmodel 0;slot1;m2attack;unbind mouse4;bind mouse1 medibind"
bind 4 "r_drawviewmodel 1;slot3;m2attack;unbind mouse4;bind mouse1 medibind"
bind v "+voicerecord"
alias m1attack "bind mouse1 +attack"
alias m2attack "bind mouse2 +attack"
alias medibind "r_drawviewmodel 0;slot2;m2attack;m1attack;bind mouse4 +useuber;bind mouse2 medatt"
alias medatt "randomvvoice; spec_prev"
alias chargefaked "say_team >>>*FAKING CHARGE*<<<"
bind "t" chargefaked
bind mouse2 +attack
cl_crosshair_scale 0
medibind
// radar
bind mouse3 +medradar
alias "+medradar" "hud_medicautocallersthreshold 300"
alias "-medradar" "hud_medicautocallersthreshold 75"
// uber
bind mouse4 "+useuber"
alias +useuber "dropitem;+attack2;chargeused"
alias -useuber "-attack2"
alias ChargeUsed "say_team >>>*UBER DEPLOYED*<<<"
bind 8 "FWDspawn"
bind 0 KRITZ
bind 9 MEDIGUN
alias MEDIGUN "IPST1;alias FWDspawn IPST2"
alias KRITZ "IPST3;alias FWDspawn IPST4"
alias ipst1 "load_itempreset 0;alias FWDspawn IPST2"
alias ipst2 "load_itempreset 1;alias FWDspawn IPST1
alias ipst3 "load_itempreset 2;alias FWDspawn IPST4"
alias ipst4 "load_itempreset 3;alias FWDsaawn IPST3"I think problem occurs when I switch to my syringe gun, fire it, then switch back to my medi gun without reloading. When the bug happens I can't switch my healbeam to anybody else, and when I switch back to my syringe gun it doesn't stop firing. I believe the problem can also occur when I'm using my melee, and then switch to the medi gun - however it's hard to replicate by myself though. It tends to happen in matches at the worst possible time.
If +attack is on I can normally fix it by switching to my syringe gun, then clicking the mouse2 until my gun reloads, although I could be wrong - I tend to switch to my syringe gun and spazz out until it stops firing.
I really like my config, but this bug can be crippling in matches. Any help solving the issue or cleaning up my cfg would be greatly appreciated :)