Data Structures | |
| class | FishingRod_Base_New |
Functions | |
| void | FishingRod_Base () |
| void | Init () |
| Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system) | |
| bool | IsFishingActive () |
| void | ActivateFishing () |
| void | DeactivateFishing () |
| void | FishPull () |
| void | Catching () |
| void | Pulling () |
| void | End (int result) |
| void | AddPull (float delta) |
| void | DisplayState () |
| override bool | CanPutInCargo (EntityAI parent) |
| override void | SetActions () |
| float | GetFishingEffectivityBonus () |
Variables | |
| FishingRod_Base_New | ANIM_PHASE_OPENED = "OpenRod" |
| const string | ANIM_PHASE_CLOSED = "CloseRod" |
| const float | BREAK_PULL = 36 |
| const float | TOO_MUCH_PULL = 32 |
| const float | HIGH_PULL = 22 |
| const float | LOW_PULL = 18 |
| const float | TOO_FEW_PULL = 8 |
| const float | LOOSE_PULL = 0 |
| const int | LOSS_BREAK = 0 |
| const int | LOSS_LOOSE = 1 |
| const int | WIN = 2 |
| const int | INTERUPTED = 3 |
| const float | INIT_LINE_STRETCH = 15 |
| const float | MIN_FISHING_TIME = 100 |
| const float | MAX_FISHING_TIME = 150 |
| const int | FISH_PULL_CHANCE = 15 |
| const int | FISH_AGILITY = 15 |
| int | m_FishProximity |
| bool | m_Fishing |
| ref Timer | m_CyclerCatching |
| ref Timer | m_Cycler |
| float | m_Pull |
| float | m_DeltaT |
| bool | m_WasPulled |
| bool | m_IsFishPulling |
| float | m_PullTime |
| float | m_FishPull |
| int | m_FishingTime |
| PlayerBase | m_Player |
| int | m_ChanceRange |
| void ActivateFishing | ( | ) |
References m_Fishing.
| void AddPull | ( | float | delta | ) |
References m_DeltaT, and m_WasPulled.
References ANIM_PHASE_CLOSED.
| void Catching | ( | ) |
References m_ChanceRange, m_Cycler, m_CyclerCatching, m_FishProximity, m_Player, m_WasPulled, Math::RandomInt(), and Timer::Stop().
| void DeactivateFishing | ( | ) |
References End(), and INTERUPTED.
| void DisplayState | ( | ) |
References HIGH_PULL, LOW_PULL, m_Player, m_Pull, TOO_FEW_PULL, and TOO_MUCH_PULL.
Referenced by Pulling().
| void End | ( | int | result | ) |
References INTERUPTED, LOSS_BREAK, LOSS_LOOSE, m_Cycler, m_CyclerCatching, m_Fishing, m_Player, Print(), Timer::Stop(), and WIN.
| void FishingRod_Base | ( | ) |
References m_Fishing.
| void FishPull | ( | ) |
References FISH_PULL_CHANCE, m_FishPull, m_IsFishPulling, m_PullTime, Math::RandomInt(), and TOO_FEW_PULL.
Referenced by Pulling().
| float GetFishingEffectivityBonus | ( | ) |
| void Init | ( | ) |
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
References 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, and Math::RandomInt().
| void Pulling | ( | ) |
References BREAK_PULL, DisplayState(), vector::Distance(), End(), FishPull(), INTERUPTED, LOOSE_PULL, LOSS_BREAK, LOSS_LOOSE, m_FishingTime, m_FishPull, m_IsFishPulling, m_Player, m_Pull, m_WasPulled, ItemBase::SetQuantity(), and WIN.
| override void SetActions | ( | ) |
| const string ANIM_PHASE_CLOSED = "CloseRod" |
Referenced by CanPutInCargo().
| FishingRod_Base_New ANIM_PHASE_OPENED = "OpenRod" |
| const int FISH_PULL_CHANCE = 15 |
Referenced by FishPull().
| const float HIGH_PULL = 22 |
Referenced by DisplayState().
| const int INTERUPTED = 3 |
Referenced by DeactivateFishing(), End(), and Pulling().
| const float LOW_PULL = 18 |
Referenced by DisplayState().
| int m_ChanceRange |
Referenced by Catching(), and Init().
| ref Timer m_Cycler |
Referenced by Catching(), End(), and Init().
| ref Timer m_CyclerCatching |
Referenced by Catching(), End(), and Init().
| bool m_Fishing |
Referenced by ActivateFishing(), End(), FishingRod_Base(), and IsFishingActive().
| int m_FishProximity |
Referenced by Catching(), and Init().
| float m_FishPull |
Referenced by FishPull(), and Pulling().
| bool m_IsFishPulling |
Referenced by FishPull(), Init(), and Pulling().
| PlayerBase m_Player |
| float m_Pull |
Referenced by DisplayState(), Init(), and Pulling().
| float m_PullTime |
Referenced by FishPull().
| bool m_WasPulled |
Referenced by AddPull(), Catching(), and Pulling().
| const float TOO_FEW_PULL = 8 |
Referenced by DisplayState(), and FishPull().
| const float TOO_MUCH_PULL = 32 |
Referenced by DisplayState().