cleveridiot.com » the clever bit » the games we play
 Print Thread
Scripters and configwriters, help!
Exxy
I've been spending a while now in the morning trying to make a config for scout and sniper so it switches crosshair when I switch weapons, but I just keep failing, even though I follow every guide I have and use the templates that I find on ETF2L.

So I am asking to you people who might have a working script to share it, alt. help me write the script I need.

For sniper:

Sniper rifle - No crosshair
Machine gun - Cross
Kukri - Cross


For scout:

Scatter/FaN - The default one
Pistol - Cross
Bat - Cross


I appriciate any help that I can get :]


p.s. Also, a script that enables r_drawviewmodel 0 on scatter/FaN together with the crosshair changing would be awesome. :3
 
Exxy
Nevermind, I managed to find a script that works, however, I need some help with the script I have.

Pretty much, I want the default crosshair for my scoutscript, but writing:

cl_crosshair_file " "

Doesn't work :<
 
spaceboy
My configs basically do all that you were asking previously EXCEPT using the default crosshair which is now the only thing you need to know tmi I've tried making a config for default before, for movie making and it's never seemed to work properly for some reason :<
Behold the wondrous return of Sheriff Pony!
 
Mike
I couldn't find a crosshair-less sniper rifle config, so I just bound "crosshair 0" to my side mouse button when I want to use the sniper rifle and add crosshair 1 to the last weapon and weapon slot keys.

I wish they'd get rid the sniper crosshair completely, just like it was before the crosshair update...
 
Leif
Why would you not want a crosshair with the sniper rifle Pfft?
 
spaceboy
Cos these snipers do like to show off Grin
Behold the wondrous return of Sheriff Pony!
 
Exxy
I prefer it without because the center of the dot and the center of the crosshair doesn't match. The dot is slightly more accurate than the crosshair.

Thus No cross > Cross
 
sick-lizard
http://www.teamfortress2fort.com/foru...20167.aspx

Quote

Since you can now customize your crosshair style, size, and color I thought "why not share?"

The new commands for crosshairs are:

cl_crosshair_file (crosshair1-7)
cl_crosshair_red (0-255)
cl_crosshair_green (0-255)
cl_crosshair_blue (0-255)
cl_crosshair_scale (16-48)

I've made the following aliases:

Alias "Plus_Dot" "cl_crosshair_file crosshair1"
Alias "Tee_Dot" "cl_crosshair_file crosshair2"
Alias "Circle" "cl_crosshair_file crosshair3"
Alias "Ex" "cl_crosshair_file crosshair4"
Alias "Dot" "cl_crosshair_file crosshair5"
Alias "Plus_No_Dot" "cl_crosshair_file crosshair6"
Alias "Solid_Plus" "cl_crosshair_file crosshair7"

Alias "White" "cl_crosshair_red 255; cl_crosshair_blue 255; cl_crosshair_green 255"
Alias "Grey" "cl_crosshair_red 170; cl_crosshair_blue 170; cl_crosshair_green 170"
Alias "Black" "cl_crosshair_red 0; cl_crosshair_blue 0; cl_crosshair_green 0"
Alias "Red" "cl_crosshair_red 255; cl_crosshair_blue 0; cl_crosshair_green 0"
Alias "Blue" "cl_crosshair_red 0; cl_crosshair_blue 255; cl_crosshair_green 0"
Alias "Green" "cl_crosshair_red 0; cl_crosshair_blue 0; cl_crosshair_green 255"
Alias "Yellow" "cl_crosshair_red 255; cl_crosshair_blue 0; cl_crosshair_green 255"
Alias "Purple" "cl_crosshair_red 255; cl_crosshair_blue 255; cl_crosshair_green 0"
Alias "Teal" "cl_crosshair_red 0; cl_crosshair_blue 255; cl_crosshair_green 255"
Alias "Orange" "cl_crosshair_red 255; cl_crosshair_blue 85; cl_crosshair_green 170"

Alias "Biggest" "cl_crosshair_scale 48"
Alias "Big" "cl_crosshair_scale 40"
Alias "Medium" "cl_crosshair_scale 32"
Alias "Small" "cl_crosshair_scale 24"
Alias "Smallest" "cl_crosshair_scale 16"

So you can share your crosshairs in one of two formats:

Type 1:

Alias "Small_Pink_Circle" "cl_crosshair_file crosshair3; cl_crosshair_red 255; cl_crosshair_blue 160; cl_crosshair_green 160; cl_crosshair_scale 21"
Alias "Large_Green_Plus_Dot" "cl_crosshair_file crosshair1; cl_crosshair_red 0; cl_crosshair_blue 0; cl_crosshair_green 255; cl_crosshair_scale 35"

Type 2:

Alias "Magnum_Xhair" "Dot; Small; Green"
Alias "Minigun_Xhair" "Plus_No_Dot; Biggest; Red"

The colors and sizes provided are adequate but far from complete.

Currently I'm using:

Alias "White_Circle" "Medium; White; Circle"

For everything, but I might start scripting custom crosshairs for different weapons.


I'm having a play with my crosshairs again too Smile
 
Jump to Forum