Data Structures | |
| class | PresenceNotifierNoiseEvents |
Enumerations | |
| enum | EPresenceNotifierNoiseEventType { LAND_LIGHT , LAND_HEAVY } |
Functions | |
| void | PresenceNotifierNoiseEvent (float pValue, float pLength) |
| float | GetTimerLength () |
| int | GetValue () |
| void | PluginPresenceNotifier () |
| void | Init (PlayerBase player) |
| void | EnableDebug (bool pEnabled) |
| protected void | ShowCoefsDbg (bool pEnabled) |
| int | GetNoisePresence () |
| returns actual noise presence of player | |
| int | GetVisualPresence () |
| returns actual visibility presence of player | |
| void | ProcessEvent (EPresenceNotifierNoiseEventType pEventType) |
| processing of external one-time events (land, fire, etc.) | |
| protected int | ProcessVisualComponents () |
| protected int | ProcessNoiseComponents () |
| protected float | GetMovementSpeedVisualCoef () |
| Visibility. | |
| protected float | GetMovementStanceVisualCoef () |
| protected int | GetMovementSpeedNoiseComponent () |
| protected int | GetBootsNoiseComponent () |
| protected int | GetSurfaceNoiseComponent () |
| DEPRECATED. | |
| protected int | GetExternalNoiseEventsComponent () |
| DEPRECATED. | |
Variables | |
| enum EPresenceNotifierNoiseEventType | m_TimerLength |
| protected int | m_Value |
| class PresenceNotifierNoiseEvents | windowPosX = 0 |
| dbgUI settings | |
| const int | windowPosY = 10 |
| const int | mainPanelSizeX = 200 |
| const int | mainPanelSizeY = 1 |
| const int | margin = 10 |
| const int | NOISE_LEVEL_MIN = 0 |
| noise limits | |
| const int | NOISE_LEVEL_MAX = 5 |
| const int | SURFACE_NOISE_LVL0 = 0 |
| noise component from surfaces | |
| const int | SURFACE_NOISE_LVL1 = 1 |
| const int | SURFACE_NOISE_LVL2 = 2 |
| const float | SURFACE_LVL2_THRESHOLD = 1.0 |
| const float | SURFACE_LVL1_THRESHOLD = 0.5 |
| const int | LAND_NOISE_LVL1 = 2 |
| land noise | |
| const int | LAND_NOISE_LVL2 = 3 |
| protected PlayerBase | m_pPlayer |
| protected Weather | m_Weather |
| protected ref PresenceNotifierNoiseEvents | m_PresenceNotifierNoiseEvents |
| void EnableDebug | ( | bool | pEnabled | ) |
References ShowCoefsDbg().
| protected int GetBootsNoiseComponent | ( | ) |
noise component of presence based on player's shoes DEPRECATED
| protected int GetExternalNoiseEventsComponent | ( | ) |
DEPRECATED.
| protected int GetMovementSpeedNoiseComponent | ( | ) |
Noise related noise component of presence based on player's speed DEPRECATED
| protected float GetMovementSpeedVisualCoef | ( | ) |
Visibility.
References m_pPlayer, and AITargetCallbacksPlayer::StanceToMovementIdxTranslation().
Referenced by ProcessVisualComponents(), and ShowCoefsDbg().
| protected float GetMovementStanceVisualCoef | ( | ) |
References HumanMovementState::m_iStanceIdx, and m_pPlayer.
Referenced by ProcessVisualComponents(), and ShowCoefsDbg().
| int GetNoisePresence | ( | ) |
returns actual noise presence of player
References ProcessNoiseComponents().
Referenced by ShowCoefsDbg().
| protected int GetSurfaceNoiseComponent | ( | ) |
DEPRECATED.
| float GetTimerLength | ( | ) |
References m_TimerLength.
| int GetVisualPresence | ( | ) |
returns actual visibility presence of player
References ProcessVisualComponents().
Referenced by ShowCoefsDbg().
| void Init | ( | PlayerBase | player | ) |
References GetGame(), CGame::GetWeather(), m_pPlayer, and m_Weather.
| void PluginPresenceNotifier | ( | ) |
References LAND_NOISE_LVL1, LAND_NOISE_LVL2, m_PresenceNotifierNoiseEvents, and PresenceNotifierNoiseEvents::RegisterEvent().
Referenced by ManBase::OnSelectPlayer().
References m_TimerLength, and m_Value.
Referenced by PresenceNotifierNoiseEvents::ProcessEvent(), and PresenceNotifierNoiseEvents::RegisterEvent().
| void ProcessEvent | ( | EPresenceNotifierNoiseEventType | pEventType | ) |
processing of external one-time events (land, fire, etc.)
References m_PresenceNotifierNoiseEvents, and PresenceNotifierNoiseEvents::ProcessEvent().
| protected int ProcessNoiseComponents | ( | ) |
References Math::Clamp(), GetGame(), NoiseAIEvaluate::GetNoiseMultiplier(), NoiseAIEvaluate::GetNoiseReduction(), m_pPlayer, NOISE_LEVEL_MAX, NOISE_LEVEL_MIN, and Math::Round().
Referenced by GetNoisePresence().
| protected int ProcessVisualComponents | ( | ) |
References GetMovementSpeedVisualCoef(), GetMovementStanceVisualCoef(), and m_pPlayer.
Referenced by GetVisualPresence().
| protected void ShowCoefsDbg | ( | bool | pEnabled | ) |
HumanMovementState content
References DbgUI::Begin(), DbgUI::BeginCleanupScope(), DbgUI::End(), DbgUI::EndCleanupScope(), GetMovementSpeedVisualCoef(), GetMovementStanceVisualCoef(), NoiseAIEvaluate::GetNoiseMultiplierByPlayerSpeed(), NoiseAIEvaluate::GetNoiseMultiplierByShoes(), NoiseAIEvaluate::GetNoiseMultiplierBySurface(), GetNoisePresence(), NoiseAIEvaluate::GetNoiseReduction(), GetVisualPresence(), HumanMovementState::m_CommandTypeId, HumanMovementState::m_iMovement, HumanMovementState::m_iStanceIdx, m_pPlayer, m_Weather, mainPanelSizeX, mainPanelSizeY, DbgUI::Panel(), DbgUI::Spacer(), DbgUI::Text(), windowPosX, and windowPosY.
Referenced by EnableDebug().
| const int LAND_NOISE_LVL1 = 2 |
land noise
Referenced by PluginPresenceNotifier().
| const int LAND_NOISE_LVL2 = 3 |
Referenced by PluginPresenceNotifier().
| protected PlayerBase m_pPlayer |
| protected ref PresenceNotifierNoiseEvents m_PresenceNotifierNoiseEvents |
Referenced by PluginPresenceNotifier(), and ProcessEvent().
| enum EPresenceNotifierNoiseEventType m_TimerLength |
Referenced by GetTimerLength(), and PresenceNotifierNoiseEvent().
| protected int m_Value |
| protected Weather m_Weather |
| const int mainPanelSizeX = 200 |
Referenced by OnGUI(), and ShowCoefsDbg().
| const int mainPanelSizeY = 1 |
Referenced by OnGUI(), and ShowCoefsDbg().
| const int NOISE_LEVEL_MAX = 5 |
Referenced by ProcessNoiseComponents().
| const int NOISE_LEVEL_MIN = 0 |
noise limits
Referenced by ProcessNoiseComponents().
| const float SURFACE_LVL1_THRESHOLD = 0.5 |
| const float SURFACE_LVL2_THRESHOLD = 1.0 |
| const int SURFACE_NOISE_LVL0 = 0 |
noise component from surfaces
| const int SURFACE_NOISE_LVL1 = 1 |
| const int SURFACE_NOISE_LVL2 = 2 |
| class PresenceNotifierNoiseEvents windowPosX = 0 |
dbgUI settings
Referenced by OnGUI(), and ShowCoefsDbg().
| const int windowPosY = 10 |
Referenced by OnGUI(), and ShowCoefsDbg().