Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

Difference between revisions of "DP TE CUSTOMFLASH"

From Quake Wiki

(New page: Builtin definitions: <pre> void(vector org, float radius, float lifetime, vector color) te_customflash = #417; </pre> Temp entity definitions: <pre> float TE_CUSTOMFLASH = 73; </pre> pro...)
 
 
Line 20: Line 20:
  
 
Creates a customized light flash.
 
Creates a customized light flash.
 +
[[Category:DarkPlaces]]

Latest revision as of 02:24, 25 March 2013

Builtin definitions:

void(vector org, float radius, float lifetime, vector color) te_customflash = #417;

Temp entity definitions:

float TE_CUSTOMFLASH = 73;

protocol:

vector origin
byte radius ((MSG_ReadByte() + 1) * 8, meaning 8-2048 unit radius)
byte lifetime ((MSG_ReadByte() + 1) / 256.0, meaning approximately 0-1 second lifetime)
byte red (0.0 to 1.0 converted to 0-255)
byte green (0.0 to 1.0 converted to 0-255)
byte blue (0.0 to 1.0 converted to 0-255)

Creates a customized light flash.