Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
DayZPlayerImplementAiming Class Reference

at which point does the stabilization start to get affected More...

Protected Member Functions

void DayZPlayerImplementAiming (DayZPlayerImplement player)
 
void SetRecoil (Weapon_Base weapon)
 
void RequestKuruShake (float amount)
 
void OnRaiseBegin (DayZPlayerImplement player)
 
void OnFinisherBegin (float currentAimY)
 
void OnSwayStateChange (int state)
 
float GetSwayWeight ()
 
void SetAimNoiseAllowed (bool state)
 
bool IsAimNoiseAllowed ()
 
void SetProceduralRecoilEnabled (bool state)
 
bool IsProceduralRecoilEnabled ()
 
void SetCamShakeValues (float x_axis, float y_axis)
 
bool ProcessStealthFilters (float pDt, SDayZPlayerAimingModel pModel)
 
bool ProcessAimFilters (float pDt, SDayZPlayerAimingModel pModel, int stance_index)
 
float CalculateSwayMultiplier ()
 
float CalculateSpeedMultiplier (float stamina)
 
bool UpdateSwayState (int state)
 
int GetCurrentSwayState ()
 
void ApplyBreathingPattern (out float x_axis, out float y_axis, float pAmplitude, float pTotalTime, float weight)
 
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)
 
void ApplyShakes (out float x_axis, out float y_axis, int level)
 
float CalculateWeight (int stance_index, float current_stamina, float camera_sway_modifier, bool holding_breath)
 
void DbgPrintAimingImplement (string val)
 

Protected Attributes

const float SWAY_WEIGHT_SCALER = 1
 
float m_HorizontalNoise
 
float m_HorizontalTargetValue
 
float m_HorizontalNoiseVelocity [1] = {0}
 
DayZPlayerImplement m_PlayerDpi
 
PlayerBase m_PlayerPb
 
float m_TotalTime
 
float m_ReferenceTime = 0
 
float m_StaminaPercentage
 
float m_HoldBreathSwayCoef = 1.0
 stamina percentage at hold breath start
 
float m_SwayStateStartTime
 proportionally shortens de/stabilization process and duration. Also affects stamina consumption (temporary!)
 
float m_LastSwayMultiplier = PlayerSwayConstants.SWAY_MULTIPLIER_DEFAULT
 
float m_StateStartSwayMultiplier
 
float m_HorizontalNoiseXAxisOffset
 
float m_BreathingXAxisOffset
 
float m_BreathingYAxisOffset
 
bool m_HoldingBreathSet
 
bool m_AimNoiseAllowed = true
 
bool m_ProceduralRecoilEnabled = true
 
ref RecoilBase m_CurrentRecoil
 
int m_ShakeCount
 
float m_SwayWeight
 
float m_MaxVelocity
 
ref KuruShake m_KuruShake
 
float m_CamShakeX
 
float m_CamShakeY
 
vector m_SwayModifier = "1 1 1"
 
int m_SwayState = -1
 
float m_StealthAimY_Last
 
float m_FilterVelocityStealthAimY [1] = {0}
 

Static Protected Attributes

static float m_AimXClampRanges [] = { -180, -20, 90, 0, -50, 90, 180, -20, 90 }
 

Detailed Description

at which point does the stabilization start to get affected

Definition at line 32 of file dayzplayerimplementaiming.c.

Constructor & Destructor Documentation

◆ DayZPlayerImplementAiming()

void DayZPlayerImplementAiming::DayZPlayerImplementAiming ( DayZPlayerImplement player)
protected

Definition at line 75 of file dayzplayerimplementaiming.c.

Member Function Documentation

◆ ApplyBreathingPattern()

void DayZPlayerImplementAiming::ApplyBreathingPattern ( out float x_axis,
out float y_axis,
float pAmplitude,
float pTotalTime,
float weight )
protected

Definition at line 373 of file dayzplayerimplementaiming.c.

◆ ApplyHorizontalNoise()

void DayZPlayerImplementAiming::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 )
protected

Definition at line 394 of file dayzplayerimplementaiming.c.

◆ ApplyShakes()

void DayZPlayerImplementAiming::ApplyShakes ( out float x_axis,
out float y_axis,
int level )
protected

Definition at line 412 of file dayzplayerimplementaiming.c.

◆ CalculateSpeedMultiplier()

float DayZPlayerImplementAiming::CalculateSpeedMultiplier ( float stamina)
protected

Definition at line 349 of file dayzplayerimplementaiming.c.

◆ CalculateSwayMultiplier()

float DayZPlayerImplementAiming::CalculateSwayMultiplier ( )
protected

Definition at line 308 of file dayzplayerimplementaiming.c.

◆ CalculateWeight()

