Forum
Crosshair/viewmodel switching
Created 21st December 2010 @ 16:40
Add A Reply Pages: 1 2 Next »
I want to play demomon with viewmodel off on the nade launcher but on for stickybombs, if that fails I want to play with both off but with a different coloured crosshair for both.
Sounds simple, go use tf2mate right?
Well the problem is I like to switch between primary and secondary using the switch to previous weapon key (the one that is bound by default to q). This isnt compatible with the different viewmodels as using q means the game sort of remembers the settings for the previous weapon.
TL:DR, can I keep using q to weapon switch or will I have to stop being such a tard?
Quoted from Davib
I want to play demomon with viewmodel off on the nade launcher but on for stickybombs, if that fails I want to play with both off but with a different coloured crosshair for both.
Sounds simple, go use tf2mate right?
Well the problem is I like to switch between primary and secondary using the switch to previous weapon key (the one that is bound by default to q). This isnt compatible with the different viewmodels as using q means the game sort of remembers the settings for the previous weapon.
TL:DR, can I keep using q to weapon switch or will I have to stop being such a tard?
It’s a limitation in TF2 and here’s no known fix for it. If someone proves me wrong, I’d like to know so I can implement it :P
edit NEVER MIND I READ HIS QUESTION WRONG ;___; tf2mate actually does this but it’s not documented
Last edited by compton,
I believe broesel’s crosshair switcher script does this.
bind q _wtoggle
bind 2 “_slot2”
bind 1 “_slot1”
alias _wtoggle “_slot2”
alias _slot1 “slot1;cl_crosshair_file crosshair1;r_drawviewmodel 0;alias _wtoggle _slot2”
alias _slot2 “slot2;cl_crosshair_file crosshair3;r_drawviewmodel 1;alias _wtoggle _slot1”
Quoted from darkman
bind q _wtoggle
bind 2 “_slot2”
bind 1 “_slot1”
alias _wtoggle “_slot2”
alias _slot1 “slot1;cl_crosshair_file crosshair1;r_drawviewmodel 0;alias _wtoggle _slot2”
alias _slot2 “slot2;cl_crosshair_file crosshair3;r_drawviewmodel 1;alias _wtoggle _slot1”
What happens if you scroll? :)
Quoted from Spike Himself
I believe broesel’s crosshair switcher script does this.
TF2mate uses broesel’s script, doesn’t solve this.
edit: oh wait, OP: did you use the lastinv or mate_lastinv alias? mate_lastinv remembers the settings.
<- should make better documentation, but cba :(
Last edited by compton,
an easy solution is what Skeej did for me, bind a close-by key for melee (as a demo you dont use it much anyway) and bind Q or w/e your last weapon key is to switch between stickies and nades, if you do this its possible to have different viewmodels for each gun
there is no better solution known to me: (q works for me)
http://code.google.com/p/broesels-crosshair-switcher/
Last edited by Biohazard,
It’s possible, also if you use Q or scrolling. You just have to make aliases that re-assign those keys to the next alias each time you use them.
For instance, this is what I use to hide my viewmodels on my syringe gun:
alias 1n2 "slot2; bind q 2n1; r_drawviewmodel 1; bind 1 2n1; bind 3 2n3"
alias 2n1 "slot1; bind q 1n2; r_drawviewmodel 0; bind 2 1n2; bind 3 1n3"
alias 1n3 "slot3; bind q 3n1; r_drawviewmodel 1; bind 1 3n1; bind 2 3n2"
alias 3n1 "slot1; bind q 1n3; r_drawviewmodel 0; bind 2 1n2; bind 3 1n3"
alias 3n2 "slot2; bind q 2n3; r_drawviewmodel 1; bind 1 2n1; bind 3 2n3"
alias 2n3 "slot3; bind q 3n2; r_drawviewmodel 1; bind 1 3n1; bind 2 3n2"
bind 1 2n1
bind 2 1n2
bind 3 1n3
It can probably be done cleaner compared to how I did it, but I suck at scripting/coding. But yeah, do the same thing for scroll. The only problem is your first scroll maybe, it might not switch to what you expect, but after that, it should work fine.
So for instance in my script the first line would become something like:
alias 1n2 "slot2; bind q 2n1; r_drawviewmodel 1; bind 1 2n1; bind 3 2n3; bind mwheelup 2n1; bind mwheeldown 2n3"
Or reversed, depends if wheelup is next or previous weapon. You should be able to figure it out from this point :P. I don’t use my scroll wheel cause I use the wheelclick for +showscores :P
Last edited by skeej,
Quoted from Spike Himself
I believe broesel’s crosshair switcher script does this.
yes it does
and TF2mate does aswell, since it uses my script ;)
Quoted from broesel
[…]
yes it does
and TF2mate does aswell, since it uses my script ;)
Broesel you should make a thread for your switcher (if you haven’t yet) and get one of the admins to sticky it for you so it will appear at top with the rest of useful stuff (fps cfg’s, hud’s etc)
Last edited by Biohazard,
Quoted from Biohazard
[…]
Broesel you should make a thread for your switcher (if you haven’t yet) and get one of the admins to sticky it for you so it will appear at top with the rest of useful stuff (fps cfg’s, hud’s etc)
http://etf2l.org/forum/general/topic-11110/… ;)
Last edited by broesel,
works for both q and scroll: q swaps between primary and secondary and scroll works like default
put in autoexec:
alias wep1 “slot1; slot1_; alias wepswitch wep2; alias wepup wep3; alias wepdown wep2;viewmodel_fov #”
alias wep2 “slot2; slot2_; alias wepswitch wep1; alias wepup wep1; alias wepdown wep3; viewmodel_fov #”
alias wep3 “slot3; slot3_; alias wepswitch wep1; alias wepup wep2; alias wepdown wep1;viewmodel_fov #”
bind “mwheeldown” “wepdown”
bind “mwheelup” “wepup”
bind “q” “wepswitch”
bind “1” “wep1”
bind “2” “wep2”
bind “3” “wep3”
class configs
alias slot1_ “cl_crosshair_file #;cl_crosshair_scale #;cl_crosshair_red #;cl_crosshair_blue #;cl_crosshair_green #;cl_autoreload #;r_drawviewmodel #”
alias slot2_ “cl_crosshair_file #;cl_crosshair_scale #;cl_crosshair_red #;cl_crosshair_blue #;cl_crosshair_green #;cl_autoreload #;r_drawviewmodel #”
alias slot3_ “cl_crosshair_file #;cl_crosshair_scale #;cl_crosshair_red #;cl_crosshair_blue #;cl_crosshair_green #;cl_autoreload #;r_drawviewmodel #”
Last edited by M24_,
Quoted from Biohazard
there is no better solution known to me: (q works for me)
This works fine so it is highly possible I was using an older version of tf2mate when I tried this. If this is the version in your program then im sorry for the false alarm there compton :p
Thanks for the help guys! (my tf2 is starting to look like its sponsered by Broesel now)
Add A Reply Pages: 1 2 Next »