The format of the client's
hud.txt file (also for weapon files)is this:
<entry number>
<icon name> <size> <sprite file> <X co-ord> <Y co-ord> <width> <height>
The
entry number tells the client DLL how many entries to read into
memory. So, if you add any more entries, you
Must increment the current
number or it will not work.
sprite file is the naturally the sprite file that the icon is located
and to be read from. The
.spr extension is not needed.
size is either 320 (for low resolutions) or 640 (for higher resolutions).
I believe that anything above 800x600 screen resolutions will use the 640 size.
The X and Y co-ordinates are plotted from the upper left hand corner of
the BMP file that the sprite is made from. The game reads the
widthnumber of pixels from left to right, starting from the X co-ordinate.
It reads the
height number of pixels from top to bottom starting
from the Y co-ordinate. Whatever is in that bounding box in the sprite
file will be displayed on the client's screen.