float DayZPlayerImplementAiming::CalculateWeight ( int stance_index,
float current_stamina,
float camera_sway_modifier,
bool holding_breath )
protected

Definition at line 427 of file dayzplayerimplementaiming.c.

◆ DbgPrintAimingImplement()

void DayZPlayerImplementAiming::DbgPrintAimingImplement ( string val)
protected

Definition at line 460 of file dayzplayerimplementaiming.c.

◆ GetCurrentSwayState()

int DayZPlayerImplementAiming::GetCurrentSwayState ( )
protected

Definition at line 368 of file dayzplayerimplementaiming.c.

◆ GetSwayWeight()

float DayZPlayerImplementAiming::GetSwayWeight ( )
protected

Definition at line 124 of file dayzplayerimplementaiming.c.

◆ IsAimNoiseAllowed()

bool DayZPlayerImplementAiming::IsAimNoiseAllowed ( )
protected

Definition at line 134 of file dayzplayerimplementaiming.c.

◆ IsProceduralRecoilEnabled()

bool DayZPlayerImplementAiming::IsProceduralRecoilEnabled ( )
protected

Definition at line 144 of file dayzplayerimplementaiming.c.

◆ OnFinisherBegin()

void DayZPlayerImplementAiming::OnFinisherBegin ( float currentAimY)
protected

Definition at line 105 of file dayzplayerimplementaiming.c.

◆ OnRaiseBegin()

void DayZPlayerImplementAiming::OnRaiseBegin ( DayZPlayerImplement player)
protected

Definition at line 96 of file dayzplayerimplementaiming.c.

◆ OnSwayStateChange()

void DayZPlayerImplementAiming::OnSwayStateChange ( int state)
protected

Definition at line 111 of file dayzplayerimplementaiming.c.

◆ ProcessAimFilters()

bool DayZPlayerImplementAiming::ProcessAimFilters ( float pDt,
SDayZPlayerAimingModel pModel,
int stance_index )
protected

get sway

get recoil

hands offset

cam offset

clamp aim ranges

mouse offset

Definition at line 162 of file dayzplayerimplementaiming.c.

◆ ProcessStealthFilters()

bool DayZPlayerImplementAiming::ProcessStealthFilters ( float pDt,
SDayZPlayerAimingModel pModel )
protected

Definition at line 155 of file dayzplayerimplementaiming.c.

◆ RequestKuruShake()

void DayZPlayerImplementAiming::RequestKuruShake ( float amount)
protected

Definition at line 90 of file dayzplayerimplementaiming.c.

◆ SetAimNoiseAllowed()

void DayZPlayerImplementAiming::SetAimNoiseAllowed ( bool state)
protected

Definition at line 129 of file dayzplayerimplementaiming.c.

◆ SetCamShakeValues()

void DayZPlayerImplementAiming::SetCamShakeValues ( float x_axis,
float y_axis )
protected

Definition at line 149 of file dayzplayerimplementaiming.c.

◆ SetProceduralRecoilEnabled()

void DayZPlayerImplementAiming::SetProceduralRecoilEnabled ( bool state)
protected

Definition at line 139 of file dayzplayerimplementaiming.c.

◆ SetRecoil()

void DayZPlayerImplementAiming::SetRecoil ( Weapon_Base weapon)
protected

Definition at line 82 of file dayzplayerimplementaiming.c.

◆ UpdateSwayState()

bool DayZPlayerImplementAiming::UpdateSwayState ( int state)
protected

Definition at line 354 of file dayzplayerimplementaiming.c.

Member Data Documentation

◆ m_AimNoiseAllowed

bool DayZPlayerImplementAiming::m_AimNoiseAllowed = true
protected

Definition at line 58 of file dayzplayerimplementaiming.c.

◆ m_AimXClampRanges

float DayZPlayerImplementAiming::m_AimXClampRanges[] = { -180, -20, 90, 0, -50, 90, 180, -20, 90 }
staticprotected

Definition at line 73 of file dayzplayerimplementaiming.c.

◆ m_BreathingXAxisOffset

float DayZPlayerImplementAiming::m_BreathingXAxisOffset
protected

Definition at line 55 of file dayzplayerimplementaiming.c.

◆ m_BreathingYAxisOffset

float DayZPlayerImplementAiming::m_BreathingYAxisOffset
protected

Definition at line 56 of file dayzplayerimplementaiming.c.

◆ m_CamShakeX

float DayZPlayerImplementAiming::m_CamShakeX
protected

Definition at line 65 of file dayzplayerimplementaiming.c.

◆ m_CamShakeY

float DayZPlayerImplementAiming::m_CamShakeY
protected

Definition at line 66 of file dayzplayerimplementaiming.c.

◆ m_CurrentRecoil

ref RecoilBase DayZPlayerImplementAiming::m_CurrentRecoil
protected

