TF2 Crosshair Switcher Script

A Config Script for Team Fortress 2

Hello world. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending TheS4rr points.
  • Post: Give TheS4rr your thoughts on this Script.
  • Vote: Help TheS4rr win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Interested?

Sign up

Already a Bananite? Login

25 lines | 2 kb | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
alias primary "slot1; sensitivity 3; r_drawviewmodel 1; viewmodel_fov 90; fov_desired 90; primaryxhair"
alias secondary "slot2; sensitivity 3; r_drawviewmodel 1; viewmodel_fov 90; fov_desired 90; secondaryxhair"
alias melee "slot3; sensitivity; 3; r_drawviewmodel 1; viewmodel_fov 90; fov_desired 90; meleexhair"

alias switchdown1 "secondary; bind mwheelup switchup2; bind mwheeldown switchdown2; bind u backswitch2"
alias switchup1 "melee; bind mwheelup switchup3; bind mwheeldown switchdown3; bind u backswitch2"
alias switchdown2 "melee; bind mwheelup switchup3; bind mwheeldown switchdown3; bind u backswitch2"
alias switchup2 "primary; bind mwheelup switchup1; bind mwheeldown switchdown1; bind u backswitch1"
alias switchdown3 "primary; bind mwheelup switchup1; bind mwheeldown switchdown1; bind u backswitch1"
alias switchup3 "secondary; bind mwheelup switchup2; bind mwheeldown switchdown2 bind u backswitch2"

alias backswitch2 "primary; bind mwheelup switchup1; bind mwheeldown switchdown1; bind u backswitch1"
alias backswitch1 "secondary; bind mwheelup switchup3; bind mwheeldown switchdown3; bind u backswitch2"

alias switch1 "primary; bind mwheelup switchup1; bind mwheeldown switchdown1; bind u backswitch1"
alias switch2 "secondary; bind mwheelup switchup2; bind mwheeldown switchdown2; bind u backswitch2"
alias switch3 "melee; bind mwheelup switchup3; bind mwheeldown switchdown3; bind u backswitch2"

bind mwheelup switchup1
bind mwheeldown switchdown1
bind 1 switch1
bind 2 switch2
bind 3 switch3
bind 4 "slot4; r_drawviewmodel 1"
bind 5 "slot5; r_drawviewmodel 1"
//CrossHair Switcher

// Put this config in your class configs found in common/tf/cfg. Make sure you save everything as a cfg file. (if you don't save it as that rename it i.e. scout.cfg, make sure it's not a .txt file)
// This config will make it so when you switch weapons your crosshair's size, scale, and color will change, along with the actual crosshair, the sensitivity, whether you have a viewmodel on, the size of your viewmodel, and also your fov.
// Crosshair: To change your crosshair change the number "7" to any of the crosshairs in your options.
// Color: To change the color change the values of the green, red, and blue numbers. If you don't like the color you have just adjust the values, you can do this while you are ingame. When you've saved your new color just click the "`~" console button, and exec your config,
// Let's say you did all of this in your scout.cfg file just type in console exec scout.cfg.
// Default white: "cl_crosshair_green 200; cl_crosshair_blue 200; cl_crosshair_red 200"
// Green: "cl_crosshair_green 255; cl_crosshair_red 0;cl_crosshair_blue 0"
// Red: "cl_crosshair_green 0; cl_crosshair_red 255;cl_crosshair_blue 0"
// Blue: "cl_crosshair_green 0; cl_crosshair_red 0;cl_crosshair_blue 55"
// Pink: "cl_crosshair_green 62; cl_crosshair_red 255;cl_crosshair_blue 150"
// Cyan: "cl_crosshair_green 255; cl_crosshair_blue 255; cl_crosshair_green 0"
// Yellow: "cl_crosshair_green 255; cl_crosshair_blue 0; cl_crosshair_red 255"

alias primaryxhair "cl_crosshair_file crosshair7; cl_crosshair_scale 42; cl_crosshair_green 255; cl_crosshair_red 0;cl_crosshair_blue 0"
alias secondaryxhair "cl_crosshair_file crosshair7; cl_crosshair_scale 42; cl_crosshair_green 255; cl_crosshair_red 0;cl_crosshair_blue 0"
alias meleexhair "cl_crosshair_file crosshair7; cl_crosshair_scale 42; cl_crosshair_green 255; cl_crosshair_red 0;cl_crosshair_blue 0"

