PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
FishingRod_Base.c File Reference

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
 

Function Documentation

◆ ActivateFishing()

void ActivateFishing ( )

References m_Fishing.

◆ AddPull()

void AddPull ( float  delta)

References m_DeltaT, and m_WasPulled.

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI  parent)

References ANIM_PHASE_CLOSED.

◆ Catching()

◆ DeactivateFishing()

void DeactivateFishing ( )

References End(), and INTERUPTED.

◆ DisplayState()

void DisplayState ( )

References HIGH_PULL, LOW_PULL, m_Player, m_Pull, TOO_FEW_PULL, and TOO_MUCH_PULL.

Referenced by Pulling().

◆ End()

◆ FishingRod_Base()

void FishingRod_Base ( )

References m_Fishing.

◆ FishPull()

void FishPull ( )

◆ GetFishingEffectivityBonus()

float GetFishingEffectivityBonus ( )

◆ Init()

void Init ( )

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

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().

◆ IsFishingActive()

bool IsFishingActive ( )

References m_Fishing.

◆ Pulling()

◆ SetActions()

override void SetActions ( )

Variable Documentation

◆ ANIM_PHASE_CLOSED

const string ANIM_PHASE_CLOSED = "CloseRod"

Referenced by CanPutInCargo().

◆ ANIM_PHASE_OPENED

FishingRod_Base_New ANIM_PHASE_OPENED = "OpenRod"

◆ BREAK_PULL

const float BREAK_PULL = 36

Referenced by Pulling().

◆ FISH_AGILITY

const int FISH_AGILITY = 15

Referenced by Init().

◆ FISH_PULL_CHANCE

const int FISH_PULL_CHANCE = 15

Referenced by FishPull().

◆ HIGH_PULL

const float HIGH_PULL = 22

Referenced by DisplayState().

◆ INIT_LINE_STRETCH

const float INIT_LINE_STRETCH = 15

Referenced by Init().

◆ INTERUPTED

const int INTERUPTED = 3

Referenced by DeactivateFishing(), End(), and Pulling().

◆ LOOSE_PULL

const float LOOSE_PULL = 0

Referenced by Pulling().

◆ LOSS_BREAK

const int LOSS_BREAK = 0

Referenced by End(), and Pulling().

◆ LOSS_LOOSE

const int LOSS_LOOSE = 1

Referenced by End(), and Pulling().

◆ LOW_PULL

const float LOW_PULL = 18

Referenced by DisplayState().

◆ m_ChanceRange

int m_ChanceRange

Referenced by Catching(), and Init().

◆ m_Cycler

ref Timer m_Cycler

Referenced by Catching(), End(), and Init().

◆ m_CyclerCatching

ref Timer m_CyclerCatching

Referenced by Catching(), End(), and Init().

◆ m_DeltaT

float m_DeltaT

Referenced by AddPull().

◆ m_Fishing

◆ m_FishingTime

int m_FishingTime

Referenced by Init(), and Pulling().

◆ m_FishProximity

int m_FishProximity

Referenced by Catching(), and Init().

◆ m_FishPull

float m_FishPull

Referenced by FishPull(), and Pulling().

◆ m_IsFishPulling

bool m_IsFishPulling

Referenced by FishPull(), Init(), and Pulling().

◆ m_Player

PlayerBase m_Player

◆ m_Pull

float m_Pull

Referenced by DisplayState(), Init(), and Pulling().

◆ m_PullTime

float m_PullTime

Referenced by FishPull().

◆ m_WasPulled

bool m_WasPulled

Referenced by AddPull(), Catching(), and Pulling().

◆ MAX_FISHING_TIME

const float MAX_FISHING_TIME = 150

Referenced by Init().

◆ MIN_FISHING_TIME

const float MIN_FISHING_TIME = 100

Referenced by Init().

◆ TOO_FEW_PULL

const float TOO_FEW_PULL = 8

Referenced by DisplayState(), and FishPull().

◆ TOO_MUCH_PULL

const float TOO_MUCH_PULL = 32

Referenced by DisplayState().

◆ WIN

const int WIN = 2

Referenced by End(), and Pulling().