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

◆ Catching()

void Catching ( )

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

182 {
183 if(m_FishProximity == 0 && m_WasPulled)
184 {
185 m_CyclerCatching.Stop();
186 m_Cycler.Run(0.3, this, "Pulling", NULL,true);
187 }
188 else
189 {
190 if (m_WasPulled)
191 {
192 m_WasPulled = false;
194 }
195 //TIMERDEPRECATED - randomized proximity of fish to
197 string fline = "";
198 for (int i = 0; i < m_FishProximity; i++)
199 {
200 fline += " .";
201 }
202 m_Player.Message("", "colorStatusChannel");
203 m_Player.Message("HOLD right mouse button to pull the fishing line", "colorAction");
204 m_Player.Message("", "colorStatusChannel");
205 m_Player.Message("", "colorStatusChannel");
206 m_Player.Message("", "colorStatusChannel");
207 m_Player.Message("Start pulling when J and <*)))>< meet:", "colorStatusChannel");
208 m_Player.Message("", "colorStatusChannel");
209 m_Player.Message("J"+fline+" <*)))><", "colorImportant");
210 if(m_ChanceRange > 0)
211 {
213 }
214 }
215 }
ref Timer m_CyclerCatching
Определения FishingRod_Base.c:93
bool m_WasPulled
Определения FishingRod_Base.c:97
int m_FishProximity
Определения FishingRod_Base.c:91
int m_ChanceRange
Определения FishingRod_Base.c:103
ref Timer m_Cycler
Определения FishingRod_Base.c:94
DayZPlayer m_Player
Определения Hand_Events.c:42
Определения EnMath.c:7
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].

Перекрестные ссылки m_ChanceRange, m_Cycler, m_CyclerCatching, m_FishProximity, m_Player, m_WasPulled и Math::RandomInt().