VERC: Stand Still, You Sprite! (or: How to Fix Sprites' Axes) Last edited 20 years ago2003-10-11 03:11:00 UTC

You are viewing an older revision of this wiki page. The current revision may be more detailed and up-to-date. Click here to see the current revision of this page.

This article was recovered from an archive and needs to be reviewed

  1. The formatting may be incorrect as it was automatically converted to WikiCode from HTML, it needs to be revised and reformatted
  2. Some information may be out of date as it was written before Half-Life was available on Steam
  3. After the article is re-formatted and updated for Steam HL, remove this notice
  4. Please do not remove the archive notice from the bottom of the article.
  5. Some archive articles are no longer useful, or they duplicate information from other tutorials and entity guides. In this case, delete the page after merging any relevant information into other pages. Contact an admin to delete a page.
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 (Link: 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".
HELP00.PNGHELP00.PNG
3rd step:

Search for the 8th byte. It's default value is "02".
HELP01.PNGHELP01.PNG
Change the value. ("00" - "03")

"00" fixes the Z axis only - like an env_beam. view ingame picture (Link: ingame_00.jpg)

"01" does something strange, don't use it at all. view ingame picture (Link: ingame_01.jpg)

"02" fixes none of the axis - the sprite will be seen from the front. view ingame picture (Link: ingame_02.jpg)

"03" fixes the X, Y and the Z axis - the sprite stands there like a wall. view ingame picture (Link: ingame_03.jpg)

Here, I want to fix all 3 axis.
HELP02.PNGHELP02.PNG
4th step:

Save the sprite and use it like every other sprite.

With the "angles" key you can even rotate the sprite.
HELP03.JPGHELP03.JPG
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) (Link: sprfixtut.zip)

download the sample map (including all sprites): sprfixmap.zip (120kb) (Link: sprfixmap.zip)

Contact the author: hazardous! (Link: hazman-at-gmx.net)
This article was originally published on the Valve Editing Resource Collective (VERC).
TWHL only archives articles from defunct websites. For more information on TWHL's archiving efforts, please visit the TWHL Archiving Project page.

Comments

You must log in to post a comment. You can login or register a new account.