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

◆ ScatterPosition()

void BleedingIndicatorDropData::ScatterPosition ( vector pos)
inlineprotected

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

138 {
139#ifdef DIAG_DEVELOPER
140 if (DbgBleedingIndicationStaticInfo.m_DbgUseOverrideValues)
141 {
142 m_ScatterPx = DbgBleedingIndicationStaticInfo.m_DbgDropScatter;
143 }
144#endif
145 float rndRadius = Math.RandomFloatInclusive(0.0,m_ScatterPx);
146 float rndPos = Math.RandomFloatInclusive(0.0,Math.PI2);
147 m_PosX = pos[0];
148 m_PosX = m_PosX + rndRadius * Math.Sin(rndPos);
149
150 m_PosY = pos[1];
151 m_PosY = m_PosY + rndRadius * Math.Cos(rndPos);
152 }
float m_PosY
Определения BleedingDrop.c:32
float m_PosX
Определения BleedingDrop.c:32
int m_ScatterPx
Определения BleedingDrop.c:12

Перекрестные ссылки Math::Cos(), DbgBleedingIndicationStaticInfo::m_DbgDropScatter, DbgBleedingIndicationStaticInfo::m_DbgUseOverrideValues, m_PosX, m_PosY, m_ScatterPx, Math::PI2, Math::RandomFloatInclusive() и Math::Sin().

Используется в StartDrop().