VERC: Better Sprites With Env_Beam Last edited 15 years ago2003-03-29 16:22:00 UTC by Penguinboy Penguinboy

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.
I'll start of with a graphic example. Imagine our dramatic industry map has some steam vents, like pictured below:
comparegood.jpgcomparegood.jpg
As the player inches towards the vents, the hiss of the steam fills his ears. Upon looking from an upward angle at the vents, they look like this:
comparebad.jpgcomparebad.jpg
See that vent on the right? Has that happened to you? Yeah, happened to me too. Seems those darn sprites always face the player... and quite frankly, that?s only good for circular shaped sprites, not sprites that have to come from and go to a certain spot. Luckily, you can make sprites that don't turn on the vertical axis (like the vent on the left) and take advantage of some other wonderful features of the env_beam entity at the same time.

Prerequisite: The env_beam entity

Ok, for most of this to go off as smoothly as possible, I'm going to explain some things to those of you that are new to the env_beam. Those who are familiar with the entity may safely skip this section.

An env_beam is an entity that draws a beam between two points. You make the start and end points, usually info_targets for something like steam. Then you make the env_beam, which you set to use those targets as its start and end points. The beam itself is what is rendered in-between these points.

How it Works:

We have established that an env_beam renders a beam between two points. Now here comes the magic: the game can generate a beam to display, or you can supply it with a sprite to use. And since the top and bottom of the beam are anchored at these two points, the sprite is as well.

How To Make Smoke:

Ok, you will need three entities for this: Name one of the info_targets smoke_top and the other smoke_bottom . Now in the env_beam, add smoke_top as the starting point (don't worry, the smoke will still travel upward), and smoke_bottom as the ending point. You should end up with something similar to this:
entsetup.jpgentsetup.jpg
In the env_beam, you need to set some more things up: Now, in the flags section check start on and shade start . The latter key will make the smoke fade at the top, really enhancing the effect.

Closing Remarks/Files

Alright, now you know the basics for making sprites with env_beams. Play with it a bit, you may surprise yourself with what you can find. For reference, the Collective entity guide on env_beam can be found here (Link: index.php?ent=env_beam&game=hl) .

I have included an example RMF (Link: sprite.zip) for you to look through. It has an env_beam sprite and a normal sprite, for comparison purposes.
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.