Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
ammocamparams.c
Go to the documentation of this file.
2{
3 void Load(string ammoType)
4 {
5 string cfgPath = "CfgAmmo " + ammoType + " Effects" + " CameraShake ";
6
7 m_Radius = g_Game.ConfigGetFloat(cfgPath + "radius");
8 m_Strength = g_Game.ConfigGetFloat(cfgPath + "strength");
9 m_ModifierClose = g_Game.ConfigGetFloat(cfgPath + "modifierClose");
10 m_ModifierFar = g_Game.ConfigGetFloat(cfgPath + "modifierFar");
11 }
12
13 float m_Radius = 40;//the max distance at which the cam shake is triggered
14 float m_Strength = 4;//strength of the cam shake
15 float m_ModifierClose = 1;//shake 'strength' modifier when the player is at distance 0 from the source of explosion
16 float m_ModifierFar = 0;//shake 'strength' modifier when the player is at distance 'radius' from the source of explosion
17}
DayZGame g_Game
Definition dayzgame.c:3942