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

◆ Init()

void Init ( )

Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)

pre-init arrays

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

111 {
112 m_Player = PlayerBase.Cast( GetGame().GetPlayer() );
114 m_IsFishPulling = false;
115 //TIMERDEPRECATED - randomized time of fishing
119 //TIMERDEPRECATED
120 if(!m_Cycler)
121 {
122 m_Cycler = new Timer();
123 }
125 {
126 m_CyclerCatching = new Timer();
127 }
128 m_CyclerCatching.Run(4, this, "Catching", NULL,true);
129 m_Player.Message("I have started fishing.", "colorFriendly");
130 }
const float MIN_FISHING_TIME
Определения FishingRod_Base.c:86
const int FISH_AGILITY
Определения FishingRod_Base.c:89
ref Timer m_CyclerCatching
Определения FishingRod_Base.c:93
bool m_IsFishPulling
Определения FishingRod_Base.c:98
float m_Pull
Определения FishingRod_Base.c:95
int m_FishingTime
Определения FishingRod_Base.c:101
const float MAX_FISHING_TIME
Определения FishingRod_Base.c:87
int m_FishProximity
Определения FishingRod_Base.c:91
int m_ChanceRange
Определения FishingRod_Base.c:103
ref Timer m_Cycler
Определения FishingRod_Base.c:94
const float INIT_LINE_STRETCH
Определения FishingRod_Base.c:85
DayZPlayer m_Player
Определения Hand_Events.c:42
PlayerBase GetPlayer()
Определения ModifierBase.c:51
Определения EnMath.c:7
Определения PlayerBaseClient.c:2
Определения DayZPlayerImplement.c:63
proto native CGame GetGame()
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].

Перекрестные ссылки FISH_AGILITY, GetGame(), GetPlayer(), INIT_LINE_STRETCH, m_ChanceRange, m_Cycler, m_CyclerCatching, m_FishingTime, m_FishProximity, m_IsFishPulling, m_Player, m_Pull, MAX_FISHING_TIME, MIN_FISHING_TIME и Math::RandomInt().