|
DayZ 1.24
|
Go to the source code of this file.
Classes | |
| 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 | ( | ) |
Definition at line 258 of file FishingRod_Base.c.
References m_DeltaT, and m_WasPulled.
Definition at line 289 of file FishingRod_Base.c.
References ANIM_PHASE_CLOSED.
| void Catching | ( | ) |
Definition at line 134 of file FishingRod_Base.c.
References m_ChanceRange, m_Cycler, m_CyclerCatching, m_FishProximity, m_Player, m_WasPulled, and Math::RandomInt().
| void DeactivateFishing | ( | ) |
| void DisplayState | ( | ) |
Definition at line 264 of file FishingRod_Base.c.
References HIGH_PULL, LOW_PULL, m_Player, m_Pull, TOO_FEW_PULL, and TOO_MUCH_PULL.
Referenced by Pulling().
Definition at line 200 of file FishingRod_Base.c.
References INTERUPTED, LOSS_BREAK, LOSS_LOOSE, m_Cycler, m_CyclerCatching, m_Fishing, m_Player, Print(), and WIN.
| void FishingRod_Base | ( | ) |
Definition at line 69 of file FishingRod_Base.c.
References m_Fishing.
| void FishPull | ( | ) |
Definition at line 109 of file FishingRod_Base.c.
References FISH_PULL_CHANCE, m_FishPull, m_IsFishPulling, m_PullTime, Math::RandomInt(), and TOO_FEW_PULL.
Referenced by Pulling().
| float GetFishingEffectivityBonus | ( | ) |
Definition at line 306 of file FishingRod_Base.c.
| void Init | ( | ) |
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
pre-init arrays
Definition at line 74 of file FishingRod_Base.c.
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().
| bool IsFishingActive | ( | ) |
Definition at line 92 of file FishingRod_Base.c.
References m_Fishing.
| void Pulling | ( | ) |
Definition at line 166 of file FishingRod_Base.c.
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, and WIN.
Definition at line 297 of file FishingRod_Base.c.
Definition at line 37 of file FishingRod_Base.c.
Referenced by CanPutInCargo().
| FishingRod_Base_New ANIM_PHASE_OPENED = "OpenRod" |
Definition at line 39 of file FishingRod_Base.c.
Referenced by Pulling().
Definition at line 53 of file FishingRod_Base.c.
Referenced by Init().
Definition at line 52 of file FishingRod_Base.c.
Referenced by FishPull().
Definition at line 41 of file FishingRod_Base.c.
Referenced by DisplayState().
Definition at line 49 of file FishingRod_Base.c.
Referenced by Init().
Definition at line 48 of file FishingRod_Base.c.
Referenced by DeactivateFishing(), End(), and Pulling().
Definition at line 44 of file FishingRod_Base.c.
Referenced by Pulling().
Definition at line 45 of file FishingRod_Base.c.
Definition at line 46 of file FishingRod_Base.c.
Definition at line 42 of file FishingRod_Base.c.
Referenced by DisplayState().
| int m_ChanceRange |
Definition at line 67 of file FishingRod_Base.c.
Referenced by Catching(), and Init().
Definition at line 58 of file FishingRod_Base.c.
Referenced by Catching(), End(), and Init().
Definition at line 57 of file FishingRod_Base.c.
Referenced by Catching(), End(), and Init().
| float m_DeltaT |
Definition at line 60 of file FishingRod_Base.c.
Referenced by AddPull().
| bool m_Fishing |
Definition at line 56 of file FishingRod_Base.c.
Referenced by ActivateFishing(), End(), FishingRod_Base(), and IsFishingActive().
| int m_FishingTime |
Definition at line 65 of file FishingRod_Base.c.
| int m_FishProximity |
Definition at line 55 of file FishingRod_Base.c.
Referenced by Catching(), and Init().
| float m_FishPull |
Definition at line 64 of file FishingRod_Base.c.
Referenced by FishPull(), and Pulling().
| bool m_IsFishPulling |
Definition at line 62 of file FishingRod_Base.c.
Referenced by FishPull(), Init(), and Pulling().
| PlayerBase m_Player |
Definition at line 66 of file FishingRod_Base.c.
| float m_Pull |
Definition at line 59 of file FishingRod_Base.c.
Referenced by DisplayState(), Init(), and Pulling().
| float m_PullTime |
Definition at line 63 of file FishingRod_Base.c.
Referenced by FishPull().
| bool m_WasPulled |
Definition at line 61 of file FishingRod_Base.c.
Referenced by AddPull(), Catching(), and Pulling().
Definition at line 51 of file FishingRod_Base.c.
Referenced by Init().
Definition at line 50 of file FishingRod_Base.c.
Referenced by Init().
Definition at line 43 of file FishingRod_Base.c.
Referenced by DisplayState(), and FishPull().
Definition at line 40 of file FishingRod_Base.c.
Referenced by DisplayState().