DIFF

class DayZPlayerImplementAimingSource

Constructors 1

void DayZPlayerImplementAiming(DayZPlayerImplement player)
References Class.CastTo(), UpdateSwayState(), m_PlayerDpi
Show 1 more, m_PlayerPb

Constants 1

protected const float SWAY_WEIGHT_SCALER = 1

This HeadingModel - Clamps heading

Referenced by CalculateWeight()

Members 30

protected float m_HorizontalNoise
protected float m_HorizontalTargetValue
protected float m_HorizontalNoiseVelocity[1] = {0}
protected float m_TotalTime
protected float m_ReferenceTime = 0
protected float m_StaminaPercentage

stamina percentage at hold breath start

Referenced by ProcessAimFilters()
protected float m_HoldBreathSwayCoef = 1.0

proportionally shortens de/stabilization process and duration. Also affects stamina consumption (temporary!)

protected float m_SwayStateStartTime
protected float m_LastSwayMultiplier = PlayerSwayConstants.SWAY_MULTIPLIER_DEFAULT
protected float m_StateStartSwayMultiplier
Referenced by UpdateSwayState()
protected float m_HorizontalNoiseXAxisOffset
protected float m_BreathingXAxisOffset
protected float m_BreathingYAxisOffset
protected bool m_HoldingBreathSet
Referenced by ProcessAimFilters()
protected bool m_AimNoiseAllowed = true
protected bool m_ProceduralRecoilEnabled = true
protected ref RecoilBase m_CurrentRecoil
Referenced by ProcessAimFilters(), and SetRecoil()
protected int m_ShakeCount
Referenced by ApplyShakes()
protected float m_SwayWeight
protected float m_MaxVelocity
protected ref KuruShake m_KuruShake
protected float m_CamShakeX
protected float m_CamShakeY
protected vector m_SwayModifier = "1 1 1"

"max_speed_noise radius_noise overall_speed"

protected int m_SwayState = -1
protected float m_StealthAimY_Last
protected 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 RequestKuruShake(float amount)
void OnFinisherBegin(float currentAimY)
void OnSwayStateChange(int state)
Referenced by UpdateSwayState()
float GetSwayWeight()
References m_SwayWeight
bool IsAimNoiseAllowed()
void SetProceduralRecoilEnabled(bool state)
bool IsProceduralRecoilEnabled()
void SetCamShakeValues(float x_axis, float y_axis)
References m_CamShakeX, and m_CamShakeY
float CalculateSpeedMultiplier(float stamina)
References m_SwayModifier
Referenced by ProcessAimFilters()
int 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 ApplyShakes(out float x_axis, out float y_axis, int level)
Referenced by ProcessAimFilters()
protected float CalculateWeight(int stance_index, float current_stamina, float camera_sway_modifier, bool holding_breath)
Referenced by ProcessAimFilters()
void DbgPrintAimingImplement(string val)