Forum
tf2 script help
Created 27th April 2009 @ 15:03
Add A Reply Pages: 1
Hi, how do i change the crosshair for each weapon?
like when i hold the scattergun i want to have the normal crosshair and when i have the pistol i want crosshair nr7, how?
are you a 1,2,3 guy or do you use the mwheel for weapon switching?
With 1,2,3 its easy:
Create a new cfg in your team fortress 2/tf/cfg folder with notepad and write the following in it:
cl_crosshair_file “”
Save as defaultcross.cfg (the .cfg is important) and choose “all files” (also important)
In your Scout.cfg:
alias wep1 “slot1; exec defaultcross”
alias wep2 “slot2; cl_crosshair_file crosshair7”
alias wep3 “slot3; exec defaultcross”
bind 1 wep1
bind 2 wep2
bind 3 wep3
You can (and should) edit the other class.cfgs as well with the same stuff as in the scout.cfg (exec defaultcross activates the standard crosshair, cl_crosshair_file crosshairx the custom crosshair of your choice) (if you dont want any custom wep crosshairs for the other classes, just write
bind 1 slot1
bind 2 slot2
bind 3 slot3
into them)
This wont work properly with lastinv (q), that would be a bit more complicated.
Oh, one more thing: If youre going to copy&paste from here, replace the “” from here with your own with the keyboard. notepad doesnt like these from the forums :P
Here’s my soldier.cfg
bind 1 “slot1;r_drawviewmodel 0;cl_crosshair_blue 0;cl_crosshair_file crosshair3;cl_crosshair_green 255; cl_crosshair_red 0; cl_crosshair_scale 28.5”
bind 2 “slot2;r_drawviewmodel 0;cl_crosshair_blue 0;cl_crosshair_file crosshair1;cl_crosshair_green 255; cl_crosshair_red 0; cl_crosshair_scale 28.5”
bind 3 “slot3;r_drawviewmodel 1;cl_crosshair_blue 0;cl_crosshair_file crosshair3;cl_crosshair_green 0; cl_crosshair_red 255; cl_crosshair_scale 28”
alias “slot12” “activate”
alias “activate” “slot1;r_drawviewmodel 0;cl_crosshair_blue 0;cl_crosshair_file crosshair3;cl_crosshair_green 255; cl_crosshair_red 0; cl_crosshair_scale 28.5;alias slot12 deactivate”
alias “deactivate” “slot2;r_drawviewmodel 0;cl_crosshair_blue 0;cl_crosshair_file crosshair1;cl_crosshair_green 255; cl_crosshair_red 0; cl_crosshair_scale 28.5; alias slot12 activate”
bind “q” “slot12”
Q button will switch between rocket launcher and shotgun, you can change r_drawviewmodel to 1 if you want, and change model/color etc.
bind w “say Good Bye;wait 30; exit” *joke*
Add A Reply Pages: 1