DIFF

class RecoilBaseSource

Constructors 1

Members 20

bool m_DebugMode
Referenced by ApplyMouseOffset(), PostInit(), RecoilBase()
Show 1 more, Update()
Weapon_Base m_Weapon
Referenced by GetWeapon(), and RecoilBase()
PlayerBase m_Player
protected bool m_DeleteRequested
Referenced by Destroy(), and Update()
protected float m_Time

how much time has elapsed since first update

Referenced by Update()
protected float m_ReloadTime

reload time config parameter of the weapon

protected vector m_RecoilModifier
Referenced by PostInit(), and Update()
protected bool m_IsClient
Referenced by PostInit(), and Update()
float m_MouseOffsetRangeMin

in degrees min

float m_MouseOffsetRangeMax

in degrees max

float m_MouseOffsetRelativeTime = 1

[0..1] a time it takes to move the mouse the required distance relative to the reload time of the weapon(firing mode)

float m_HandsOffsetRelativeTime = 1

[0..1] a time it takes to move the hands the required distance given by the curve relative to the reload time of the weapon(firing mode)

float m_CamOffsetRelativeTime = 1

[0..1] a time it takes to move the camera the required distance relative to the reload time of the weapon(firing mode)

float m_CamOffsetDistance = 0.05

how far the camera will travel along the z-axis in cm

float m_MouseOffsetDistance

how far should the mouse travel

float m_TimeNormalized
protected vector m_MouseOffsetTarget

move the mouse towards this point

Referenced by ApplyMouseOffset(), and PostInit()
protected vector m_MouseOffsetTargetAccum

the overall mouse offset so far(all deltas accumulated)

Referenced by ApplyMouseOffset()
protected float m_Angle

result between the min and max

Referenced by PostInit()
protected ref array<vector> m_HandsCurvePoints

Methods 10

void Init()
Referenced by RecoilBase()
Weapon_Base GetWeapon()
References m_Weapon
Referenced by PostInit()
void Destroy()

Destroys this object next update tick

Referenced by Update()
void ApplyHandsOffset(float pDt, out float pRecResultX, out float pRecResultY)
Referenced by Update()
void ApplyMouseOffset(float pDt, out float pRecResultX, out float pRecResultY)
Referenced by Update()
vector GetRecoilModifier(Weapon_Base weapon)
Referenced by PostInit()
vector GetPositionOnCurve(array<vector> points, float time)
References Math3D.Curve()
Referenced by ApplyHandsOffset()