- Joined
- Aug 1, 2023
- Messages
- 52
The attached map demos how to draw colored lines by abusing the splats\lightningdata.slk. It is filled with rows like [c0, textures, white.blp, 1, 1, 255, 0, 0, 255, 0, 0, 0, 0] for each color and line width combination. The splats\lightningdata.slk in the map uses these 216 colors, 5 different line widths, for a total of 1080 rows. The drawing then is just calling AddLightningEx with the appropriate lightning data name (c0 .. c1079).
lightnings seem to use some strange blending mode for their drawing. Colors like F00 (same as FF0000(red)) are drawn with slight transparency, the color 900 is more transparent, 300 even more, and 000 (black) is fully invisible. So the available colors are less than 216.
lightnings seem to use some strange blending mode for their drawing. Colors like F00 (same as FF0000(red)) are drawn with slight transparency, the color 900 is more transparent, 300 even more, and 000 (black) is fully invisible. So the available colors are less than 216.