DayZ 1.24
|
Protected Member Functions | |
void | RecoilBase (Weapon_Base weapon) |
void | Init () |
Weapon_Base | GetWeapon () |
void | PostInit (Weapon_Base weapon) |
void | Destroy () |
Destroys this object next update tick. | |
void | Update (SDayZPlayerAimingModel pModel, out float axis_mouse_x, out float axis_mouse_y, out float axis_hands_x, out float axis_hands_y, float pDt) |
void | ApplyCamOffset (SDayZPlayerAimingModel pModel) |
void | ApplyHandsOffset (float pDt, out float pRecResultX, out float pRecResultY) |
void | ApplyMouseOffset (float pDt, out float pRecResultX, out float pRecResultY) |
vector | GetRecoilModifier (Weapon_Base weapon) |
vector | GetPositionOnCurve (array< vector > points, float time) |
Private Attributes | |
bool | m_DebugMode |
Weapon_Base | m_Weapon |
PlayerBase | m_Player |
Definition at line 1 of file RecoilBase.c.
|
inlineprotected |
Definition at line 29 of file RecoilBase.c.
References GetDayZGame(), Init(), m_DebugMode, m_HandsCurvePoints, m_Player, m_Weapon, and PostInit().
|
inlineprotected |
Definition at line 100 of file RecoilBase.c.
References Math::Clamp(), Easing::EaseOutBack(), Math::InverseLerp(), Math::Lerp(), m_CamOffsetDistance, m_CamOffsetRelativeTime, m_Player, and m_TimeNormalized.
Referenced by Update().
|
inlineprotected |
Definition at line 115 of file RecoilBase.c.
References Math::Clamp(), GetPositionOnCurve(), m_HandsCurvePoints, m_HandsOffsetRelativeTime, and m_TimeNormalized.
Referenced by Update().
|
inlineprotected |
Definition at line 134 of file RecoilBase.c.
References Math::Clamp(), m_DebugMode, m_MouseOffsetRelativeTime, m_MouseOffsetTarget, m_MouseOffsetTargetAccum, m_ReloadTime, PrintString(), and vector::ToString().
Referenced by Update().
|
inlineprotected |
Destroys this object next update tick.
Definition at line 62 of file RecoilBase.c.
References m_DeleteRequested.
Referenced by Update().
Definition at line 188 of file RecoilBase.c.
References Math3D::Curve().
Referenced by ApplyHandsOffset().
|
inlineprotected |
Definition at line 181 of file RecoilBase.c.
Referenced by PostInit().
|
inlineprotected |
|
protected |
Referenced by RecoilBase().
|
inlineprotected |
Definition at line 47 of file RecoilBase.c.
References GetGame(), GetRecoilModifier(), GetWeapon(), m_Angle, m_CamOffsetDistance, m_DebugMode, m_IsClient, m_MouseOffsetDistance, m_MouseOffsetRangeMax, m_MouseOffsetRangeMin, m_MouseOffsetTarget, m_Player, m_RecoilModifier, m_ReloadTime, Print(), and vector::YawToVector().
Referenced by RecoilBase().
|
inlineprotected |
Definition at line 68 of file RecoilBase.c.
References ApplyCamOffset(), ApplyHandsOffset(), ApplyMouseOffset(), Math::Clamp(), Destroy(), Math::InverseLerp(), m_DebugMode, m_DeleteRequested, m_IsClient, m_RecoilModifier, m_ReloadTime, m_Time, m_TimeNormalized, and PrintString().
|
protected |
Definition at line 24 of file RecoilBase.c.
Referenced by PostInit().
|
protected |
Definition at line 18 of file RecoilBase.c.
Referenced by ApplyCamOffset(), Ak101Recoil::Init(), Ak74Recoil::Init(), AkmRecoil::Init(), Aks74uRecoil::Init(), AUGRecoil::Init(), B95Recoil::Init(), Colt1911Recoil::Init(), CrossbowRecoil::Init(), CZ527Recoil::Init(), CZ550Recoil::Init(), Cz75Recoil::Init(), DEagleRecoil::Init(), DerringerRecoil::Init(), FALRecoil::Init(), FamasRecoil::Init(), Fnx45Recoil::Init(), GlockRecoil::Init(), Izh18Recoil::Init(), Izh18SawedOffRecoil::Init(), Izh18ShotgunRecoil::Init(), Izh43Recoil::Init(), LongHornRecoil::Init(), M14Recoil::Init(), M16A2Recoil::Init(), M4a1Recoil::Init(), M79Recoil::Init(), MagnumRecoil::Init(), MakarovRecoil::Init(), MkiiRecoil::Init(), MosinRecoil::Init(), MosinSawedOffRecoil::Init(), Mp133Recoil::Init(), Mp5kRecoil::Init(), P1Recoil::Init(), PP19Recoil::Init(), RepeaterRecoil::Init(), Ruger1022Recoil::Init(), ScoutRecoil::Init(), SiagaRecoil::Init(), Cz61Recoil::Init(), SKSRecoil::Init(), SSG82Recoil::Init(), SvdRecoil::Init(), Ump45Recoil::Init(), VSSRecoil::Init(), Winchester70Recoil::Init(), and PostInit().
|
protected |
Definition at line 17 of file RecoilBase.c.
Referenced by ApplyCamOffset(), Ak101Recoil::Init(), Ak74Recoil::Init(), AkmRecoil::Init(), Aks74uRecoil::Init(), AUGRecoil::Init(), B95Recoil::Init(), Colt1911Recoil::Init(), CrossbowRecoil::Init(), CZ527Recoil::Init(), CZ550Recoil::Init(), Cz75Recoil::Init(), DEagleRecoil::Init(), DerringerRecoil::Init(), FALRecoil::Init(), FamasRecoil::Init(), Fnx45Recoil::Init(), GlockRecoil::Init(), Izh18Recoil::Init(), Izh18SawedOffRecoil::Init(), Izh18ShotgunRecoil::Init(), Izh43Recoil::Init(), LongHornRecoil::Init(), M14Recoil::Init(), M16A2Recoil::Init(), M4a1Recoil::Init(), M79Recoil::Init(), MagnumRecoil::Init(), MakarovRecoil::Init(), MkiiRecoil::Init(), MosinRecoil::Init(), MosinSawedOffRecoil::Init(), Mp133Recoil::Init(), Mp5kRecoil::Init(), P1Recoil::Init(), PP19Recoil::Init(), RepeaterRecoil::Init(), Ruger1022Recoil::Init(), ScoutRecoil::Init(), SiagaRecoil::Init(), Cz61Recoil::Init(), SKSRecoil::Init(), SSG82Recoil::Init(), SvdRecoil::Init(), Ump45Recoil::Init(), VSSRecoil::Init(), and Winchester70Recoil::Init().
|
private |
Definition at line 3 of file RecoilBase.c.
Referenced by ApplyMouseOffset(), PostInit(), RecoilBase(), and Update().
|
protected |
Definition at line 7 of file RecoilBase.c.
Definition at line 27 of file RecoilBase.c.
Referenced by ApplyHandsOffset(), Ak101Recoil::Init(), Ak74Recoil::Init(), AkmRecoil::Init(), Aks74uRecoil::Init(), AUGRecoil::Init(), B95Recoil::Init(), Colt1911Recoil::Init(), CrossbowRecoil::Init(), CZ527Recoil::Init(), CZ550Recoil::Init(), Cz75Recoil::Init(), DEagleRecoil::Init(), DefaultRecoil::Init(), DerringerRecoil::Init(), FALRecoil::Init(), FamasRecoil::Init(), Fnx45Recoil::Init(), GlockRecoil::Init(), Izh18Recoil::Init(), Izh18SawedOffRecoil::Init(), Izh18ShotgunRecoil::Init(), Izh43Recoil::Init(), LongHornRecoil::Init(), M14Recoil::Init(), M16A2Recoil::Init(), M4a1Recoil::Init(), M79Recoil::Init(), MagnumRecoil::Init(), MakarovRecoil::Init(), MkiiRecoil::Init(), MosinRecoil::Init(), MosinSawedOffRecoil::Init(), Mp133Recoil::Init(), Mp5kRecoil::Init(), P1Recoil::Init(), PP19Recoil::Init(), RepeaterRecoil::Init(), Ruger1022Recoil::Init(), ScoutRecoil::Init(), SiagaRecoil::Init(), Cz61Recoil::Init(), SKSRecoil::Init(), SSG82Recoil::Init(), SvdRecoil::Init(), Ump45Recoil::Init(), VSSRecoil::Init(), Winchester70Recoil::Init(), and RecoilBase().
|
protected |
Definition at line 16 of file RecoilBase.c.
Referenced by ApplyHandsOffset(), Ak101Recoil::Init(), Ak74Recoil::Init(), AkmRecoil::Init(), Aks74uRecoil::Init(), AUGRecoil::Init(), B95Recoil::Init(), Colt1911Recoil::Init(), CrossbowRecoil::Init(), CZ527Recoil::Init(), CZ550Recoil::Init(), Cz75Recoil::Init(), DEagleRecoil::Init(), DefaultRecoil::Init(), DerringerRecoil::Init(), FALRecoil::Init(), FamasRecoil::Init(), Fnx45Recoil::Init(), GlockRecoil::Init(), Izh18Recoil::Init(), Izh18SawedOffRecoil::Init(), Izh18ShotgunRecoil::Init(), Izh43Recoil::Init(), LongHornRecoil::Init(), M14Recoil::Init(), M16A2Recoil::Init(), M4a1Recoil::Init(), M79Recoil::Init(), MagnumRecoil::Init(), MakarovRecoil::Init(), MkiiRecoil::Init(), MosinRecoil::Init(), MosinSawedOffRecoil::Init(), Mp133Recoil::Init(), Mp5kRecoil::Init(), P1Recoil::Init(), PP19Recoil::Init(), RepeaterRecoil::Init(), Ruger1022Recoil::Init(), ScoutRecoil::Init(), SiagaRecoil::Init(), Cz61Recoil::Init(), SKSRecoil::Init(), SSG82Recoil::Init(), SvdRecoil::Init(), Ump45Recoil::Init(), VSSRecoil::Init(), and Winchester70Recoil::Init().
|
protected |
Definition at line 11 of file RecoilBase.c.
Referenced by PostInit(), and Update().
|
protected |
Definition at line 19 of file RecoilBase.c.
Referenced by Ak101Recoil::Init(), Ak74Recoil::Init(), AkmRecoil::Init(), Aks74uRecoil::Init(), AUGRecoil::Init(), B95Recoil::Init(), Colt1911Recoil::Init(), CrossbowRecoil::Init(), CZ527Recoil::Init(), CZ550Recoil::Init(), Cz75Recoil::Init(), DEagleRecoil::Init(), DefaultRecoil::Init(), DerringerRecoil::Init(), FALRecoil::Init(), FamasRecoil::Init(), Fnx45Recoil::Init(), GlockRecoil::Init(), Izh18Recoil::Init(), Izh18SawedOffRecoil::Init(), Izh18ShotgunRecoil::Init(), Izh43Recoil::Init(), LongHornRecoil::Init(), M14Recoil::Init(), M16A2Recoil::Init(), M4a1Recoil::Init(), M79Recoil::Init(), MagnumRecoil::Init(), MakarovRecoil::Init(), MkiiRecoil::Init(), MosinRecoil::Init(), MosinSawedOffRecoil::Init(), Mp133Recoil::Init(), Mp5kRecoil::Init(), P1Recoil::Init(), PP19Recoil::Init(), RepeaterRecoil::Init(), Ruger1022Recoil::Init(), ScoutRecoil::Init(), SiagaRecoil::Init(), Cz61Recoil::Init(), SKSRecoil::Init(), SSG82Recoil::Init(), SvdRecoil::Init(), Ump45Recoil::Init(), VSSRecoil::Init(), Winchester70Recoil::Init(), and PostInit().
|
protected |
Definition at line 14 of file RecoilBase.c.
Referenced by Ak101Recoil::Init(), Ak74Recoil::Init(), AkmRecoil::Init(), Aks74uRecoil::Init(), AUGRecoil::Init(), B95Recoil::Init(), Colt1911Recoil::Init(), CrossbowRecoil::Init(), CZ527Recoil::Init(), CZ550Recoil::Init(), Cz75Recoil::Init(), DEagleRecoil::Init(), DefaultRecoil::Init(), DerringerRecoil::Init(), FALRecoil::Init(), FamasRecoil::Init(), Fnx45Recoil::Init(), GlockRecoil::Init(), Izh18Recoil::Init(), Izh18SawedOffRecoil::Init(), Izh18ShotgunRecoil::Init(), Izh43Recoil::Init(), LongHornRecoil::Init(), M14Recoil::Init(), M16A2Recoil::Init(), M4a1Recoil::Init(), M79Recoil::Init(), MagnumRecoil::Init(), MakarovRecoil::Init(), MkiiRecoil::Init(), MosinRecoil::Init(), MosinSawedOffRecoil::Init(), Mp133Recoil::Init(), Mp5kRecoil::Init(), P1Recoil::Init(), PP19Recoil::Init(), RepeaterRecoil::Init(), Ruger1022Recoil::Init(), ScoutRecoil::Init(), SiagaRecoil::Init(), Cz61Recoil::Init(), SKSRecoil::Init(), SSG82Recoil::Init(), SvdRecoil::Init(), Ump45Recoil::Init(), VSSRecoil::Init(), Winchester70Recoil::Init(), and PostInit().
|
protected |
Definition at line 13 of file RecoilBase.c.
Referenced by Ak101Recoil::Init(), Ak74Recoil::Init(), AkmRecoil::Init(), Aks74uRecoil::Init(), AUGRecoil::Init(), B95Recoil::Init(), Colt1911Recoil::Init(), CrossbowRecoil::Init(), CZ527Recoil::Init(), CZ550Recoil::Init(), Cz75Recoil::Init(), DEagleRecoil::Init(), DefaultRecoil::Init(), DerringerRecoil::Init(), FALRecoil::Init(), FamasRecoil::Init(), Fnx45Recoil::Init(), GlockRecoil::Init(), Izh18Recoil::Init(), Izh18SawedOffRecoil::Init(), Izh18ShotgunRecoil::Init(), Izh43Recoil::Init(), LongHornRecoil::Init(), M14Recoil::Init(), M16A2Recoil::Init(), M4a1Recoil::Init(), M79Recoil::Init(), MagnumRecoil::Init(), MakarovRecoil::Init(), MkiiRecoil::Init(), MosinRecoil::Init(), MosinSawedOffRecoil::Init(), Mp133Recoil::Init(), Mp5kRecoil::Init(), P1Recoil::Init(), PP19Recoil::Init(), RepeaterRecoil::Init(), Ruger1022Recoil::Init(), ScoutRecoil::Init(), SiagaRecoil::Init(), Cz61Recoil::Init(), SKSRecoil::Init(), SSG82Recoil::Init(), SvdRecoil::Init(), Ump45Recoil::Init(), VSSRecoil::Init(), Winchester70Recoil::Init(), and PostInit().
|
protected |
Definition at line 15 of file RecoilBase.c.
Referenced by ApplyMouseOffset(), Ak101Recoil::Init(), Ak74Recoil::Init(), AkmRecoil::Init(), Aks74uRecoil::Init(), AUGRecoil::Init(), B95Recoil::Init(), Colt1911Recoil::Init(), CrossbowRecoil::Init(), CZ527Recoil::Init(), CZ550Recoil::Init(), Cz75Recoil::Init(), DEagleRecoil::Init(), DefaultRecoil::Init(), DerringerRecoil::Init(), FALRecoil::Init(), FamasRecoil::Init(), Fnx45Recoil::Init(), GlockRecoil::Init(), Izh18Recoil::Init(), Izh18SawedOffRecoil::Init(), Izh18ShotgunRecoil::Init(), Izh43Recoil::Init(), LongHornRecoil::Init(), M14Recoil::Init(), M16A2Recoil::Init(), M4a1Recoil::Init(), M79Recoil::Init(), MagnumRecoil::Init(), MakarovRecoil::Init(), MkiiRecoil::Init(), MosinRecoil::Init(), MosinSawedOffRecoil::Init(), Mp133Recoil::Init(), Mp5kRecoil::Init(), P1Recoil::Init(), PP19Recoil::Init(), RepeaterRecoil::Init(), Ruger1022Recoil::Init(), ScoutRecoil::Init(), SiagaRecoil::Init(), Cz61Recoil::Init(), SKSRecoil::Init(), SSG82Recoil::Init(), SvdRecoil::Init(), Ump45Recoil::Init(), VSSRecoil::Init(), and Winchester70Recoil::Init().
|
protected |
Definition at line 22 of file RecoilBase.c.
Referenced by ApplyMouseOffset(), and PostInit().
|
protected |
Definition at line 23 of file RecoilBase.c.
Referenced by ApplyMouseOffset().
|
private |
Definition at line 6 of file RecoilBase.c.
Referenced by ApplyCamOffset(), Ak101Recoil::Init(), Ak74Recoil::Init(), AkmRecoil::Init(), Aks74uRecoil::Init(), AUGRecoil::Init(), B95Recoil::Init(), Colt1911Recoil::Init(), CrossbowRecoil::Init(), CZ527Recoil::Init(), CZ550Recoil::Init(), Cz75Recoil::Init(), DEagleRecoil::Init(), DerringerRecoil::Init(), FALRecoil::Init(), FamasRecoil::Init(), Fnx45Recoil::Init(), GlockRecoil::Init(), Izh18Recoil::Init(), Izh18SawedOffRecoil::Init(), Izh18ShotgunRecoil::Init(), Izh43Recoil::Init(), LongHornRecoil::Init(), M14Recoil::Init(), M16A2Recoil::Init(), M4a1Recoil::Init(), M79Recoil::Init(), MagnumRecoil::Init(), MakarovRecoil::Init(), MkiiRecoil::Init(), MosinRecoil::Init(), MosinSawedOffRecoil::Init(), Mp133Recoil::Init(), Mp5kRecoil::Init(), P1Recoil::Init(), PP19Recoil::Init(), RepeaterRecoil::Init(), Ruger1022Recoil::Init(), ScoutRecoil::Init(), SiagaRecoil::Init(), Cz61Recoil::Init(), SKSRecoil::Init(), SSG82Recoil::Init(), SvdRecoil::Init(), Ump45Recoil::Init(), VSSRecoil::Init(), Winchester70Recoil::Init(), PostInit(), and RecoilBase().
|
protected |
Definition at line 10 of file RecoilBase.c.
Referenced by PostInit(), and Update().
|
protected |
Definition at line 9 of file RecoilBase.c.
Referenced by ApplyMouseOffset(), PostInit(), and Update().
|
protected |
Definition at line 8 of file RecoilBase.c.
Referenced by Update().
|
protected |
Definition at line 20 of file RecoilBase.c.
Referenced by ApplyCamOffset(), ApplyHandsOffset(), and Update().
|
private |
Definition at line 5 of file RecoilBase.c.
Referenced by GetWeapon(), and RecoilBase().