Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
carlightbase.c
Go to the documentation of this file.
2{
3 // What follows are just default light parameters which are overwriten down in the hierarchy in constructors.
4 // 'Segregated' means value for a light source that consists of 1 bulb (ex.: when 1 of 2 headlights are destroyed)
5 // 'Aggregated' means value for 1 light source that consists of 2 bulbs (ex.: when both headlights are shining, or brake & reverse lights are shining at once)
6 // Aggregating lights saves a lot of performance
7
12
14 float m_AggregatedRadius = 100;
15 float m_AggregatedAngle = 100;
17
19 {
20 SetVisibleDuringDaylight(true);
21 SetCastShadow(true);
22 SetFlareVisible(true);
23 FadeIn(0.3);
24 SetFadeOutTime(0.25);
25
26 }
27
29 {
30 SetRadiusTo(m_AggregatedRadius);
31 SetSpotLightAngle(m_AggregatedAngle);
32 SetBrightnessTo(m_AggregatedBrightness);
35 SetFlareVisible(false);
36 }
37
39 {
40 SetRadiusTo(m_SegregatedRadius);
41 SetSpotLightAngle(m_SegregatedAngle);
42 SetBrightnessTo(m_SegregatedBrightness);
45 SetFlareVisible(true);
46 }
47}
void SegregateLight()
float m_AggregatedAngle
float m_SegregatedRadius
Definition carlightbase.c:9
void AggregateLight()
void CarLightBase()
float m_SegregatedBrightness
Definition carlightbase.c:8
vector m_SegregatedColorRGB
vector m_AggregatedColorRGB
float m_SegregatedAngle
float m_AggregatedRadius
float m_AggregatedBrightness
proto native vector Vector(float x, float y, float z)
Vector constructor from components.