Dayz Explorer
1.28.160049
Loading...
Searching...
No Matches
sksrecoil.c
Go to the documentation of this file.
1
class
SKSRecoil
:
RecoilBase
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.33,0.75); point_1[1] = 1.75; point_1[2] = 0;
10
point_2[0] =
m_Player
.GetRandomGeneratorSyncManager().GetRandomInRange(
RandomGeneratorSyncUsage
.RGSRecoil,-0.5,0.5); point_2[1] = 2; point_2[2] = 0;
11
point_3[0] =
m_Player
.GetRandomGeneratorSyncManager().GetRandomInRange(
RandomGeneratorSyncUsage
.RGSRecoil,-1,-1.5); point_3[1] = 1.33; point_3[2] = 0;
12
point_4[0] =
m_Player
.GetRandomGeneratorSyncManager().GetRandomInRange(
RandomGeneratorSyncUsage
.RGSRecoil,-0.5,-0.1); point_4[1] = 0.75; point_4[2] = 0;
13
m_HandsCurvePoints
.Insert(point_1);
//forms a 2 dimensional spline(z is ignored)
14
m_HandsCurvePoints
.Insert(point_2);
15
m_HandsCurvePoints
.Insert(point_3);
16
m_HandsCurvePoints
.Insert(point_4);
17
m_HandsCurvePoints
.Insert(
"0 0 0"
);
18
m_HandsOffsetRelativeTime
= 0.5;
19
20
m_MouseOffsetRangeMin
= 50;
//in degrees min
21
m_MouseOffsetRangeMax
= 120;
//in degrees max
22
m_MouseOffsetDistance
= 1.4;
//how far should the mouse travel
23
m_MouseOffsetRelativeTime
= 0.5;
//[0..1] a time it takes to move the mouse the required distance relative to the reload time of the weapon(firing mode)
24
25
m_CamOffsetDistance
= 0.015;
26
m_CamOffsetRelativeTime
= 1;
27
}
28
}
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_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
SKSRecoil
Definition
sksrecoil.c:2
vector
Definition
enconvert.c:106
m_Player
DayZPlayer m_Player
Definition
hand_events.c:42
RandomGeneratorSyncUsage
RandomGeneratorSyncUsage
Definition
randomgeneratorsyncmanager.c:2
Daten
4_world
classes
recoilbase
recoils
sksrecoil.c
Generated by
1.12.0