Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
fishingrod_base.c File Reference

Go to the source code of this file.

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

Definition at line 103 of file fishingrod_base.c.

◆ AddPull()

void AddPull ( float  delta)

Definition at line 287 of file fishingrod_base.c.

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI  parent)

Definition at line 330 of file fishingrod_base.c.

◆ Catching()

void Catching ( )

Definition at line 147 of file fishingrod_base.c.

◆ DeactivateFishing()

void DeactivateFishing ( )

Definition at line 109 of file fishingrod_base.c.

◆ DisplayState()

void DisplayState ( )

Definition at line 293 of file fishingrod_base.c.

◆ End()

void End ( int  result)

Definition at line 229 of file fishingrod_base.c.

◆ FishingRod_Base()

void FishingRod_Base ( )

Definition at line 71 of file fishingrod_base.c.

◆ FishPull()

void FishPull ( )

Definition at line 116 of file fishingrod_base.c.

◆ GetFishingEffectivityBonus()

float GetFishingEffectivityBonus ( )

Definition at line 349 of file fishingrod_base.c.

◆ Init()

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 76 of file fishingrod_base.c.

◆ IsFishingActive()

bool IsFishingActive ( )

Definition at line 98 of file fishingrod_base.c.

◆ Pulling()

void Pulling ( )

Definition at line 183 of file fishingrod_base.c.

◆ SetActions()

override void SetActions ( )

Definition at line 340 of file fishingrod_base.c.

Variable Documentation

◆ ANIM_PHASE_CLOSED

const string ANIM_PHASE_CLOSED = "CloseRod"

Definition at line 39 of file fishingrod_base.c.

◆ ANIM_PHASE_OPENED

FishingRod_Base_New ANIM_PHASE_OPENED = "OpenRod"

◆ BREAK_PULL

const float BREAK_PULL = 36

Definition at line 41 of file fishingrod_base.c.

◆ FISH_AGILITY

const int FISH_AGILITY = 15

Definition at line 55 of file fishingrod_base.c.

◆ FISH_PULL_CHANCE

const int FISH_PULL_CHANCE = 15

Definition at line 54 of file fishingrod_base.c.

◆ HIGH_PULL

const float HIGH_PULL = 22

Definition at line 43 of file fishingrod_base.c.

◆ INIT_LINE_STRETCH

const float INIT_LINE_STRETCH = 15

Definition at line 51 of file fishingrod_base.c.

◆ INTERUPTED

const int INTERUPTED = 3

Definition at line 50 of file fishingrod_base.c.

◆ LOOSE_PULL

const float LOOSE_PULL = 0

Definition at line 46 of file fishingrod_base.c.

◆ LOSS_BREAK

const int LOSS_BREAK = 0

Definition at line 47 of file fishingrod_base.c.

◆ LOSS_LOOSE

const int LOSS_LOOSE = 1

Definition at line 48 of file fishingrod_base.c.

◆ LOW_PULL

const float LOW_PULL = 18

Definition at line 44 of file fishingrod_base.c.

◆ m_ChanceRange

int m_ChanceRange

Definition at line 69 of file fishingrod_base.c.

◆ m_Cycler

ref Timer m_Cycler

Definition at line 60 of file fishingrod_base.c.

◆ m_CyclerCatching

ref Timer m_CyclerCatching

Definition at line 59 of file fishingrod_base.c.

◆ m_DeltaT

float m_DeltaT

Definition at line 62 of file fishingrod_base.c.

◆ m_Fishing

bool m_Fishing

Definition at line 58 of file fishingrod_base.c.

◆ m_FishingTime

int m_FishingTime

Definition at line 67 of file fishingrod_base.c.

◆ m_FishProximity

int m_FishProximity

Definition at line 57 of file fishingrod_base.c.

◆ m_FishPull

float m_FishPull

Definition at line 66 of file fishingrod_base.c.

◆ m_IsFishPulling

bool m_IsFishPulling

Definition at line 64 of file fishingrod_base.c.

◆ m_Player

PlayerBase m_Player

Definition at line 68 of file fishingrod_base.c.

◆ m_Pull

float m_Pull

Definition at line 61 of file fishingrod_base.c.

◆ m_PullTime

float m_PullTime

Definition at line 65 of file fishingrod_base.c.

◆ m_WasPulled

bool m_WasPulled

Definition at line 63 of file fishingrod_base.c.

◆ MAX_FISHING_TIME

const float MAX_FISHING_TIME = 150

Definition at line 53 of file fishingrod_base.c.

◆ MIN_FISHING_TIME

const float MIN_FISHING_TIME = 100

Definition at line 52 of file fishingrod_base.c.

◆ TOO_FEW_PULL

const float TOO_FEW_PULL = 8

Definition at line 45 of file fishingrod_base.c.

◆ TOO_MUCH_PULL

const float TOO_MUCH_PULL = 32

Definition at line 42 of file fishingrod_base.c.

◆ WIN

const int WIN = 2

Definition at line 49 of file fishingrod_base.c.