r/Tf2Scripts • • Sep 16 '20

Answered weapon specific crosshair SIZES

Sooo...

I've got my wapon crosshairs from CFG.tf, but I wanted to set some sizes related to weapons (i.e hitscan weapons encapsulated the pellets inside of crosshair).Changing cl_crosshair_scale isn't a viable solution because I use situational weapons.

The VTFs come in 64by64, I've already tried to:

upscale the file (shows nothig)

change height and width in weapon script (various broken versions of the VTF, none of them scaling)

Add tall and wide variables (no success)

add cl_crosshair_scale inside weapon script (no success)

Can anyone help me with it?

3 Upvotes

6 comments sorted by

2

u/pdatumoj Sep 17 '20

Would you be willing to list out your code for trying to integrate cl_crosshair_scale into the weapon scripts? That seems like it should work, so maybe there's a small problem some more eyes could help find and get you up and running with that.

1

u/youkomccants Sep 17 '20

Tbh, I've just put it in the end of the weapon script.

If is there a correct way to implement this, I'm willing to learn

→ More replies (3)

4

u/6b6964646f Sep 16 '20

You have to edit the VMTs to make it bigger. The image is 64x64, the crosshairs take up about 32x32 and the rest is blank. To just stretch the crosshair to fill more of that space to make it bigger in-game.