DayZ 1.24
Loading...
Searching...
No Matches
Grenade_Base.c File Reference

Go to the source code of this file.

Classes

class  Grenade_Base
 

Enumerations

enum  EGrenadeType { FRAGMENTATION = 0 , CHEMICAL , ILLUMINATING , NON_LETHAL }
 

Functions

void FlashGrenadeLight ()
 

Variables

enum EGrenadeType m_DefaultBrightness = 50
 For backward compatibility.
 
static float m_DefaultRadius = 20
 

Enumeration Type Documentation

◆ EGrenadeType

Enumerator
FRAGMENTATION 
CHEMICAL 
ILLUMINATING 
NON_LETHAL 

Definition at line 1 of file Grenade_Base.c.

2{
7}
@ CHEMICAL
Definition Grenade_Base.c:4
@ FRAGMENTATION
Definition Grenade_Base.c:3
@ NON_LETHAL
Definition Grenade_Base.c:6
@ ILLUMINATING
Definition Grenade_Base.c:5

Function Documentation

◆ FlashGrenadeLight()

void FlashGrenadeLight ( )
protected

Definition at line 17 of file Grenade_Base.c.

18 {
19 SetVisibleDuringDaylight(true);
20 SetRadiusTo(m_DefaultRadius);
21 SetBrightnessTo(m_DefaultBrightness);
22 SetFlareVisible(false);
23 SetAmbientColor(1.0, 1.0, 1.0);
24 SetDiffuseColor(1.0, 1.0, 1.0);
25 SetLifetime(0.35);
26 SetDisableShadowsWithinRadius(-1);
27 }
static float m_DefaultRadius
enum EGrenadeType m_DefaultBrightness
For backward compatibility.

References m_DefaultBrightness, and m_DefaultRadius.

Referenced by Grenade_Base::CreateLight().

Variable Documentation

◆ m_DefaultBrightness

enum EGrenadeType m_DefaultBrightness = 50

For backward compatibility.

◆ m_DefaultRadius

float m_DefaultRadius = 20
staticprotected

Definition at line 15 of file Grenade_Base.c.