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

◆ AdjustDetectionRange()

void ItemBase::AdjustDetectionRange ( )
inlineprotected

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

454 {
456 {
457 float time = m_ElapsedTime - m_RollSuccessTime;
458 float timeLimit = m_AdjustedMaxActiveTime - m_RollSuccessTime;
459 time = Math.InverseLerp(0,timeLimit,time);
460 time = Easing.EaseInQuad(time);
463
464 #ifdef DEVELOPER
465 if (IsCLIParam("catchingLogs"))
466 {
467 Print("dbgTrapz | adjusted distance: " + m_CurrentMinimalDistance + "/" + m_MinimalDistanceFromPlayersToCatch + " | LERP progress: " + time);
468 }
469 #endif
470 }
471 }
int m_RollSuccessTime
Определения TrapSpawnBase.c:22
float m_MinimalDistanceFromPlayersToCatch
Absolute damage dealt to trap when used.
Определения TrapSpawnBase.c:15
int m_ElapsedTime
Adjusted by init wait time, when appropriate.
Определения TrapSpawnBase.c:20
int m_AdjustedMaxActiveTime
After this time after deployment, the trap is activated.
Определения TrapSpawnBase.c:19
float m_CurrentMinimalDistance
Определения TrapSpawnBase.c:23
proto void Print(void var)
Prints content of variable to console/log.
proto native bool IsCLIParam(string param)
Returns if command line argument is present.

Перекрестные ссылки Math::Clamp(), Easing::EaseInQuad(), Math::InverseLerp(), IsCLIParam(), Math::Lerp(), m_AdjustedMaxActiveTime, m_CurrentMinimalDistance, m_ElapsedTime, m_MinimalDistanceFromPlayersToCatch, m_RollSuccessTime и Print().

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