Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
agentsnotfr.c
Go to the documentation of this file.
1
/*
2
class AgentsNotfr: NotifierBase
3
{
4
5
private const float DEC_TRESHOLD_LOW = 0;
6
private const float DEC_TRESHOLD_MED = -0.5;
7
private const float DEC_TRESHOLD_HIGH = -1;
8
private const float INC_TRESHOLD_LOW = 0;
9
private const float INC_TRESHOLD_MED = 0.5;
10
private const float INC_TRESHOLD_HIGH = 1;
11
12
void AgentsNotfr(NotifiersManager manager)
13
{
14
SetActive(true);
15
m_TendencyBufferSize = 3;//for best results, this should be somewhat aligned with modifier frequency
16
}
17
18
override int GetNotifierType()
19
{
20
return eNotifiers.NTF_AGENT_INFECTION;
21
}
22
23
override void DisplayTendency(float delta)
24
{
25
int tendency = CalculateTendency(delta, INC_TRESHOLD_LOW, INC_TRESHOLD_MED, INC_TRESHOLD_HIGH, DEC_TRESHOLD_LOW, DEC_TRESHOLD_MED, DEC_TRESHOLD_HIGH);
26
//GetVirtualHud().SetStatus(eDisplayElements.DELM_TDCY_BACTERIA,tendency);
27
28
DisplayElementTendency dis_elm = DisplayElementTendency.Cast(GetVirtualHud().GetElement(eDisplayElements.DELM_TDCY_BACTERIA));
29
30
if( dis_elm )
31
{
32
dis_elm.SetTendency(tendency);
33
}
34
}
35
36
override float GetObservedValue()
37
{
38
float count = m_Player.GetTotalAgentCount();
39
//Debug.Log( "GetObservedValue:" + count.ToString(),"Tendency");
40
return count;
41
}
42
};*/
DAYZ
scripts_v1.24.157551
scripts
world
classes
playernotifiers
notifiers
agentsnotfr.c
Generated by
1.8.17