DayZ
1.24
Loading...
Searching...
No Matches
LongHornRecoil.c
Go to the documentation of this file.
1
class
LongHornRecoil
:
RecoilBase
2
{
3
4
override
void
Init
()
5
{
6
vector
point_1
;
7
vector
point_2
;
8
vector
point_3
;
9
vector
point_4
;
10
point_1
[0] =
m_Player
.GetRandomGeneratorSyncManager().GetRandomInRange(
RandomGeneratorSyncUsage
.RGSRecoil, 1.5, 2);
point_1
[1] = 4;
point_1
[2] = 0;
11
point_2
[0] =
m_Player
.GetRandomGeneratorSyncManager().GetRandomInRange(
RandomGeneratorSyncUsage
.RGSRecoil, -0.5, 0.5);
point_2
[1] = 5.5;
point_2
[2] = 0;
12
point_3
[0] =
m_Player
.GetRandomGeneratorSyncManager().GetRandomInRange(
RandomGeneratorSyncUsage
.RGSRecoil, -1.5, -2);
point_3
[1] = 1.5;
point_3
[2] = 0;
13
point_4
[0] =
m_Player
.GetRandomGeneratorSyncManager().GetRandomInRange(
RandomGeneratorSyncUsage
.RGSRecoil, -0.75, -0.25);
point_4
[1] = 0.75;
point_4
[2] = 0;
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
= 0.125;
20
21
m_MouseOffsetRangeMin
= 70;
//in degrees min
22
m_MouseOffsetRangeMax
= 110;
//in degrees max
23
m_MouseOffsetDistance
= 4.0;
//how far should the mouse travel
24
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)
25
26
m_CamOffsetDistance
= 0.05;
27
m_CamOffsetRelativeTime
= 0.5;
28
}
29
}
RandomGeneratorSyncUsage
RandomGeneratorSyncUsage
Definition
RandomGeneratorSyncManager.c:2
LongHornRecoil
Definition
LongHornRecoil.c:2
LongHornRecoil::Init
override void Init()
Definition
LongHornRecoil.c:4
Param3
Definition
EntityAI.c:95
RecoilBase
Definition
RecoilBase.c:2
RecoilBase::m_CamOffsetRelativeTime
float m_CamOffsetRelativeTime
Definition
RecoilBase.c:17
RecoilBase::m_CamOffsetDistance
float m_CamOffsetDistance
Definition
RecoilBase.c:18
RecoilBase::m_MouseOffsetDistance
float m_MouseOffsetDistance
Definition
RecoilBase.c:19
RecoilBase::m_Player
PlayerBase m_Player
Definition
RecoilBase.c:6
RecoilBase::m_MouseOffsetRangeMax
float m_MouseOffsetRangeMax
Definition
RecoilBase.c:14
RecoilBase::m_MouseOffsetRelativeTime
float m_MouseOffsetRelativeTime
Definition
RecoilBase.c:15
RecoilBase::m_HandsOffsetRelativeTime
float m_HandsOffsetRelativeTime
Definition
RecoilBase.c:16
RecoilBase::m_MouseOffsetRangeMin
float m_MouseOffsetRangeMin
Definition
RecoilBase.c:13
RecoilBase::m_HandsCurvePoints
ref array< vector > m_HandsCurvePoints
Definition
RecoilBase.c:27
vector
Definition
EnConvert.c:106
scripts
4_World
Classes
RecoilBase
Recoils
LongHornRecoil.c
Generated by
1.10.0