Check out Half-Life Re-imagined competition results!
Check out Skewing textures in Hammer, our newest tutorial!
Welcome, savvaisnotagirl, our newest member!

logo

Site Stuff

Reference

Maps

Community

ShoutBOX

Poll

Feeling Blue

What's your favourite shade of blue?

Azure

11

Cobalt

25

Turquoise

7

Cyan

9

Royal

5

Teal

3

Onliners

4 mins

Unq

8 mins

SourceSkyBoxer

9 mins

Trempler

16 mins

Dr. Orange

18 mins

Windawz

21 mins

23-down

29 mins

Bacsu

Affiliates

A gaming and technology blog by TWHL admins Penguinboy and Ant. A music blog by TWHL users Ant and Hugh.

Stand Still, You Sprite! (or: How to Fix Sprites' Axes)

By hazardous!

1st step:
Open your HEX-editor. (If you don't have one, Christian Maas has produced a good freeware one: http://www.chmaas.handshake.de)


2nd step:
In the editor, open the sprite you want to fix the axis of. Don't use the default Half-Life sprites as this could cause problems.
I am using "gordon.spr".




3rd step:
Search for the 8th byte. It's default value is "02".



Change the value. ("00" - "03")
"00" fixes the Z axis only - like an env_beam. view ingame picture
"01" does something strange, don't use it at all. view ingame picture
"02" fixes none of the axis - the sprite will be seen from the front. view ingame picture
"03" fixes the X, Y and the Z axis - the sprite stands there like a wall. view ingame picture


Here, I want to fix all 3 axis.




4th step:
Save the sprite and use it like every other sprite.
With the "angles" key you can even rotate the sprite.



Tip: When you use sprites with an 8th byte's value of "03" you must pay attention! If you want to rotate this sprite around its Z-axis (top-down) only, set the values for Y- and X- rotation to "0.1". If you don't, the sprite will be rotated around its X-axis ingame, even if the VHE displays the sprite correctly.

Downloads:
download this tutorial (including all pics): sprfixtut.zip (88kb)
download the sample map (including all sprites): sprfixmap.zip (120kb)

Contact the author: hazardous!