PDA

View Full Version : TFC crosshair txt files


Paft
10-26-2008, 03:10 PM
It's been a while and my memory doesn't serve me well so need your help.

I am trying to use a crosshair for melee weapons. Taking any crosshair from the original crosshairs.spr. It doesn't matter which because I've edited it so it's the same xhair for all.


so example:
taking the sprite locations from tf_weapon_rpg

crosshair 320 crosshairs 24 48 24 24
crosshair 640 crosshairs 24 48 24 24
and putting it in tf_weapon_axe doesn't work. Nothing shows up in-game.

But doing a separate sprite file for the xhair works. What am I forgetting?

Zuljin
10-27-2008, 12:54 AM
I think by default there were no crosshairs for the crowbar. If you had to add the two crosshair lines (for 320 and 640), then you probably need to add 2 to the number on the first line. The first number is the number of entries in that tf_weapon_axe file.

This is my tf_weapon_axe

8
weapon 320 320hud1 0 0 80 20
weapon_s 320 320hud1 0 20 80 20
crosshair 320 crosshairs 24 0 24 24
autoaim 320 crosshairs 0 72 24 24
weapon 640 640hud1 0 0 170 45
weapon_s 640 640hud4 0 0 170 45
crosshair 640 crosshairs 24 0 24 24
autoaim 640 crosshairs 0 72 24 24


I'm not sure why doing a separate sprite file for the crosshair works. Let me know if it still doesn't work (or if you already did this).

Paft
10-27-2008, 01:24 AM
Thank you. You help figure out the problem.

It was the number on the top line. The default axe.txt is 4, I swapped it to 8 and now the crosshair shows. I don't know what that number is for though?

Zuljin
10-27-2008, 01:27 AM
Thank you. You help figure out the problem.

It was the number on the top line. The default axe.txt is 4, I swapped it to 8 and now the crosshair shows. I don't know what that number is for though?

It's the number of entries in the file.

Paft
10-27-2008, 01:28 AM
Ah... ;)

Thanks.

Paft
10-27-2008, 01:38 AM
Shit sake! You explained that. Sorry, it's 1:35 so completely brain dead.