class DayZPlayerImplementAimingSource
Constructors 1
void DayZPlayerImplementAiming(DayZPlayerImplement player)Referenced by DayZPlayerImplement.DayZPlayerImplement()
Constants 1
protected const float SWAY_WEIGHT_SCALER = 1This HeadingModel - Clamps heading
Referenced by CalculateWeight()
Members 30
protected float m_HorizontalNoiseReferenced by ApplyHorizontalNoise()
protected float m_HorizontalTargetValueReferenced by ApplyHorizontalNoise()
protected float m_HorizontalNoiseVelocity[1] = {0}Referenced by ApplyHorizontalNoise()
protected DayZPlayerImplement m_PlayerDpiprotected PlayerBase m_PlayerPbReferenced by ApplyHorizontalNoise(), ApplyShakes(), CalculateSwayMultiplier()
Show 4 more
, DayZPlayerImplementAiming(), OnSwayStateChange(), ProcessAimFilters(), and RequestKuruShake()protected float m_TotalTimeprotected float m_ReferenceTime = 0protected float m_StaminaPercentagestamina percentage at hold breath start
Referenced by ProcessAimFilters()
protected float m_HoldBreathSwayCoef = 1.0proportionally shortens de/stabilization process and duration. Also affects stamina consumption (temporary!)
protected float m_SwayStateStartTimeprotected float m_LastSwayMultiplier = PlayerSwayConstants.SWAY_MULTIPLIER_DEFAULTReferenced by ApplyBreathingPattern(), ApplyHorizontalNoise(), CalculateSwayMultiplier()
Show 2 more
, ProcessAimFilters(), and UpdateSwayState()protected float m_StateStartSwayMultiplierReferenced by UpdateSwayState()
protected float m_HorizontalNoiseXAxisOffsetprotected float m_BreathingXAxisOffsetprotected float m_BreathingYAxisOffsetprotected bool m_HoldingBreathSetReferenced by ProcessAimFilters()
protected bool m_AimNoiseAllowed = trueprotected bool m_ProceduralRecoilEnabled = trueprotected ref RecoilBase m_CurrentRecoilprotected int m_ShakeCountReferenced by ApplyShakes()
protected float m_SwayWeightprotected float m_MaxVelocityReferenced by ApplyHorizontalNoise()
protected ref KuruShake m_KuruShakeprotected float m_CamShakeXprotected float m_CamShakeYprotected vector m_SwayModifier = "1 1 1""max_speed_noise radius_noise overall_speed"
protected int m_SwayState = -1protected float m_StealthAimY_Lastprotected float m_FilterVelocityStealthAimY[1] = {0}protected static float m_AimXClampRanges[] = { -180, -20, 90, 0, -50, 90, 180, -20, 90 }Referenced by ProcessAimFilters()
Methods 22
void SetRecoil(Weapon_Base weapon)Referenced by WeaponFire.OnEntry(), WeaponFireMultiMuzzle.OnEntry(), WeaponFireToJam.OnEntry()
Show 1 more
, WeaponFireWithEject.OnEntry()void RequestKuruShake(float amount)Referenced by PlayerBase.OnSyncJuncture()
void OnRaiseBegin(DayZPlayerImplement player)References Class.Cast(), Man.GetEntityInHands(), Weapon_Base.GetPropertyModifierObject()
Show 1 more
, m_SwayModifierReferenced by DayZPlayerImplement.AimingModel()
void OnFinisherBegin(float currentAimY)Referenced by DayZPlayerImplement.AimingModel()
void OnSwayStateChange(int state)Referenced by UpdateSwayState()
void SetAimNoiseAllowed(bool state)References m_AimNoiseAllowed
bool IsAimNoiseAllowed()References m_AimNoiseAllowed
Referenced by PluginDiagMenuClient.CBWeaponAimNoise()
void SetProceduralRecoilEnabled(bool state)References m_ProceduralRecoilEnabled
bool IsProceduralRecoilEnabled()References m_ProceduralRecoilEnabled
Referenced by PluginDiagMenuClient.CBWeaponRecoil()
bool ProcessStealthFilters(float pDt, SDayZPlayerAimingModel pModel)References Math.SmoothCD(), SDayZPlayerAimingModel.m_fAimYMouseShift, SDayZPlayerAimingModel.m_fCurrentAimY
Show 2 more
, m_FilterVelocityStealthAimY, and m_StealthAimY_LastReferenced by DayZPlayerImplement.AimingModel()
bool ProcessAimFilters(float pDt, SDayZPlayerAimingModel pModel, int stance_index)References Math.AbsFloat(), ApplyBreathingPattern(), ApplyHorizontalNoise()
Show 46 more
, ApplyShakes(), CalculateSpeedMultiplier(), CalculateSwayMultiplier(), CalculateWeight(), Math.Clamp(), DbgPrintAimingImplement(), PlayerBase.DepleteStaminaEx(), PlayerBase.GetShakeLevel(), Entity.GetSimulationTimeStamp(), PlayerBase.GetStaminaHandler(), StaminaHandler.GetSyncedStaminaNormalized(), Math.InverseLerp(), PlayerBase.IsHoldingBreath(), DayZPlayerImplement.IsInOptics(), Math.Lerp(), DayZPlayerUtils.LinearRangeClamp(), RecoilBase.Update(), KuruShake.Update(), PlayerSwayConstants.HOLD_BREATH_STAMINA_THRESHOLD, m_AimXClampRanges, m_BreathingXAxisOffset, m_BreathingYAxisOffset, m_CamShakeX, m_CamShakeY, m_CurrentRecoil, SDayZPlayerAimingModel.m_fAimXCamOffset, SDayZPlayerAimingModel.m_fAimXHandsOffset, SDayZPlayerAimingModel.m_fAimXMouseShift, SDayZPlayerAimingModel.m_fAimYCamOffset, SDayZPlayerAimingModel.m_fAimYHandsOffset, SDayZPlayerAimingModel.m_fAimYMouseShift, SDayZPlayerAimingModel.m_fCurrentAimX, SDayZPlayerAimingModel.m_fCurrentAimY, m_HoldBreathSwayCoef, m_HoldingBreathSet, m_HorizontalNoiseXAxisOffset, m_KuruShake, m_LastSwayMultiplier, m_PlayerDpi, m_PlayerPb, m_ReferenceTime, m_StaminaPercentage, m_SwayModifier, m_SwayWeight, m_TotalTime, and PlayerSwayConstants.SWAY_MULTIPLIER_DEFAULTReferenced by DayZPlayerImplement.AimingModel()
protected float CalculateSwayMultiplier()mouse offset
References Math.Clamp(), PlayerBase.IsHoldingBreath(), Math.Lerp()
Show 13 more
, UpdateSwayState(), m_HoldBreathSwayCoef, m_LastSwayMultiplier, m_PlayerPb, m_ReferenceTime, m_SwayStateStartTime, m_TotalTime, PlayerSwayConstants.SWAY_MULTIPLIER_EXHAUSTED, PlayerSwayConstants.SWAY_MULTIPLIER_STABLE, PlayerSwayConstants.SWAY_TIME_EXHAUSTED, PlayerSwayConstants.SWAY_TIME_IN, PlayerSwayConstants.SWAY_TIME_OUT, and PlayerSwayConstants.SWAY_TIME_STABLEReferenced by ProcessAimFilters()
References m_SwayModifier
Referenced by ProcessAimFilters()
References OnSwayStateChange(), m_LastSwayMultiplier, m_StateStartSwayMultiplier
Show 3 more
, m_SwayState, m_SwayStateStartTime, and m_TotalTimeint GetCurrentSwayState()References m_SwayState
protected void ApplyBreathingPattern(out float x_axis, out float y_axis, float pAmplitude, float pTotalTime, float weight)Referenced by ProcessAimFilters()
protected void ApplyHorizontalNoise(out float x_axis, out float y_axis, float smooth_time, float max_velocity_low, float max_velocity_high, float velocity_modifier, float max_distance, float weight, float pDt)References Math.AbsFloat(), PlayerBase.GetRandomGeneratorSyncManager(), RandomGeneratorSyncManager.GetRandomInRange()
Referenced by ProcessAimFilters()
References PlayerBase.GetRandomGeneratorSyncManager(), RandomGeneratorSyncManager.GetRandomInRange(), Math.Round()
Show 3 more
, m_PlayerPb, m_ShakeCount, and PlayerBase.SHAKE_LEVEL_MAXReferenced by ProcessAimFilters()
protected float CalculateWeight(int stance_index, float current_stamina, float camera_sway_modifier, bool holding_breath)References DbgPrintAimingImplement(), Human.GetCommand_Move(), HumanCommandMove.IsInRoll()
Show 4 more
, m_AimNoiseAllowed, m_PlayerDpi, PlayerSwayConstants.SWAY_ROLL, and SWAY_WEIGHT_SCALERReferenced by ProcessAimFilters()
void DbgPrintAimingImplement(string val)