DayZ 1.24
Loading...
Searching...
No Matches
CarLightBase Class Reference
Collaboration diagram for CarLightBase:
[legend]

Private Member Functions

void CarRearLight ()
 
void SetAsSegregatedBrakeLight ()
 
void SetAsSegregatedReverseLight ()
 
void CivilianSedanFrontLight ()
 
void Hatchback_02FrontLight ()
 
void Offroad_02FrontLight ()
 
void OffroadHatchbackFrontLight ()
 
void Sedan_02FrontLight ()
 
void Truck_01FrontLight ()
 

Private Attributes

float m_SegregatedBrakeBrightness = 2
 
float m_SegregatedBrakeRadius = 6
 
float m_SegregatedBrakeAngle = 180
 
vector m_SegregatedBrakeColorRGB = Vector(1, 0.05, 0.05)
 

Detailed Description

Definition at line 1 of file CarRearLightBase.c.

Member Function Documentation

◆ CarRearLight()

void CarLightBase::CarRearLight ( )
inlineprivate

Definition at line 9 of file CarRearLightBase.c.

10 {
11 // These are just some default values which can be overwrittend down in the hierarchy.
12 // Reverse light only
13 m_SegregatedBrightness = 2;
14 m_SegregatedRadius = 10;
15 m_SegregatedAngle = 180;
16 m_SegregatedColorRGB = Vector(1.0, 1.0, 1.0);
17
18 // Brake & Revese lights combined
19 m_AggregatedBrightness = 2.5;
20 m_AggregatedRadius = 12;
21 m_AggregatedAngle = 180;
22 m_AggregatedColorRGB = Vector(1.0, 0.5, 0.5);
23
24 FadeIn(0.1);
25 SetFadeOutTime(0.1);
26 SetVisibleDuringDaylight(false);
27 SetCastShadow(false);
28 SetFlareVisible(false);
29 EnableSpecular(false); // Specular is disabled because it causes ugly shining on cars
30
31 SegregateLight();
32 }
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

References Vector().

◆ CivilianSedanFrontLight()

void CarLightBase::CivilianSedanFrontLight ( )
inlineprivate

Definition at line 3 of file CivilianSedanFrontLight.c.

4 {
5 m_SegregatedBrightness = 5;
6 m_SegregatedRadius = 65;
7 m_SegregatedAngle = 90;
8 m_SegregatedColorRGB = Vector(1.0, 0.8, 0.8);
9
10 m_AggregatedBrightness = 10;
11 m_AggregatedRadius = 80;
12 m_AggregatedAngle = 100;
13 m_AggregatedColorRGB = Vector(1.0, 0.8, 0.8);
14
15 FadeIn(0.3);
16 SetFadeOutTime(0.25);
17
18 SegregateLight();
19 }

References Vector().

◆ Hatchback_02FrontLight()

void CarLightBase::Hatchback_02FrontLight ( )
inlineprivate

Definition at line 3 of file Hatchback_02FrontLight.c.

4 {
5 m_SegregatedBrightness = 6;
6 m_SegregatedRadius = 65;
7 m_SegregatedAngle = 80;
8 m_SegregatedColorRGB = Vector(0.8, 0.8, 1);
9
10 m_AggregatedBrightness = 12;
11 m_AggregatedRadius = 90;
12 m_AggregatedAngle = 90;
13 m_AggregatedColorRGB = Vector(0.8, 0.8, 1);
14
15 FadeIn(0.3);
16 SetFadeOutTime(0.25);
17
18 SegregateLight();
19 }

References Vector().

◆ Offroad_02FrontLight()

void CarLightBase::Offroad_02FrontLight ( )
inlineprivate

Definition at line 3 of file Offroad_02FrontLight.c.

4 {
5 m_SegregatedBrightness = 5;
6 m_SegregatedRadius = 75;
7 m_SegregatedAngle = 90;
8 m_SegregatedColorRGB = Vector(0.85, 0.85, 0.58);
9
10 m_AggregatedBrightness = 10;
11 m_AggregatedRadius = 100;
12 m_AggregatedAngle = 120;
13 m_AggregatedColorRGB = Vector(0.85, 0.85, 0.58);
14
15 FadeIn(0.1);
16 SetFadeOutTime(0.05);
17
18 SegregateLight();
19 }

References Vector().

◆ OffroadHatchbackFrontLight()

void CarLightBase::OffroadHatchbackFrontLight ( )
inlineprivate

