RAD file (GoldSrc)
Jump to navigation
Jump to search

Deprecated:Use info_texlights instead. Alternatively, light_surface can be used, providing more options.


See also: Category:RAD

A RAD file is a plain text file that can be used to manipulate the way QRAD, HLRAD, and VRAD handle given brush textures when compiling static lighting. They must have the .rad
extension and must be in the same folder as the map compile tools, except for <mapname>.rad
()
There are:
- lights.rad, the global file.
- An auto-loaded map light file, using the format
<mapname>.rad
. The file must be placed in the same folder as<mapname>.rad
()
- Any number of additional lights files that can be added with the -lights parameter.
All RAD files must have the .rad file extension and must be in the same folder as the map compile tools, except for <mapname>.rad, which should be in the same folder as the uncompiled MAP.
Rules
- <texture> <red> <green> <blue> <intensity>
- Defines a texlight, makes the texture appear to emit the given light value when applied to a brush face, as well as make the face glow this color. Texture scale has an effect on final intensity. If intensity is set to 1, then the face will appear to glow without emitting any significant amount of light.
Important:In VHLT, RAD lights with color set to 255 255 255 will use the average color of the texture instead of white.
- // <comment>
- Denotes an end-of-line comment. Anything after the two slashes will be ignored by HLRAD.
- (Added in ZHLT v2.1; not available in QRAD.)