Half-Life Re-imagined competition results on their way...
Check out Skewing textures in Hammer, our newest tutorial!
Say hello to MD_AZMAL, our newest member!

logo

Site Stuff

Reference

Maps

Community

ShoutBOX

Poll

Feeling Blue

What's your favourite shade of blue?

Azure

8

Cobalt

18

Turquoise

4

Cyan

8

Royal

3

Teal

3

Onliners

11 mins

789

11 mins

abbadon

19 mins

Windawz

25 mins

Archie

29 mins

Dimbeak

42 mins

Solokiller

1 hours

Dr. Orange

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!