5.5. Scrolling texture speed

Scrolling textures can be applied to any brush entity, but only func_conveyor contains a property for setting the scroll speed. This template behavior lets you set the scroll speed on any other brush entity by adding a custom scrollspeed property.

The underlying mechanism is that Half-Life stores the scroll speed in the FX Color (rendercolor) property. The format isn't very straightforward however: R determines the scroll direction, and G and B together determine the scroll speed, in increments of 1/16. This template behavior automatically converts the custom scrollspeed value to a properly formatted rendercolor value.


The following global (defined in mess.config) can be used to control this behavior:

global effect
MTL_DISABLE_SCROLLSPEED_PROPERTY = 1 Disablesscrollspeed property handling