61 return this.ClassName() +
" Notifier";
111 float values_sum = 0;
114 for(i = 0; i < values.Count(); i++)
116 float value = values.Get(i);
144 for(
int i = 0; i < values.Count() - 1; i++)
146 value1 = values.Get(i);
147 value2 = values.Get(i + 1);
148 float average = (value1 + value2) / 2;
149 values.Set(i, average);
150 values.Set(i + 1, average);
152 int index = values.Count() - 1;
153 values.Set(index, value2);
171 protected int CalculateTendency(
float delta,
float inctresholdlow,
float inctresholdmed,
float inctresholdhigh,
float dectresholdlow,
float dectresholdmed,
float 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)
bool IsTimeToTick(int current_time)
protected float GetObservedValue()
protected int CalculateTendency(float delta, float inctresholdlow, float inctresholdmed, float inctresholdhigh, float dectresholdlow, float dectresholdmed, float dectresholdhigh)
protected void DisplayBadge()
NotifiersManager m_Manager
float ReadFromCyclicBuffer(int index)
void SetActive(bool state)
VirtualHud GetVirtualHud()
void DisplayTendency(float delta)
void NotifierBase(NotifiersManager manager)
void AddToCyclicBuffer(float value)
const int TENDENCY_BUFFER_SIZE
int m_TendencyBufferWriteIterator
protected eBadgeLevel DetermineBadgeLevel(float value, float lvl_1, float lvl_2, float lvl_3)
float m_TendencyBuffer[TENDENCY_BUFFER_SIZE]
int m_TickIntervalLastTick
void OnTick(float current_time)
void SmoothOutFloatValues(array< float > values)
PluginPlayerStatus m_ModulePlayerStatus
protected void HideBadge()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.