class RecoilBaseSource
Derived classes
View all 51 descendants
- Ak101Recoil
- Ak74Recoil
- AkmRecoil
- Aks74uRecoil
- AUGRecoil
- B95Recoil
- Colt1911Recoil
- CrossbowRecoil
- CZ527Recoil
- CZ550Recoil
- Cz61Recoil
- Cz75Recoil
- DEagleRecoil
- DefaultRecoil
- DerringerRecoil
- FALRecoil
- FamasRecoil
- Fnx45Recoil
- GlockRecoil
- Izh18Recoil
- Izh18SawedOffRecoil
- Izh18ShotgunRecoil
- Izh43Recoil
- LongHornRecoil
- M14Recoil
- M16A2Recoil
- M4a1Recoil
- M79Recoil
- MagnumRecoil
- MakarovRecoil
- MkiiRecoil
- MosinRecoil
- MosinSawedOffRecoil
- Mp133Recoil
- Mp5kRecoil
- P1Recoil
- PM73RakRecoil
- PP19Recoil
- R12Recoil
- RepeaterRecoil
- Ruger1022Recoil
- SCARHRecoil
- ScoutRecoil
- SiagaRecoil
- SKSRecoil
- SSG82Recoil
- SV98Recoil
- SvdRecoil
- Ump45Recoil
- VSSRecoil
- Winchester70Recoil
Constructors 1
void RecoilBase(Weapon_Base weapon)References Class.Cast(), GetDayZGame(), EntityAI.GetHierarchyRootPlayer()
Show 7 more
, Init(), DayZGame.IsAimLogEnabled(), PostInit(), m_DebugMode, m_HandsCurvePoints, m_Player, and m_WeaponMembers 20
bool m_DebugModeWeapon_Base m_WeaponPlayerBase m_Playerprotected float m_ReloadTimereload time config parameter of the weapon
protected vector m_RecoilModifierprotected bool m_IsClientfloat m_MouseOffsetRangeMinin degrees min
float m_MouseOffsetRangeMaxin 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.05how far the camera will travel along the z-axis in cm
float m_MouseOffsetDistancehow far should the mouse travel
float m_TimeNormalizedprotected vector m_MouseOffsetTargetmove the mouse towards this point
protected vector m_MouseOffsetTargetAccumthe overall mouse offset so far(all deltas accumulated)
Referenced by ApplyMouseOffset()
Methods 10
void Init()Referenced by RecoilBase()
void PostInit(Weapon_Base weapon)References Weapon.GetCurrentMuzzle(), PlayerBase.GetRandomGeneratorSyncManager(), RandomGeneratorSyncManager.GetRandomInRange()
Show 17 more
, GetRecoilModifier(), Weapon.GetReloadTime(), GetWeapon(), CGame.IsDedicatedServer(), Print(), vector.YawToVector(), m_Angle, m_CamOffsetDistance, m_DebugMode, m_IsClient, m_MouseOffsetDistance, m_MouseOffsetRangeMax, m_MouseOffsetRangeMin, m_MouseOffsetTarget, m_Player, m_RecoilModifier, and m_ReloadTimeReferenced by RecoilBase()
void Destroy()Destroys this object next update tick
References m_DeleteRequested
Referenced by Update()
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)References ApplyCamOffset(), ApplyHandsOffset(), ApplyMouseOffset()
Show 12 more
, Math.Clamp(), Destroy(), Math.InverseLerp(), PrintString(), float.ToString(), m_DebugMode, m_DeleteRequested, m_IsClient, m_RecoilModifier, m_ReloadTime, m_Time, and m_TimeNormalizedReferenced by DayZPlayerImplementAiming.ProcessAimFilters()
void ApplyCamOffset(SDayZPlayerAimingModel pModel)Referenced by Update()
References Math.Clamp(), GetPositionOnCurve(), m_HandsCurvePoints
Show 2 more
, m_HandsOffsetRelativeTime, and m_TimeNormalizedReferenced by Update()
References Math.Clamp(), PrintString(), vector.ToString()
Show 6 more
, vector.ToString(), m_DebugMode, m_MouseOffsetRelativeTime, m_MouseOffsetTarget, m_MouseOffsetTargetAccum, and m_ReloadTimeReferenced by Update()
vector GetRecoilModifier(Weapon_Base weapon)References Weapon_Base.GetPropertyModifierObject()
Referenced by PostInit()
References Math3D.Curve()
Referenced by ApplyHandsOffset()