DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
AmmoCamParams.c
См. документацию.
1
class
AmmoCamParams
2
{
3
void
Load
(
string
ammoType)
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
}
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
}
AmmoCamParams::m_Strength
float m_Strength
Определения
AmmoCamParams.c:14
AmmoCamParams::m_Radius
float m_Radius
Определения
AmmoCamParams.c:13
AmmoCamParams::m_ModifierClose
float m_ModifierClose
Определения
AmmoCamParams.c:15
AmmoCamParams::m_ModifierFar
float m_ModifierFar
Определения
AmmoCamParams.c:16
AmmoCamParams::Load
void Load(string ammoType)
Определения
AmmoCamParams.c:3
AmmoCamParams
Определения
AmmoCamParams.c:2
CGame::ConfigGetFloat
proto native float ConfigGetFloat(string path)
Get float value from config on path.
GetGame
proto native CGame GetGame()
Ishodniki
scripts
3_Game
AmmoCamParams.c
Создано системой
1.13.2