DayZ 1.24
Loading...
Searching...
No Matches
FireplaceLight.c
Go to the documentation of this file.
1class FireplaceLight extends PointLightBase
2{
3 static float m_FireplaceRadius = 25;
4 static float m_FireplaceBrightness = 4.75;
5
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);
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
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
33 {
34 SetDancingShadowsMovementSpeed(0.25);
35 SetDancingShadowsAmplitude(0.10);
36 }
37
38 /*override void OnFrameLightSource(IEntity other, float timeSlice)
39 {
40
41 }*/
42}
void FireplaceLight()