|
|||||||||||||||||||||||||||
Download
Mach 3's
Sprite Viewer: sprview.zip
33k
Thanks to David Flor at Mach
3 for adding functions to his sprite viewer for editing. Download this
file to edit the sprites that are in Half-Life.
Some important things to remember: Sprite sizes need to be multiples of 8. Multiple frames need to share the same 256 color palette. There are 4 types of $texture settings for sprites: additive, alphatest, indexalpha, and normal. Check below in Advanced Topics for more information on these. Alphatest Tutorial
1 > After you've extracted crosshairs.spr out of the pak file, open it up with the sprite viewer. Double-click the .spr file and when Windows asks what you want to open it with, browse to the SprView.exe and choose that. 2 > Save it by choosing 'File' then 'Save BMP...' and name it crosshairs.bmp. 3 > Open it in a paint program like Photoshop
or Paint Shop Pro. You can edit them but each crosshair can't be larger
than 24x24 pixels and the crossbow zoom can't be larger than 104x16 pixels.
If you want to add a few new colors you'll have to add them to the palette.
In Photoshop choose 'Image', 'Mode' and 'Color Table'. Click on the squares
and select a color. In Paint Shop Pro choose 'Colors' and 'Edit Palette'.
Double-click on a square and choose a color. This is helpful for changing
a few colors, but if you were going to use alot more colors, then just
change to RGB or 16 Million Colors and edit the picture. When you're done,
change it back to 256 colors and make sure you have the transparent color
in the last square of the palette. Save it when you're done editing.
4 > Set up the sprite.qc and compile it by
running sprite.bat. The included .zip has the .qc file ready to go for
you:
$spritename is the filename. It will be compiled
into crosshairs.spr
5 > Create a folder half-life\valve\sprites
and copy crosshairs.spr to it and you're done.
Additive Tutorial
1 > After you've extracted 640_pain.spr out of the pak file, open it up with the sprite viewer. 2 > Save it by choosing 'File' then 'Save sequence...' and name it 640_pain.bmp. It will save all 4 frames as 640_pain00x.bmp 3 > Open them in a paint program. Paint something
new, change the colors and resize them. If you're changing color, then
just change to RGB or 16 Million Colors and edit the picture. When you're
done, change it back to 256 colors. All frames must use the same palette,
and paint programs usually have a way to save and load the palette. When
you're done editing, save them.
4 > Set up the sprite.qc and compile it by
running sprite.bat. This is how the .qc file is already set up, but you
can change it:
5 > Copy 640_pain.spr to the half-life\valve\sprites
folder and you're done.
|