Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
m14recoil.c
Go to the documentation of this file.
2 {
3  override void Init()
4  {
5  vector point_1;
6  vector point_2;
7  vector point_3;
8  vector point_4;
9  point_1[0] = m_Player.GetRandomGeneratorSyncManager().GetRandomInRange(RandomGeneratorSyncUsage.RGSRecoil,0.35,0.65); point_1[1] = 1.4; point_1[2] = 0;
10  point_2[0] = m_Player.GetRandomGeneratorSyncManager().GetRandomInRange(RandomGeneratorSyncUsage.RGSRecoil,-0.35,0.45); point_2[1] = 2.85; point_2[2] = 0;
11  point_3[0] = m_Player.GetRandomGeneratorSyncManager().GetRandomInRange(RandomGeneratorSyncUsage.RGSRecoil,-0.1,-0.5); point_3[1] = 1.2; point_3[2] = 0;
12  point_4[0] = m_Player.GetRandomGeneratorSyncManager().GetRandomInRange(RandomGeneratorSyncUsage.RGSRecoil,-0.75,-0.10); point_4[1] = 0.6; point_4[2] = 0;
13 
14  m_HandsCurvePoints.Insert(point_1);//forms a 2 dimensional spline(z is ignored)
15  m_HandsCurvePoints.Insert(point_2);
16  m_HandsCurvePoints.Insert(point_3);
17  m_HandsCurvePoints.Insert(point_4);
18  m_HandsCurvePoints.Insert("0 0 0");
19  m_HandsOffsetRelativeTime = 1.2;
20 
21  m_MouseOffsetRangeMin = 75;//in degrees min
22  m_MouseOffsetRangeMax = 130;//in degrees max
23  m_MouseOffsetDistance = 1.7;//how far should the mouse travel
24  m_MouseOffsetRelativeTime = 0.65;//[0..1] a time it takes to move the mouse the required distance relative to the reload time of the weapon(firing mode)
25 
26  m_CamOffsetDistance = 0.03;
27  m_CamOffsetRelativeTime = 1.25;
28  }
29 }
RandomGeneratorSyncUsage
RandomGeneratorSyncUsage
Definition: randomgeneratorsyncmanager.c:1
vector
Definition: enconvert.c:105
RecoilBase
Definition: recoilbase.c:1
m_Player
DayZPlayer m_Player
Definition: hand_events.c:42
M14Recoil
Definition: m14recoil.c:1