DayZ 1.24
Loading...
Searching...
No Matches
DEagleRecoil.c
Go to the documentation of this file.
2{
3 override void Init()
4 {
9 point_1[0] = m_Player.GetRandomGeneratorSyncManager().GetRandomInRange(RandomGeneratorSyncUsage.RGSRecoil, 1.5, 2); point_1[1] = 4; point_1[2] = 0;
10 point_2[0] = m_Player.GetRandomGeneratorSyncManager().GetRandomInRange(RandomGeneratorSyncUsage.RGSRecoil, -0.5, 0.5); point_2[1] = 5.5; point_2[2] = 0;
11 point_3[0] = m_Player.GetRandomGeneratorSyncManager().GetRandomInRange(RandomGeneratorSyncUsage.RGSRecoil, -1.5, -2); point_3[1] = 1.5; point_3[2] = 0;
12 point_4[0] = m_Player.GetRandomGeneratorSyncManager().GetRandomInRange(RandomGeneratorSyncUsage.RGSRecoil, -0.75, -0.25); point_4[1] = 0.75; point_4[2] = 0;
13 m_HandsCurvePoints.Insert(point_1);//forms a 2 dimensional spline(z is ignored)
17 m_HandsCurvePoints.Insert("0 0 0");
19
20 m_MouseOffsetRangeMin = 70;//in degrees min
21 m_MouseOffsetRangeMax = 110;//in degrees max
22 m_MouseOffsetDistance = 2.5;//how far should the mouse travel
23 m_MouseOffsetRelativeTime = 0.0625; //0.03;//[0..1] a time it takes to move the mouse the required distance relative to the reload time of the weapon(firing mode)
24
27 }
28}
override void Init()
Definition DEagleRecoil.c:3
float m_CamOffsetRelativeTime
Definition RecoilBase.c:17
float m_CamOffsetDistance
Definition RecoilBase.c:18
float m_MouseOffsetDistance
Definition RecoilBase.c:19
PlayerBase m_Player
Definition RecoilBase.c:6
float m_MouseOffsetRangeMax
Definition RecoilBase.c:14
float m_MouseOffsetRelativeTime
Definition RecoilBase.c:15
float m_HandsOffsetRelativeTime
Definition RecoilBase.c:16
float m_MouseOffsetRangeMin
Definition RecoilBase.c:13
ref array< vector > m_HandsCurvePoints
Definition RecoilBase.c:27