// Sensitivity values change the ingame sensitivity, so for example if you'd like your primary to be ingame 3 but you'd like your melee to be ingame 2.7, then you can just change those values here.
// The r_drawviewmodel 1 command makes it so your viewmodel is either on or off for this weapon slot. I usually have it where my primary and secondary have no viewmodel then my melee does. To have certain viewmodels off just change the 1 to 0.
// viewmodel_fov 90 is how far away the viewmodel is from your screen. If I'm useing a viewmodel I usually have it on 115 but that distorts the viewmodel quite a bit so just play around with these values.
// fov_desired 90 The default value of this is 70 but while reading this if you have not already changed yours to 90 I highly recommend you do this even if you decide not to use this cfg.

alias primary "slot1; sensitivity 3; r_drawviewmodel 1; viewmodel_fov 90; fov_desired 90; primaryxhair"
alias secondary "slot2; sensitivity 3; r_drawviewmodel 1; viewmodel_fov 90; fov_desired 90; secondaryxhair"
alias melee "slot3; sensitivity; 3; r_drawviewmodel 1; viewmodel_fov 90; fov_desired 90; meleexhair"

alias switchdown1 "secondary; bind mwheelup switchup2; bind mwheeldown switchdown2; bind u backswitch2"
alias switchup1 "melee; bind mwheelup switchup3; bind mwheeldown switchdown3; bind u backswitch2"
alias switchdown2 "melee; bind mwheelup switchup3; bind mwheeldown switchdown3; bind u backswitch2"
alias switchup2 "primary; bind mwheelup switchup1; bind mwheeldown switchdown1; bind u backswitch1"
alias switchdown3 "primary; bind mwheelup switchup1; bind mwheeldown switchdown1; bind u backswitch1"
alias switchup3 "secondary; bind mwheelup switchup2; bind mwheeldown switchdown2 bind u backswitch2"

alias backswitch2 "primary; bind mwheelup switchup1; bind mwheeldown switchdown1; bind u backswitch1"
alias backswitch1 "secondary; bind mwheelup switchup3; bind mwheeldown switchdown3; bind u backswitch2"

alias switch1 "primary; bind mwheelup switchup1; bind mwheeldown switchdown1; bind u backswitch1"
alias switch2 "secondary; bind mwheelup switchup2; bind mwheeldown switchdown2; bind u backswitch2"
alias switch3 "melee; bind mwheelup switchup3; bind mwheeldown switchdown3; bind u backswitch2"

// This scripts allows you to switch your weapons with your scroll wheel but you can also use 1, 2, 3. If you are playing engineer or spy it does not account for the extra weapons so you will have to use the number keys to change to the sapper and build/destroy menus.
// If you play engineer quite a bit I highly recommend a quick build/destroy script. I'll post mine at the end of this section of the guide.

bind mwheelup switchup1
bind mwheeldown switchdown1
bind 1 switch1
bind 2 switch2
bind 3 switch3
bind 4 "slot4; r_drawviewmodel 1"
bind 5 "slot5; r_drawviewmodel 1"

// To have the crosshair be default you need to make a new cfg file named what ever you want such as "defaultcrosshair.cfg" Put this into it "cl_crosshair_file "" ; cl_crosshair_scale 35; cl_crosshair_green 200; cl_crosshair_red 200; cl_crosshair_blue 200"
// Then go to your class cfg and where it says primaryxhair, secondaryxhair, or meleexhair take everything in the quotation marks and put exec defaultcrosshair.cfg. (or what ever you put that crosshair into)
// To have all of your crosshairs be default but different colors, sizes, etc. You need to make 2 more files to put your default values in such as "defaultcrosshair2.cfg" and "defaultcrosshair3.cfg". Put the above information about default crosshairs into these but change the colors and sizes to your likeing.

Posts

None found

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

bSun
TheS4rr
Designer

Submitter

TheS4rr avatar
TheS4rr Offline
Member Joined 3mo

TheS4rr
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Stats

Posts
0
Views
952
Date Added
3mo

Scores

  • Not yet rated
Sign up to access this!
bcp.crwdcntrl.net tracking pixel