x
ETF2L is looking for new Staff to recruit! Are you interested in supporting the league? Then click here for more details on what we can offer and how to apply! 

Forum

tf2 script help

Created 27th April 2009 @ 15:03

Add A Reply Pages: 1

Meyer

IsF
G9

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?

Rele

are you a 1,2,3 guy or do you use the mwheel for weapon switching?

Meyer

IsF
G9

im a 1,2,3 and Q guy :)

Pedman

sextant

Iam a sexy guy !

Rele

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

LETIshNick

eehq

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.

FrEaK `-.*'

bind w “say Good Bye;wait 30; exit” *joke*

Meyer

IsF
G9

Thx!

Add A Reply Pages: 1