Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
pluginpresencenotifier.c File Reference

Go to the source code of this file.

Data Structures

class  PresenceNotifierNoiseEvents

Enumerations

enum  EPresenceNotifierNoiseEventType { LAND_LIGHT , LAND_HEAVY }

Functions

void EnableDebug (bool pEnabled)
int GetBootsNoiseComponent ()
 noise component of presence based on player's shoes DEPRECATED
int GetExternalNoiseEventsComponent ()
 DEPRECATED.
int GetMovementSpeedNoiseComponent ()
 Noise related.
float GetMovementSpeedVisualCoef ()
 Visibility.
float GetMovementStanceVisualCoef ()
int GetNoisePresence ()
 returns actual noise presence of player
int GetSurfaceNoiseComponent ()
 DEPRECATED.
float GetTimerLength ()
int GetValue ()
int GetVisualPresence ()
 returns actual visibility presence of player
void Init (PlayerBase player)
void PluginPresenceNotifier ()
void PresenceNotifierNoiseEvent (float pValue, float pLength)
void ProcessEvent (EPresenceNotifierNoiseEventType pEventType)
 processing of external one-time events (land, fire, etc.)
int ProcessNoiseComponents ()
int ProcessVisualComponents ()
void ShowCoefsDbg (bool pEnabled)

Variables

const int LAND_NOISE_LVL1 = 2
 land noise
const int LAND_NOISE_LVL2 = 3
PlayerBase m_pPlayer
ref PresenceNotifierNoiseEvents m_PresenceNotifierNoiseEvents
enum EPresenceNotifierNoiseEventType m_TimerLength
int m_Value
Weather m_Weather
const int mainPanelSizeX = 200
const int mainPanelSizeY = 1
const int margin = 10
const int NOISE_LEVEL_MAX = 5
const int NOISE_LEVEL_MIN = 0
 noise limits
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
const int windowPosY = 10

Enumeration Type Documentation

◆ EPresenceNotifierNoiseEventType

Enumerator
LAND_LIGHT 
LAND_HEAVY 

Definition at line 1 of file pluginpresencenotifier.c.

Function Documentation

◆ EnableDebug()

void EnableDebug ( bool pEnabled)
protected

Definition at line 120 of file pluginpresencenotifier.c.

References ShowCoefsDbg().

◆ GetBootsNoiseComponent()

int GetBootsNoiseComponent ( )
protected

noise component of presence based on player's shoes DEPRECATED

◆ GetExternalNoiseEventsComponent()

int GetExternalNoiseEventsComponent ( )
protected

DEPRECATED.

◆ GetMovementSpeedNoiseComponent()

int GetMovementSpeedNoiseComponent ( )
protected

Noise related.


noise component of presence based on player's speed DEPRECATED

◆ GetMovementSpeedVisualCoef()

float GetMovementSpeedVisualCoef ( )
protected

◆ GetMovementStanceVisualCoef()

float GetMovementStanceVisualCoef ( )
protected

Definition at line 256 of file pluginpresencenotifier.c.

References HumanMovementState::m_iStanceIdx, and m_pPlayer.

Referenced by ProcessVisualComponents(), and ShowCoefsDbg().

◆ GetNoisePresence()

int GetNoisePresence ( )
protected

returns actual noise presence of player

Definition at line 191 of file pluginpresencenotifier.c.

References ProcessNoiseComponents().

Referenced by ShowCoefsDbg().

◆ GetSurfaceNoiseComponent()

int GetSurfaceNoiseComponent ( )
protected

DEPRECATED.

◆ GetTimerLength()

float GetTimerLength ( )
protected

Definition at line 18 of file pluginpresencenotifier.c.

References m_TimerLength.

◆ GetValue()

int GetValue ( )
protected

Definition at line 23 of file pluginpresencenotifier.c.

References m_Value.

◆ GetVisualPresence()

int GetVisualPresence ( )
protected

returns actual visibility presence of player

Definition at line 197 of file pluginpresencenotifier.c.

References ProcessVisualComponents().

Referenced by ShowCoefsDbg().

◆ Init()

void Init ( PlayerBase player)
protected