Definition at line 60 of file dayzplayerimplementaiming.c.

◆ m_FilterVelocityStealthAimY

float DayZPlayerImplementAiming::m_FilterVelocityStealthAimY[1] = {0}
protected

Definition at line 71 of file dayzplayerimplementaiming.c.

◆ m_HoldBreathSwayCoef

float DayZPlayerImplementAiming::m_HoldBreathSwayCoef = 1.0
protected

stamina percentage at hold breath start

Definition at line 49 of file dayzplayerimplementaiming.c.

◆ m_HoldingBreathSet

bool DayZPlayerImplementAiming::m_HoldingBreathSet
protected

Definition at line 57 of file dayzplayerimplementaiming.c.

◆ m_HorizontalNoise

float DayZPlayerImplementAiming::m_HorizontalNoise
protected

Definition at line 41 of file dayzplayerimplementaiming.c.

◆ m_HorizontalNoiseVelocity

float DayZPlayerImplementAiming::m_HorizontalNoiseVelocity[1] = {0}
protected

Definition at line 43 of file dayzplayerimplementaiming.c.

◆ m_HorizontalNoiseXAxisOffset

float DayZPlayerImplementAiming::m_HorizontalNoiseXAxisOffset
protected

Definition at line 54 of file dayzplayerimplementaiming.c.

◆ m_HorizontalTargetValue

float DayZPlayerImplementAiming::m_HorizontalTargetValue
protected

Definition at line 42 of file dayzplayerimplementaiming.c.

◆ m_KuruShake

ref KuruShake DayZPlayerImplementAiming::m_KuruShake
protected

Definition at line 64 of file dayzplayerimplementaiming.c.

◆ m_LastSwayMultiplier

float DayZPlayerImplementAiming::m_LastSwayMultiplier = PlayerSwayConstants.SWAY_MULTIPLIER_DEFAULT
protected

Definition at line 52 of file dayzplayerimplementaiming.c.

◆ m_MaxVelocity

float DayZPlayerImplementAiming::m_MaxVelocity
protected

Definition at line 63 of file dayzplayerimplementaiming.c.

◆ m_PlayerDpi

DayZPlayerImplement DayZPlayerImplementAiming::m_PlayerDpi
protected

Definition at line 44 of file dayzplayerimplementaiming.c.

◆ m_PlayerPb

PlayerBase DayZPlayerImplementAiming::m_PlayerPb
protected

Definition at line 45 of file dayzplayerimplementaiming.c.

◆ m_ProceduralRecoilEnabled

bool DayZPlayerImplementAiming::m_ProceduralRecoilEnabled = true
protected

Definition at line 59 of file dayzplayerimplementaiming.c.

◆ m_ReferenceTime

float DayZPlayerImplementAiming::m_ReferenceTime = 0
protected

Definition at line 47 of file dayzplayerimplementaiming.c.

◆ m_ShakeCount

int DayZPlayerImplementAiming::m_ShakeCount
protected

Definition at line 61 of file dayzplayerimplementaiming.c.

◆ m_StaminaPercentage

float DayZPlayerImplementAiming::m_StaminaPercentage
protected

Definition at line 48 of file dayzplayerimplementaiming.c.

◆ m_StateStartSwayMultiplier

float DayZPlayerImplementAiming::m_StateStartSwayMultiplier
protected

Definition at line 53 of file dayzplayerimplementaiming.c.

◆ m_StealthAimY_Last

float DayZPlayerImplementAiming::m_StealthAimY_Last
protected

Definition at line 70 of file dayzplayerimplementaiming.c.

◆ m_SwayModifier

vector DayZPlayerImplementAiming::m_SwayModifier = "1 1 1"
protected

Definition at line 67 of file dayzplayerimplementaiming.c.

◆ m_SwayState

int DayZPlayerImplementAiming::m_SwayState = -1
protected

Definition at line 68 of file dayzplayerimplementaiming.c.

◆ m_SwayStateStartTime

float DayZPlayerImplementAiming::m_SwayStateStartTime
protected

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

Definition at line 50 of file dayzplayerimplementaiming.c.

◆ m_SwayWeight

float DayZPlayerImplementAiming::m_SwayWeight
protected

Definition at line 62 of file dayzplayerimplementaiming.c.

◆ m_TotalTime

float DayZPlayerImplementAiming::m_TotalTime
protected

Definition at line 46 of file dayzplayerimplementaiming.c.

◆ SWAY_WEIGHT_SCALER

const float DayZPlayerImplementAiming::SWAY_WEIGHT_SCALER = 1
protected

This HeadingModel - Clamps heading

Definition at line 40 of file dayzplayerimplementaiming.c.


The documentation for this class was generated from the following file: