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

◆ FishPull()

void FishPull ( )

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

151 {
152 if ( !m_IsFishPulling )
153 {
154 float rand = Math.RandomInt(1, FISH_PULL_CHANCE);
156 {
157 //TIMERDEPRECATED - randomizing timeframe to pull fish out
158 if ( Math.RandomInt(0, 1) )
159 {
160 m_FishPull = rand;
161 }
162 else
163 {
164 m_FishPull = -rand;
165 }
166 //TIMERDEPRECATED - randomizing timeframe to pull fish out
167 m_PullTime = Math.RandomInt(2, 6);
168 m_IsFishPulling = true;
169 }
170 }
171 else
172 {
173 m_PullTime--;
174 if (m_PullTime == 0)
175 {
176 m_IsFishPulling = false;
177 }
178 }
179 }
const float TOO_FEW_PULL
Определения FishingRod_Base.c:79
float m_PullTime
Определения FishingRod_Base.c:99
float m_FishPull
Определения FishingRod_Base.c:100
bool m_IsFishPulling
Определения FishingRod_Base.c:98
float m_Pull
Определения FishingRod_Base.c:95
const int FISH_PULL_CHANCE
Определения FishingRod_Base.c:88
Определения EnMath.c:7
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].

Перекрестные ссылки FISH_PULL_CHANCE, m_FishPull, m_IsFishPulling, m_Pull, m_PullTime, Math::RandomInt() и TOO_FEW_PULL.

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