DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
CatchingContextPoissonBase.c
См. документацию.
2{
3 protected float m_SignalPoissonMean; //usually, only the smallest value is considered
4 protected int m_SignalCurrent;
5
6 override protected void ClearCatchingItemData()
7 {
8 super.ClearCatchingItemData();
9
12 }
13
15 {
17 }
18
21 {
22 //m_SignalPoissonMean * 2 + 1
24 }
25
26 override bool ModifySignalProbability(inout float probability)
27 {
28 if (m_SignalCurrent > GetSignalMax() || m_SignalCurrent > 12) //necessary reset
30
32
33 return true;
34 }
35
36 override bool RollCatch()
37 {
38 bool ret = super.RollCatch();
40
41 return ret;
42 }
43
45 {
46 return 1.0;
47 }
48}
void CatchingContextBase(Param par)
Определения CatchingContextBase.c:29
const float POISSON_CYCLE_MEAN_DEFAULT
Определения CatchingConstants.c:25
int GetSignalMax()
maximum number of signals in a single cycle
Определения CatchingContextPoissonBase.c:20
override bool RollCatch()
Определения CatchingContextPoissonBase.c:36
override bool ModifySignalProbability(inout float probability)
Определения CatchingContextPoissonBase.c:26
Определения EnMath.c:7
static float Poisson(float mean, int occurences)
occurences values above '12' will cause Factorial to overflow int.
Определения EnMath.c:708
static proto float Ceil(float f)
Returns ceil of value.