50 return this.ClassName() +
" Notifier";
101 for (i = 0; i < values.Count(); i++)
103 float value = values.Get(i);
124 for (
int i = 0; i < values.Count() - 1; i++)
126 value1 = values.Get(i);
127 value2 = values.Get(i + 1);
128 float average = (value1 + value2) / 2;
129 values.Set(i, average);
130 values.Set(i + 1, average);
133 int index = values.Count() - 1;
134 values.Set(index, value2);
149 protected int CalculateTendency(
float delta,
float inctresholdlow,
float inctresholdmed,
float inctresholdhigh,
float dectresholdlow,
float dectresholdmed,
float dectresholdhigh)
152 if (delta > inctresholdlow)
154 if (delta > inctresholdmed)
156 if (delta > inctresholdhigh)
158 if (delta < dectresholdlow)
160 if (delta < dectresholdmed)
162 if (delta < dectresholdhigh)
const int TENDENCY_INC_LOW
const int TENDENCY_DEC_HIGH
const int TENDENCY_DEC_MED
const int TENDENCY_INC_MED
const int TENDENCY_DEC_LOW
const int TENDENCY_INC_HIGH
const int TENDENCY_STABLE
void VirtualHud(PlayerBase player)
void NotifiersManager(PlayerBase player)
PluginBase GetPlugin(typename plugin_type)
void SmoothOutFloatValues(array< float > values)
void SetActive(bool state)
void OnTick(float current_time)
void DisplayTendency(float delta)
int m_TendencyBufferWriteIterator
PluginPlayerStatus m_ModulePlayerStatus
eBadgeLevel DetermineBadgeLevel(float value, float lvl_1, float lvl_2, float lvl_3)
const int TENDENCY_BUFFER_SIZE
float ReadFromCyclicBuffer(int index)
bool IsTimeToTick(int current_time)
void AddToCyclicBuffer(float value)
VirtualHud GetVirtualHud()
void NotifierBase(NotifiersManager manager)
NotifiersManager m_Manager
int m_TickIntervalLastTick
int CalculateTendency(float delta, float inctresholdlow, float inctresholdmed, float inctresholdhigh, float dectresholdlow, float dectresholdmed, float dectresholdhigh)
float m_TendencyBuffer[TENDENCY_BUFFER_SIZE]
Result for an object found in CGame.IsBoxCollidingGeometryProxy.