defaultrecoil.c 566 B

123456789101112131415
  1. class DefaultRecoil: RecoilBase
  2. {
  3. override void Init()
  4. {
  5. m_HandsCurvePoints.Insert("0 0 0");//forms a 2 dimensional spline(z is ignored)
  6. m_HandsCurvePoints.Insert("0 1 0");
  7. m_HandsCurvePoints.Insert("0 0 0");
  8. m_HandsOffsetRelativeTime = 0.4;
  9. m_MouseOffsetRangeMin = 60;//in degrees min
  10. m_MouseOffsetRangeMax = 120;//in degrees max
  11. m_MouseOffsetDistance = 1;//how far should the mouse travel
  12. m_MouseOffsetRelativeTime = 0;//[0..1] a time it takes to move the mouse the required distance relative to the reload time of the weapon(firing mode)
  13. }
  14. }