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

Private Member Functions

void Load (string ammoType)
 

Private Attributes

float m_Radius = 40
 
float m_Strength = 4
 
float m_ModifierClose = 1
 
float m_ModifierFar = 0
 

Detailed Description

Definition at line 1 of file AmmoCamParams.c.

Member Function Documentation

◆ Load()

void AmmoCamParams::Load ( string ammoType)
inlineprivate

Definition at line 3 of file AmmoCamParams.c.

4 {
5 string cfgPath = "CfgAmmo " + ammoType + " Effects" + " CameraShake ";
6
7 m_Radius = GetGame().ConfigGetFloat(cfgPath + "radius");
8 m_Strength = GetGame().ConfigGetFloat(cfgPath + "strength");
9 m_ModifierClose = GetGame().ConfigGetFloat(cfgPath + "modifierClose");
10 m_ModifierFar = GetGame().ConfigGetFloat(cfgPath + "modifierFar");
11 }
float m_ModifierClose
proto native CGame GetGame()

References GetGame(), m_ModifierClose, m_ModifierFar, m_Radius, and m_Strength.

Member Data Documentation

◆ m_ModifierClose

float AmmoCamParams::m_ModifierClose = 1
private

Definition at line 15 of file AmmoCamParams.c.

Referenced by Load().

◆ m_ModifierFar

float AmmoCamParams::m_ModifierFar = 0
private

Definition at line 16 of file AmmoCamParams.c.

Referenced by Load().

◆ m_Radius

float AmmoCamParams::m_Radius = 40
private

Definition at line 13 of file AmmoCamParams.c.

Referenced by Load().

◆ m_Strength

float AmmoCamParams::m_Strength = 4
private

Definition at line 14 of file AmmoCamParams.c.

Referenced by Load().


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