Definition at line 3 of file OffroadHatchbackFrontLight.c.

4 {
5 m_SegregatedBrightness = 5;
6 m_SegregatedRadius = 55;
7 m_SegregatedAngle = 110;
8 m_SegregatedColorRGB = Vector(1.0, 0.8, 0.6);
9
10 m_AggregatedBrightness = 10;
11 m_AggregatedRadius = 75;
12 m_AggregatedAngle = 120;
13 m_AggregatedColorRGB = Vector(1.0, 0.8, 0.6);
14
15 FadeIn(0.3);
16 SetFadeOutTime(0.25);
17
18 SegregateLight();
19 }

References Vector().

◆ Sedan_02FrontLight()

void CarLightBase::Sedan_02FrontLight ( )
inlineprivate

Definition at line 3 of file Sedan_02FrontLight.c.

4 {
5 m_SegregatedBrightness = 4;
6 m_SegregatedRadius = 75;
7 m_SegregatedAngle = 90;
8 m_SegregatedColorRGB = Vector(0.95, 0.95, 0.78);
9
10 m_AggregatedBrightness = 8;
11 m_AggregatedRadius = 100;
12 m_AggregatedAngle = 120;
13 m_AggregatedColorRGB = Vector(0.95, 0.95, 0.78);
14
15 FadeIn(0.1);
16 SetFadeOutTime(0.05);
17
18 SegregateLight();
19 }

References Vector().

◆ SetAsSegregatedBrakeLight()

void CarLightBase::SetAsSegregatedBrakeLight ( )
inlineprivate

Definition at line 34 of file CarRearLightBase.c.

35 {
36 SetRadiusTo(m_SegregatedBrakeRadius);
37 SetSpotLightAngle(m_SegregatedBrakeAngle);
38 SetBrightnessTo(m_SegregatedBrakeBrightness);
41 SetFadeOutTime(0.1);
42 SetFlareVisible(false);
43 }
float m_SegregatedBrakeAngle
float m_SegregatedBrakeBrightness
vector m_SegregatedBrakeColorRGB
float m_SegregatedBrakeRadius

◆ SetAsSegregatedReverseLight()

void CarLightBase::SetAsSegregatedReverseLight ( )
inlineprivate

Definition at line 45 of file CarRearLightBase.c.

46 {
47 SetRadiusTo(m_SegregatedRadius);
48 SetSpotLightAngle(m_SegregatedAngle);
49 SetBrightnessTo(m_SegregatedBrightness);
50 SetAmbientColor(m_SegregatedColorRGB[0], m_SegregatedColorRGB[1], m_SegregatedColorRGB[2]);
51 SetDiffuseColor(m_SegregatedColorRGB[0], m_SegregatedColorRGB[1], m_SegregatedColorRGB[2]);
52 SetFadeOutTime(0.1);
53 SetFlareVisible(false);
54 }

◆ Truck_01FrontLight()

void CarLightBase::Truck_01FrontLight ( )
inlineprivate

Definition at line 3 of file Truck_01FrontLight.c.

4 {
5 m_SegregatedBrightness = 4;
6 m_SegregatedRadius = 75;
7 m_SegregatedAngle = 90;
8 m_SegregatedColorRGB = Vector(0.90, 0.90, 0.68);
9
10 m_AggregatedBrightness = 8;
11 m_AggregatedRadius = 100;
12 m_AggregatedAngle = 120;
13 m_AggregatedColorRGB = Vector(0.90, 0.90, 0.68);
14
15 FadeIn(0.1);
16 SetFadeOutTime(0.05);
17
18 SegregateLight();
19 }

References Vector().

Member Data Documentation

◆ m_SegregatedBrakeAngle

float CarLightBase::m_SegregatedBrakeAngle = 180
private

Definition at line 6 of file CarRearLightBase.c.

◆ m_SegregatedBrakeBrightness

float CarLightBase::m_SegregatedBrakeBrightness = 2
private

Definition at line 4 of file CarRearLightBase.c.

◆ m_SegregatedBrakeColorRGB

vector CarLightBase::m_SegregatedBrakeColorRGB = Vector(1, 0.05, 0.05)
private

Definition at line 7 of file CarRearLightBase.c.

◆ m_SegregatedBrakeRadius

float CarLightBase::m_SegregatedBrakeRadius = 6
private

Definition at line 5 of file CarRearLightBase.c.


The documentation for this class was generated from the following files: