General Half-Life 2/Entities
description
A handy entity for tweaking the shadows cast in your map.
keywords
shadow, control, shadow_control.
This tutorial covers how to control your map's dynamic shadows using the shadow_control entity. If your dynamic shadows (shadows from props) aren't working, this will PROBABLY fix it, if used properly. This tutorial assumes you have a basic knowledge of entities, and how to use them.
First, select the entity tool, and find shadow_control.
Insert this anywhere you like in your map. With the shadow_control selected, press ALT+enter to bring up its properties.
There are several key properties you need to set:
Pitch Yaw Roll (Y Z X) angles shadow is cast from your props(string) - default: 80 30 0
This is the shadow direction. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, and roll is the rotation around the X axis.
Shadow Color color(color255) - default: 128 128 128
This is the color of the shadows. More than this kinda looks fake-like, depending on your maps lighting.
Maximum Distance distance(float) - default: 75
This is the maximum distance the shadow is allowed to cast, in inches. if you hold the prop higher above the ground than this value, the shadow will fade out and not be drawn, until the prop is close enough to a surface to cast a shadow again.
Compile, check it, and if it needs tweaking, tweak it!
- ishbog





