DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
VehicleLightBase.c
См. документацию.
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
9
11 {
12 SetVisibleDuringDaylight(true);
13 SetCastShadow(true);
14 SetFlareVisible(true);
15 FadeIn(0.3);
16 SetFadeOutTime(0.25);
17
19 }
20
22 {
23 m_LightProfile = profile;
24 }
25
27 {
29 {
30 m_LightProfile.ApplyAggregatedValues();
31
32 SetRadiusTo(m_LightProfile.m_AggregatedRadius);
33 SetSpotLightAngle(m_LightProfile.m_AggregatedAngle);
34 SetBrightnessTo(m_LightProfile.m_AggregatedBrightness);
35 vector color = m_LightProfile.m_AggregatedColorRGB;
36 SetAmbientColor(color[0], color[1], color[2]);
37 SetDiffuseColor(color[0], color[1], color[2]);
38 SetFlareVisible(m_LightProfile.m_FlaresVisible);
39 }
40 }
41
43 {
45 {
46 SetRadiusTo(m_LightProfile.m_SegregatedRadius);
47 SetSpotLightAngle(m_LightProfile.m_SegregatedAngle);
48 SetBrightnessTo(m_LightProfile.m_SegregatedBrightness);
49 vector color = m_LightProfile.m_SegregatedColorRGB;
50 SetAmbientColor(color[0], color[1], color[2]);
51 SetDiffuseColor(color[0], color[1], color[2]);
52 SetFlareVisible(m_LightProfile.m_FlaresVisible);
53 }
54 }
55
57 {
59 {
60 SetRadiusTo(m_LightProfile.m_SegregatedBrakeRadius);
61 SetSpotLightAngle(m_LightProfile.m_SegregatedBrakeAngle);
62 SetBrightnessTo(m_LightProfile.m_SegregatedBrakeBrightness);
63 vector color = m_LightProfile.m_SegregatedBrakeColorRGB;
64 SetAmbientColor(color[0], color[1], color[2]);
65 SetDiffuseColor(color[0], color[1], color[2]);
66 SetFadeOutTime(m_LightProfile.m_FadeOutTime);
67 SetFlareVisible(m_LightProfile.m_FlaresVisible);
68 }
69 }
70
72 {
74 {
75 SetRadiusTo(m_LightProfile.m_SegregatedRadius);
76 SetSpotLightAngle(m_LightProfile.m_SegregatedAngle);
77 SetBrightnessTo(m_LightProfile.m_SegregatedBrightness);
78 vector color = m_LightProfile.m_SegregatedColorRGB;
79 SetAmbientColor(color[0], color[1], color[2]);
80 SetDiffuseColor(color[0], color[1], color[2]);
81 SetFadeOutTime(m_LightProfile.m_FadeOutTime);
82 SetFlareVisible(m_LightProfile.m_FlaresVisible);
83 }
84 }
85
86}
Определения CarLightBase.c:3
void SegregateLight()
Определения VehicleLightBase.c:42
VehicleLightProfileBase m_LightProfile
Определения VehicleLightBase.c:8
void AggregateLight()
Определения VehicleLightBase.c:26
void SetAsSegregatedBrakeLight()
Определения VehicleLightBase.c:56
void VehicleLightBase()
Определения VehicleLightBase.c:10
void SetLightProfile(notnull VehicleLightProfileBase profile)
Определения VehicleLightBase.c:21
void SetAsSegregatedReverseLight()
Определения VehicleLightBase.c:71
Base class for vehicle light profiles - all changeble parameters goes here.
Определения VehicleLightProfileBase.c:3
Определения EnConvert.c:119