DayZ 1.24
Loading...
Searching...
No Matches
SensesAIEvaluate.c
Go to the documentation of this file.
2{
3 static float SURFACE_NOISE_WEIGHT = 0.25;
4
17
18 //Noise multiplier based on player speed
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 }
52
53
54 //Noise multiplier based on type of boots
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 }
72
73 //Gets noise multiplayer base on surface player walks on
75 {
76 return playerImplement.GetSurfaceNoise();
77 }
78}
AnimBootsType
static int StanceToMovementIdxTranslation(HumanMovementState pState)
static float GetNoiseMultiplierByPlayerSpeed(DayZPlayerImplement playerImplement)
static float GetNoiseMultiplierBySurface(DayZPlayerImplement playerImplement)
static float GetNoiseMultiplierByShoes(DayZPlayerImplement playerImplement)
static float GetNoiseMultiplier(DayZPlayerImplement playerImplement)
static float SURFACE_NOISE_WEIGHT
static const float AI_NOISE_RUN
static const float AI_NOISE_SHOES_BOOTS
static const float AI_NOISE_CROUCH_RUN
static const float AI_NOISE_SHOES_NONE
static const float AI_NOISE_SPRINT
static const float AI_NOISE_IDLE
static const float AI_NOISE_ROLL
static const float AI_NOISE_WALK
static const float AI_NOISE_SHOES_SNEAKERS
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597