Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
muzzleflashlight.c
Go to the documentation of this file.
1 class MuzzleFlashLight extends PointLightBase
2 {
3  static float m_Lifetime = 0.04;
4 
5  void MuzzleFlashLight()
6  {
7  SetLifetime(m_Lifetime);
8  FadeIn(m_Lifetime * 0.5);
9  SetFadeOutTime(m_Lifetime * 0.5);
10  SetVisibleDuringDaylight(true);
11  SetRadiusTo( 15 );
12  SetBrightnessTo(1);
13  SetCastShadow(false);
14  SetAmbientColor(0.76, 0.68, 0.31);
15  SetDiffuseColor(0.76, 0.68, 0.31);
16  SetFlareVisible(false);
17  }
18 }
19 
21 {
22  static float m_Lifetime = 0.08;
23 
25  {
26  SetLifetime( m_Lifetime );
27  FadeIn( m_Lifetime * 0.2 );
28  SetFadeOutTime( m_Lifetime * 0.2 );
29  SetVisibleDuringDaylight( true );
30  SetRadiusTo( 17 );
31  SetBrightnessTo( 0.5 );
32  SetCastShadow( false );
33  SetAmbientColor( 0.56, 0.42, 0.3 );
34  SetDiffuseColor( 0.56, 0.42, 0.3 );
35  SetFlareVisible( false );
36  }
37 }
38 
39 class MuzzleFlashLight_2 extends PointLightBase
40 {
41  static float m_Lifetime = 0.01;
42 
43  void MuzzleFlashLight_2()
44  {
45  SetLifetime( m_Lifetime );
46  FadeIn( m_Lifetime * 0.1 );
47  SetFadeOutTime( m_Lifetime * 0.1 );
48  SetVisibleDuringDaylight( true );
49  SetRadiusTo( 12 );
50  SetBrightnessTo( 0.2 );
51  SetCastShadow( false );
52  SetAmbientColor( 0.36, 0.32, 0.13 );
53  SetDiffuseColor( 0.36, 0.32, 0.13 );
54  SetFlareVisible( false );
55  }
56 }
PointLightBase
Definition: staticobj_roadblock_wood_small.c:27
MuzzleFlashLight_1
void MuzzleFlashLight_1()
Definition: muzzleflashlight.c:24
m_Lifetime
class MuzzleFlashLight extends PointLightBase m_Lifetime