CTEDynamicLight: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
| style="width: 50%;" |'''m_vecOrigin''' | | style="width: 50%;" |'''m_vecOrigin''' | ||
| style="width: 15%;" |Vector | | style="width: 15%;" |Vector | ||
| style="width: 35%;" | | | style="width: 35%;" |The origin of the light | ||
|- | |- | ||
| style="width: 50%;" |'''r''' | | style="width: 50%;" |'''r''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | | style="width: 35%;" |The red value | ||
|- | |- | ||
| style="width: 50%;" |'''g''' | | style="width: 50%;" |'''g''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | | style="width: 35%;" |The green value | ||
|- | |- | ||
| style="width: 50%;" |'''b''' | | style="width: 50%;" |'''b''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | | style="width: 35%;" |The blue value | ||
|- | |- | ||
| style="width: 50%;" |'''exponent''' | | style="width: 50%;" |'''exponent''' | ||
| style="width: 15%;" |Integer | | style="width: 15%;" |Integer | ||
| style="width: 35%;" | | | style="width: 35%;" |The brightness. 1 - 10 is a good range, past around the 20 mark the light begins to cease to function properly. | ||
|- | |- | ||
| style="width: 50%;" |'''m_fRadius''' | | style="width: 50%;" |'''m_fRadius''' | ||
| style="width: 15%;" |Float | | style="width: 15%;" |Float | ||
| style="width: 35%;" | | | style="width: 35%;" |The radius or range in Hammer Units that the light casts | ||
|- | |- | ||
| style="width: 50%;" |'''m_fTime''' | | style="width: 50%;" |'''m_fTime''' | ||
| style="width: 15%;" |Float | | style="width: 15%;" |Float | ||
| style="width: 35%;" | | | style="width: 35%;" |How long in seconds this light will remain on | ||
|- | |- | ||
| style="width: 50%;" |'''m_fDecay''' | | style="width: 50%;" |'''m_fDecay''' | ||
| style="width: 15%;" |Float | | style="width: 15%;" |Float | ||
| style="width: 35%;" | | | style="width: 35%;" |How fast should this light fade away (does not interact with or consider m_fTime). Specifying a negative value does not make the light "grow" | ||
|} | |} |
Revision as of 02:43, 24 November 2022
Overview
...
Source location : /game/server/te_dynamiclight.cpp
Class Structure
- CBaseTempEntity
- CTEDynamicLight
SendProps
Name | Type | Description |
---|---|---|
m_vecOrigin | Vector | The origin of the light |
r | Integer | The red value |
g | Integer | The green value |
b | Integer | The blue value |
exponent | Integer | The brightness. 1 - 10 is a good range, past around the 20 mark the light begins to cease to function properly. |
m_fRadius | Float | The radius or range in Hammer Units that the light casts |
m_fTime | Float | How long in seconds this light will remain on |
m_fDecay | Float | How fast should this light fade away (does not interact with or consider m_fTime). Specifying a negative value does not make the light "grow" |