DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ RollChance()

bool CatchingResultBasic::RollChance ( )
inlineprotected

См. определение в файле CatchingResultBasic.c строка 76

77 {
78 if (m_CatchChance >= 1)
79 return true;
80 if (m_CatchChance <= 0)
81 return false;
82
83 float roll;
84 if (m_Owner && m_Owner.GetHierarchyRootPlayer())
85 roll = RollChanceSeeded();
86 else
87 roll = Math.RandomFloat01();
88
89 return roll < m_CatchChance;
90 }
float RollChanceSeeded()
Определения CatchingResultBasic.c:92
float m_CatchChance
Определения CatchingResultBasic.c:6
EntityAI m_Owner
Определения CatchingResultBasic.c:3

Перекрестные ссылки m_CatchChance, m_Owner, Math::RandomFloat01() и RollChanceSeeded().