Definition at line 114 of file pluginpresencenotifier.c.

References g_Game, m_pPlayer, and m_Weather.

◆ PluginPresenceNotifier()

void PluginPresenceNotifier ( )
protected

◆ PresenceNotifierNoiseEvent()

void PresenceNotifierNoiseEvent ( float pValue,
float pLength )
protected

◆ ProcessEvent()

void ProcessEvent ( EPresenceNotifierNoiseEventType pEventType)
protected

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

Definition at line 203 of file pluginpresencenotifier.c.

References m_PresenceNotifierNoiseEvents.

◆ ProcessNoiseComponents()

◆ ProcessVisualComponents()

int ProcessVisualComponents ( )
protected

◆ ShowCoefsDbg()

Variable Documentation

◆ LAND_NOISE_LVL1

const int LAND_NOISE_LVL1 = 2
protected

land noise

Definition at line 97 of file pluginpresencenotifier.c.

Referenced by PluginPresenceNotifier().

◆ LAND_NOISE_LVL2

const int LAND_NOISE_LVL2 = 3
protected

Definition at line 98 of file pluginpresencenotifier.c.

Referenced by PluginPresenceNotifier().

◆ m_pPlayer

PlayerBase m_pPlayer
protected

Definition at line 102 of file pluginpresencenotifier.c.

◆ m_PresenceNotifierNoiseEvents

ref PresenceNotifierNoiseEvents m_PresenceNotifierNoiseEvents
protected

Definition at line 105 of file pluginpresencenotifier.c.

Referenced by PluginPresenceNotifier(), and ProcessEvent().

◆ m_TimerLength

◆ m_Value

int m_Value
protected

Definition at line 10 of file pluginpresencenotifier.c.

◆ m_Weather

Weather m_Weather
protected

Definition at line 103 of file pluginpresencenotifier.c.

Referenced by Init(), and ShowCoefsDbg().

◆ mainPanelSizeX

const int mainPanelSizeX = 200
protected

Definition at line 79 of file pluginpresencenotifier.c.

Referenced by OnGUI(), and ShowCoefsDbg().

◆ mainPanelSizeY

const int mainPanelSizeY = 1
protected

Definition at line 80 of file pluginpresencenotifier.c.

Referenced by OnGUI(), and ShowCoefsDbg().

◆ margin

const int margin = 10
protected

Definition at line 82 of file pluginpresencenotifier.c.

Referenced by OnGUI().

◆ NOISE_LEVEL_MAX

const int NOISE_LEVEL_MAX = 5
protected

Definition at line 86 of file pluginpresencenotifier.c.

Referenced by ProcessNoiseComponents().

◆ NOISE_LEVEL_MIN

const int NOISE_LEVEL_MIN = 0
protected

noise limits

Definition at line 85 of file pluginpresencenotifier.c.

Referenced by ProcessNoiseComponents().

◆ SURFACE_LVL1_THRESHOLD

const float SURFACE_LVL1_THRESHOLD = 0.5
protected

Definition at line 94 of file pluginpresencenotifier.c.

◆ SURFACE_LVL2_THRESHOLD

const float SURFACE_LVL2_THRESHOLD = 1.0
protected

Definition at line 93 of file pluginpresencenotifier.c.

◆ SURFACE_NOISE_LVL0

const int SURFACE_NOISE_LVL0 = 0
protected

noise component from surfaces

Definition at line 89 of file pluginpresencenotifier.c.

◆ SURFACE_NOISE_LVL1

const int SURFACE_NOISE_LVL1 = 1
protected

Definition at line 90 of file pluginpresencenotifier.c.

◆ SURFACE_NOISE_LVL2

const int SURFACE_NOISE_LVL2 = 2
protected

Definition at line 91 of file pluginpresencenotifier.c.

◆ windowPosX

class PresenceNotifierNoiseEvents windowPosX = 0
protected

dbgUI settings

Referenced by OnGUI(), and ShowCoefsDbg().

◆ windowPosY

const int windowPosY = 10
protected

Definition at line 77 of file pluginpresencenotifier.c.

Referenced by OnGUI(), and ShowCoefsDbg().