Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Difference between revisions of "How to edit real-time lights in FTEQW?"
From Quake Wiki
(How to generate a colored light from QuakeC in FTEQW) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | To generate a custom | + | To generate a custom colored light around an edict (self) use: |
+ | |||
+ | |||
+ | self.pflags = 2 (for glow on edict and models around it) or 128 (for glow on edict and all around it, models and brushes); | ||
+ | |||
+ | self.color = 'R G B'; (the components' magnitudes give the corresponding color's intensity) | ||
+ | |||
+ | self.light_lev = radius; | ||
− | |||
− | |||
− | |||
If you want the glow to vary, set | If you want the glow to vary, set | ||
Line 10: | Line 14: | ||
For a custom variation choose n > 11 to not override lower values, which are already in use, and assign to n the variation you want by calling lightstyle(n, [string]); characters in the string encode luminosity in ascending order, 'a' being no luminosity, 'm' being default luminosity, and 'z' being max luminosity. | For a custom variation choose n > 11 to not override lower values, which are already in use, and assign to n the variation you want by calling lightstyle(n, [string]); characters in the string encode luminosity in ascending order, 'a' being no luminosity, 'm' being default luminosity, and 'z' being max luminosity. | ||
+ | |||
+ | Note: Values for n ranging from 32 to 62 should be avoided as that range is reserved for assignments to switchable lights. |
Latest revision as of 20:30, 3 December 2022
To generate a custom colored light around an edict (self) use:
self.pflags = 2 (for glow on edict and models around it) or 128 (for glow on edict and all around it, models and brushes);
self.color = 'R G B'; (the components' magnitudes give the corresponding color's intensity)
self.light_lev = radius;
If you want the glow to vary, set
self.style = n;
For a custom variation choose n > 11 to not override lower values, which are already in use, and assign to n the variation you want by calling lightstyle(n, [string]); characters in the string encode luminosity in ascending order, 'a' being no luminosity, 'm' being default luminosity, and 'z' being max luminosity.
Note: Values for n ranging from 32 to 62 should be avoided as that range is reserved for assignments to switchable lights.