DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
CarLightBase.c
См. документацию.
1
3{
4 // What follows are just default light parameters which are overwriten down in the hierarchy in constructors.
5 // 'Segregated' means value for a light source that consists of 1 bulb (ex.: when 1 of 2 headlights are destroyed)
6 // '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)
7 // Aggregating lights saves a lot of performance
8
13
15 float m_AggregatedRadius = 100;
16 float m_AggregatedAngle = 100;
18
20
22 {
23 SetVisibleDuringDaylight(true);
24 SetCastShadow(true);
25 SetFlareVisible(true);
26 FadeIn(0.3);
27 SetFadeOutTime(0.25);
28 }
29
31 {
32 m_LightProfile = profile;
33 }
34
36 {
38 SetRadiusTo(m_AggregatedRadius);
39 SetSpotLightAngle(m_AggregatedAngle);
40 SetBrightnessTo(m_AggregatedBrightness);
43 SetFlareVisible(false);
44 }
45
47 {
49 {
50 SetRadiusTo(m_LightProfile.m_SegregatedRadius);
51 SetSpotLightAngle(m_LightProfile.m_SegregatedAngle);
52 SetBrightnessTo(m_LightProfile.m_SegregatedBrightness);
53 vector color = m_LightProfile.m_SegregatedColorRGB;
54 SetAmbientColor(color[0], color[1], color[2]);
55 SetDiffuseColor(color[0], color[1], color[2]);
56 SetFlareVisible(true);
57
58 return;
59 }
60
62 SetRadiusTo(m_SegregatedRadius);
63 SetSpotLightAngle(m_SegregatedAngle);
64 SetBrightnessTo(m_SegregatedBrightness);
67 SetFlareVisible(true);
68 }
69}
void SetLightProfile(notnull VehicleLightProfileBase profile)
Определения CarLightBase.c:30
VehicleLightProfileBase m_LightProfile
Определения CarLightBase.c:19
vector m_AggregatedColorRGB
Определения CarLightBase.c:17
float m_SegregatedAngle
Определения CarLightBase.c:11
float m_AggregatedRadius
Определения CarLightBase.c:15
void CarLightBase()
Определения CarLightBase.c:21
float m_AggregatedAngle
Определения CarLightBase.c:16
vector m_SegregatedColorRGB
Определения CarLightBase.c:12
float m_SegregatedBrightness
Определения CarLightBase.c:9
float m_AggregatedBrightness
Определения CarLightBase.c:14
void AggregateLight()
Определения CarLightBase.c:35
float m_SegregatedRadius
Определения CarLightBase.c:10
void SegregateLight()
Определения CarLightBase.c:46
Определения CarLightBase.c:3
Base class for vehicle light profiles - all changeble parameters goes here.
Определения VehicleLightProfileBase.c:3
Определения EnConvert.c:119
proto native vector Vector(float x, float y, float z)
Vector constructor from components.