DayZ_Scripts / scripts /3_Game /DayZ /AmmoCamParams.c
D3ltaQ's picture
Upload 2197 files
24b81cb verified
raw
history blame contribute delete
774 Bytes
class AmmoCamParams
{
void Load(string ammoType)
{
string cfgPath = "CfgAmmo " + ammoType + " Effects" + " CameraShake ";
m_Radius = GetGame().ConfigGetFloat(cfgPath + "radius");
m_Strength = GetGame().ConfigGetFloat(cfgPath + "strength");
m_ModifierClose = GetGame().ConfigGetFloat(cfgPath + "modifierClose");
m_ModifierFar = GetGame().ConfigGetFloat(cfgPath + "modifierFar");
}
float m_Radius = 40;//the max distance at which the cam shake is triggered
float m_Strength = 4;//strength of the cam shake
float m_ModifierClose = 1;//shake 'strength' modifier when the player is at distance 0 from the source of explosion
float m_ModifierFar = 0;//shake 'strength' modifier when the player is at distance 'radius' from the source of explosion
}