Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
fireplacelight.c
Go to the documentation of this file.
1 class FireplaceLight extends PointLightBase
2 {
3  static float m_FireplaceRadius = 25;
4  static float m_FireplaceBrightness = 4.75;
5 
6  void FireplaceLight()
7  {
8  SetVisibleDuringDaylight(false);
9  SetRadiusTo( m_FireplaceRadius );
10  SetBrightnessTo(m_FireplaceBrightness);
11  SetCastShadow(true);
12  SetFadeOutTime(5);
13  SetDiffuseColor(1.3, 0.35, 0.15);
14  SetAmbientColor(1.3, 0.35, 0.15);
15  SetFlareVisible(false);
16  SetFlickerAmplitude(0.3);
17  SetFlickerSpeed(0.9);
18  SetExteriorMode();
19  EnableHeatHaze(true);
20  SetHeatHazeRadius(0.23);
21  SetHeatHazePower(0.010);
22  }
23 
24  // Use this mode when the light is in tight space like barrel, chimney or improvsed oven
25  void SetInteriorMode()
26  {
27  SetDancingShadowsMovementSpeed(0.05);
28  SetDancingShadowsAmplitude(0.05);
29  }
30 
31  // Use this mode when fireplace is on the ground with plenty of space for the light to wiggle around
32  void SetExteriorMode()
33  {
34  SetDancingShadowsMovementSpeed(0.25);
35  SetDancingShadowsAmplitude(0.10);
36  }
37 
38  /*override void OnFrameLightSource(IEntity other, float timeSlice)
39  {
40 
41  }*/
42 }
PointLightBase
Definition: staticobj_roadblock_wood_small.c:27