File size: 774 Bytes
24b81cb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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
} |