PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
PluginPresenceNotifier.c File Reference

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
 

Enumeration Type Documentation

◆ EPresenceNotifierNoiseEventType

Enumerator
LAND_LIGHT 
LAND_HEAVY 

Function Documentation

◆ EnableDebug()

void EnableDebug ( bool  pEnabled)

References ShowCoefsDbg().

◆ GetBootsNoiseComponent()

protected int GetBootsNoiseComponent ( )

noise component of presence based on player's shoes DEPRECATED

◆ GetExternalNoiseEventsComponent()

protected int GetExternalNoiseEventsComponent ( )

DEPRECATED.

◆ GetMovementSpeedNoiseComponent()

protected int GetMovementSpeedNoiseComponent ( )

Noise related noise component of presence based on player's speed DEPRECATED

◆ GetMovementSpeedVisualCoef()

protected float GetMovementSpeedVisualCoef ( )

◆ GetMovementStanceVisualCoef()

protected float GetMovementStanceVisualCoef ( )

◆ GetNoisePresence()

int GetNoisePresence ( )

returns actual noise presence of player

References ProcessNoiseComponents().

Referenced by ShowCoefsDbg().

◆ GetSurfaceNoiseComponent()

protected int GetSurfaceNoiseComponent ( )

DEPRECATED.

◆ GetTimerLength()

float GetTimerLength ( )

References m_TimerLength.

◆ GetValue()

int GetValue ( )

References m_Value.

◆ GetVisualPresence()

int GetVisualPresence ( )

returns actual visibility presence of player

References ProcessVisualComponents().

Referenced by ShowCoefsDbg().

◆ Init()

void Init ( PlayerBase  player)

◆ PluginPresenceNotifier()

◆ PresenceNotifierNoiseEvent()

void PresenceNotifierNoiseEvent ( float  pValue,
float  pLength 
)

◆ ProcessEvent()

void ProcessEvent ( EPresenceNotifierNoiseEventType  pEventType)

processing of external one-time events (land, fire, etc.)

References m_PresenceNotifierNoiseEvents, and PresenceNotifierNoiseEvents::ProcessEvent().

◆ ProcessNoiseComponents()

◆ ProcessVisualComponents()

protected int ProcessVisualComponents ( )

◆ ShowCoefsDbg()

Variable Documentation

◆ LAND_NOISE_LVL1

const int LAND_NOISE_LVL1 = 2

land noise

Referenced by PluginPresenceNotifier().

◆ LAND_NOISE_LVL2

const int LAND_NOISE_LVL2 = 3

Referenced by PluginPresenceNotifier().

◆ m_pPlayer

protected PlayerBase m_pPlayer

◆ m_PresenceNotifierNoiseEvents

protected ref PresenceNotifierNoiseEvents m_PresenceNotifierNoiseEvents

◆ m_TimerLength

◆ m_Value

protected int m_Value

◆ m_Weather

◆ mainPanelSizeX

const int mainPanelSizeX = 200

Referenced by OnGUI(), and ShowCoefsDbg().

◆ mainPanelSizeY

const int mainPanelSizeY = 1

Referenced by OnGUI(), and ShowCoefsDbg().

◆ margin

const int margin = 10

Referenced by OnGUI().

◆ NOISE_LEVEL_MAX

const int NOISE_LEVEL_MAX = 5

Referenced by ProcessNoiseComponents().

◆ NOISE_LEVEL_MIN

const int NOISE_LEVEL_MIN = 0

noise limits

Referenced by ProcessNoiseComponents().

◆ SURFACE_LVL1_THRESHOLD

const float SURFACE_LVL1_THRESHOLD = 0.5

◆ SURFACE_LVL2_THRESHOLD

const float SURFACE_LVL2_THRESHOLD = 1.0

◆ SURFACE_NOISE_LVL0

const int SURFACE_NOISE_LVL0 = 0

noise component from surfaces

◆ SURFACE_NOISE_LVL1

const int SURFACE_NOISE_LVL1 = 1

◆ SURFACE_NOISE_LVL2

const int SURFACE_NOISE_LVL2 = 2

◆ windowPosX

class PresenceNotifierNoiseEvents windowPosX = 0

dbgUI settings

Referenced by OnGUI(), and ShowCoefsDbg().

◆ windowPosY

const int windowPosY = 10

Referenced by OnGUI(), and ShowCoefsDbg().