Xhair sorted but help please


05-05-2003, 03:24 PM
Hi all, ive been messing around with the cross hair sprite and a text file which I believe now changes the available area. (I am a noob at this but I hope the info below might help)

I found that in the file hud.txt in C:\SIERRA\Half-Life\dod\sprites, there are references to cross hair dimensions.
Below is the extract from the original file:

cross_style_1_mid 640 dodcross 0 24 24 24
cross_style_1_outer 640 dodcross 0 0 24 24
cross_style_2_horiz 640 dodcross 36 0 10 3
cross_style_2_vert 640 dodcross 24 0 3 10
cross_style_2_dot 640 dodcross 24 12 3 3


Ive changed a couple of the parameters and this allowed me to make wider horizontal cross hairs.
Below is my changed version:

cross_style_1_mid 640 dodcross 0 24 24 24
cross_style_1_outer 640 dodcross 0 0 24 24
cross_style_2_horiz 640 dodcross 36 0 9 9
cross_style_2_vert 640 dodcross 24 0 3 10
cross_style_2_dot 640 dodcross 24 12 3 3

**I only needed to make the horizontal line wider for my cross hair but editing the last 2 numbers
on cross_style_2_horiz and cross_style_2_vert you can alter the viewing area**

Here is a screen shot of the changes made:
http://www.a7division.pwp.blueyonder.co.uk/DoD/xhair.jpg
This is my modded sprite:
http://www.a7division.pwp.blueyonder.co.uk/DoD/dodcross.spr
BMP version of the sprite:
http://www.a7division.pwp.blueyonder.co.uk/DoD/test.bmp
Copy of my hud.txt file:
http://www.a7division.pwp.blueyonder.co.uk/DoD/hud.txt

This has sorted out what I needed but I wonder if anyone could help me with my sprite. I dont know how to convert it ,keep the correct colours and also have transparncy. At the moment Im using SprWiz.exe to convert with IndexAlpha so the crosshair comes out white but transparent.

Any help would be great

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.