I have a question about lighting.  I want to control the color displayed
by a light -- red for low power level, yellow for intermediate power, etc.
I don't see any in-game way to change the brightness (color) of a light
entity,
e.g. no "env_render" for lighting.  Is this doable?  Am I missing something?
I'd like to do this with one light entity, rather than a separate entity
for each color.

I could use TE_DLIGHT, but this looks inefficient -- my code is continuously
checking in-game conditions, setting light color accordingly -- I don't know
in advance how long any given TE_DLIGHT would need to display, so I suppose
that I'd have to call it frequently, for short display intervals, which
seems like
a lot of overhead.

On a related note -- xen_plantlight uses CreateSprite and member variable
to store a sprite for use by the plantlight.  I'm wondering if I could
adapt this technique --
write CreateLight code to create a light entity at run-time, store the
entity as a member variable.

Ideas, anyone? Thanks in advance -

- Karl Jones ... the Handy Vandal


_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to