DayZ 1.24
Loading...
Searching...
No Matches
NoiseAIEvaluate Class Reference
Collaboration diagram for NoiseAIEvaluate:
[legend]

Static Private Member Functions

static float GetNoiseMultiplier (DayZPlayerImplement playerImplement)
 
static float GetNoiseMultiplierByPlayerSpeed (DayZPlayerImplement playerImplement)
 
static float GetNoiseMultiplierByShoes (DayZPlayerImplement playerImplement)
 
static float GetNoiseMultiplierBySurface (DayZPlayerImplement playerImplement)
 

Static Private Attributes

static float SURFACE_NOISE_WEIGHT = 0.25
 

Detailed Description

Definition at line 1 of file SensesAIEvaluate.c.

Member Function Documentation

◆ GetNoiseMultiplier()

static float NoiseAIEvaluate::GetNoiseMultiplier ( DayZPlayerImplement playerImplement)
inlinestaticprivate

Definition at line 5 of file SensesAIEvaluate.c.

6 {
10
14
15 return avgNoise;
16 }
static float GetNoiseMultiplierByPlayerSpeed(DayZPlayerImplement playerImplement)
static float GetNoiseMultiplierBySurface(DayZPlayerImplement playerImplement)
static float GetNoiseMultiplierByShoes(DayZPlayerImplement playerImplement)
static float SURFACE_NOISE_WEIGHT

References GetNoiseMultiplierByPlayerSpeed(), GetNoiseMultiplierByShoes(), GetNoiseMultiplierBySurface(), and SURFACE_NOISE_WEIGHT.

Referenced by DayZPlayer::OnStepEvent(), and ProcessNoiseComponents().

◆ GetNoiseMultiplierByPlayerSpeed()

static float NoiseAIEvaluate::GetNoiseMultiplierByPlayerSpeed ( DayZPlayerImplement playerImplement)
inlinestaticprivate

Definition at line 19 of file SensesAIEvaluate.c.

20 {
22
23 playerImplement.GetMovementState(hms);
24
25 if (playerImplement.GetCommand_Move() && playerImplement.GetCommand_Move().IsInRoll())
26 {
27 // When rolling we are prone, so we load that Noise value, hence we multiply
29 }
30
32 {
33 case DayZPlayerConstants.MOVEMENTIDX_IDLE:
35
36 case DayZPlayerConstants.MOVEMENTIDX_WALK:
38
39 case DayZPlayerConstants.MOVEMENTIDX_CROUCH_RUN:
41
42 case DayZPlayerConstants.MOVEMENTIDX_RUN:
44
45 case DayZPlayerConstants.MOVEMENTIDX_SPRINT:
47 }
48
49 //Default return
51 }
static int StanceToMovementIdxTranslation(HumanMovementState pState)
static const float AI_NOISE_RUN
static const float AI_NOISE_CROUCH_RUN
static const float AI_NOISE_SPRINT
static const float AI_NOISE_IDLE
static const float AI_NOISE_ROLL
static const float AI_NOISE_WALK
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References PlayerConstants::AI_NOISE_CROUCH_RUN, PlayerConstants::AI_NOISE_IDLE, PlayerConstants::AI_NOISE_ROLL, PlayerConstants::AI_NOISE_RUN, PlayerConstants::AI_NOISE_SPRINT, PlayerConstants::AI_NOISE_WALK, and AITargetCallbacksPlayer::StanceToMovementIdxTranslation().

Referenced by GetNoiseMultiplier(), and ShowCoefsDbg().

◆ GetNoiseMultiplierByShoes()

static float NoiseAIEvaluate::GetNoiseMultiplierByShoes ( DayZPlayerImplement playerImplement)
inlinestaticprivate

Definition at line 55 of file SensesAIEvaluate.c.

56 {
57 switch (playerImplement.GetBootsType())
58 {
59 case AnimBootsType.None:
61
62 case AnimBootsType.Sneakers:
64
65 case AnimBootsType.Boots:
67 }
68
69 //Default return
71 }
AnimBootsType
static const float AI_NOISE_SHOES_BOOTS
static const float AI_NOISE_SHOES_NONE
static const float AI_NOISE_SHOES_SNEAKERS

References PlayerConstants::AI_NOISE_SHOES_BOOTS, PlayerConstants::AI_NOISE_SHOES_NONE, and PlayerConstants::AI_NOISE_SHOES_SNEAKERS.

Referenced by GetNoiseMultiplier(), and ShowCoefsDbg().

◆ GetNoiseMultiplierBySurface()

static float NoiseAIEvaluate::GetNoiseMultiplierBySurface ( DayZPlayerImplement playerImplement)
inlinestaticprivate

Definition at line 74 of file SensesAIEvaluate.c.

75 {
76 return playerImplement.GetSurfaceNoise();
77 }

Referenced by GetNoiseMultiplier(), and ShowCoefsDbg().

Member Data Documentation

◆ SURFACE_NOISE_WEIGHT

float NoiseAIEvaluate::SURFACE_NOISE_WEIGHT = 0.25
staticprivate

Definition at line 3 of file SensesAIEvaluate.c.

Referenced by GetNoiseMultiplier().


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