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

Line 1: Line 1:
 
To generate a custom coloreld light around an edict (self) use:
 
To generate a custom coloreld 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.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';
 
self.color = 'R G B';
 +
 
self.light_lev = intensity/radius;
 
self.light_lev = intensity/radius;
 +
 
   
 
   
 
If you want the glow to vary, set
 
If you want the glow to vary, set

Revision as of 20:49, 8 November 2022

To generate a custom coloreld 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';

self.light_lev = intensity/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.