Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
fishingrod_base.c File Reference

Go to the source code of this file.

Data Structures

class  FishingRod_Base_New

Functions

void ActivateFishing ()
void AddPull (float delta)
override bool CanPutInCargo (EntityAI parent)
void Catching ()
void DeactivateFishing ()
void DisplayState ()
void End (int result)
void FishingRod_Base ()
void FishPull ()
float GetFishingEffectivityBonus ()
void Init ()
bool IsFishingActive ()
void Pulling ()
override void SetActions ()

Variables

const string ANIM_PHASE_CLOSED = "CloseRod"
FishingRod_Base_New ANIM_PHASE_OPENED = "OpenRod"
const float BREAK_PULL = 36
const int FISH_AGILITY = 15
const int FISH_PULL_CHANCE = 15
const float HIGH_PULL = 22
const float INIT_LINE_STRETCH = 15
const int INTERUPTED = 3
const float LOOSE_PULL = 0
const int LOSS_BREAK = 0
const int LOSS_LOOSE = 1
const float LOW_PULL = 18
int m_ChanceRange
ref Timer m_Cycler
ref Timer m_CyclerCatching
float m_DeltaT
bool m_Fishing
int m_FishingTime
int m_FishProximity
float m_FishPull
bool m_IsFishPulling
PlayerBase m_Player
float m_Pull
float m_PullTime
bool m_WasPulled
const float MAX_FISHING_TIME = 150
const float MIN_FISHING_TIME = 100
const float TOO_FEW_PULL = 8
const float TOO_MUCH_PULL = 32
const int WIN = 2

Function Documentation

◆ ActivateFishing()

void ActivateFishing ( )

Definition at line 137 of file fishingrod_base.c.

References m_Fishing.

◆ AddPull()

void AddPull ( float delta)

Definition at line 321 of file fishingrod_base.c.

References m_DeltaT, and m_WasPulled.

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)

Definition at line 364 of file fishingrod_base.c.

References ANIM_PHASE_CLOSED.

◆ Catching()

void Catching ( )

◆ DeactivateFishing()

void DeactivateFishing ( )

Definition at line 143 of file fishingrod_base.c.

References End(), and INTERUPTED.

◆ DisplayState()

void DisplayState ( )

Definition at line 327 of file fishingrod_base.c.

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

Referenced by Pulling().

◆ End()

void End ( int result)

Definition at line 263 of file fishingrod_base.c.

References INTERUPTED, LOSS_BREAK, LOSS_LOOSE, m_Cycler, m_CyclerCatching, m_Fishing, Print(), and WIN.

◆ FishingRod_Base()

void FishingRod_Base ( )

Definition at line 105 of file fishingrod_base.c.

References m_Fishing.

◆ FishPull()

void FishPull ( )

◆ GetFishingEffectivityBonus()

float GetFishingEffectivityBonus ( )

Definition at line 382 of file fishingrod_base.c.

◆ Init()

◆ IsFishingActive()

bool IsFishingActive ( )

Definition at line 132 of file fishingrod_base.c.

References m_Fishing.

◆ Pulling()

◆ SetActions()

override void SetActions ( )

Definition at line 374 of file fishingrod_base.c.

Variable Documentation

◆ ANIM_PHASE_CLOSED

const string ANIM_PHASE_CLOSED = "CloseRod"

Definition at line 73 of file fishingrod_base.c.

Referenced by CanPutInCargo().

◆ ANIM_PHASE_OPENED

FishingRod_Base_New ANIM_PHASE_OPENED = "OpenRod"

◆ BREAK_PULL

const float BREAK_PULL = 36

Definition at line 75 of file fishingrod_base.c.

Referenced by Pulling().

◆ FISH_AGILITY

const int FISH_AGILITY = 15

Definition at line 89 of file fishingrod_base.c.

Referenced by Init().

◆ FISH_PULL_CHANCE

const int FISH_PULL_CHANCE = 15

Definition at line 88 of file fishingrod_base.c.

Referenced by FishPull().

◆ HIGH_PULL

const float HIGH_PULL = 22

Definition at line 77 of file fishingrod_base.c.

Referenced by DisplayState().

◆ INIT_LINE_STRETCH

const float INIT_LINE_STRETCH = 15

Definition at line 85 of file fishingrod_base.c.

Referenced by Init().

◆ INTERUPTED

const int INTERUPTED = 3

Definition at line 84 of file fishingrod_base.c.

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

◆ LOOSE_PULL

const float LOOSE_PULL = 0

Definition at line 80 of file fishingrod_base.c.

Referenced by Pulling().

◆ LOSS_BREAK

const int LOSS_BREAK = 0

Definition at line 81 of file fishingrod_base.c.

Referenced by End(), and Pulling().

◆ LOSS_LOOSE

const int LOSS_LOOSE = 1

Definition at line 82 of file fishingrod_base.c.

Referenced by End(), and Pulling().

◆ LOW_PULL

const float LOW_PULL = 18

Definition at line 78 of file fishingrod_base.c.

Referenced by DisplayState().

◆ m_ChanceRange

int m_ChanceRange

Definition at line 103 of file fishingrod_base.c.

Referenced by Catching(), and Init().

◆ m_Cycler

ref Timer m_Cycler

Definition at line 94 of file fishingrod_base.c.

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

◆ m_CyclerCatching

ref Timer m_CyclerCatching

Definition at line 93 of file fishingrod_base.c.

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

◆ m_DeltaT

float m_DeltaT

Definition at line 96 of file fishingrod_base.c.

Referenced by AddPull().

◆ m_Fishing

bool m_Fishing

Definition at line 92 of file fishingrod_base.c.

Referenced by ActivateFishing(), End(), FishingRod_Base(), and IsFishingActive().

◆ m_FishingTime

int m_FishingTime

Definition at line 101 of file fishingrod_base.c.

Referenced by Init(), and Pulling().

◆ m_FishProximity

int m_FishProximity

Definition at line 91 of file fishingrod_base.c.

Referenced by Catching(), and Init().

◆ m_FishPull

float m_FishPull

Definition at line 100 of file fishingrod_base.c.

Referenced by FishPull(), and Pulling().

◆ m_IsFishPulling

bool m_IsFishPulling

Definition at line 98 of file fishingrod_base.c.

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

◆ m_Player

Definition at line 102 of file fishingrod_base.c.

◆ m_Pull

float m_Pull

Definition at line 95 of file fishingrod_base.c.

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

◆ m_PullTime

float m_PullTime

Definition at line 99 of file fishingrod_base.c.

Referenced by FishPull().

◆ m_WasPulled

bool m_WasPulled

Definition at line 97 of file fishingrod_base.c.

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

◆ MAX_FISHING_TIME

const float MAX_FISHING_TIME = 150

Definition at line 87 of file fishingrod_base.c.

Referenced by Init().

◆ MIN_FISHING_TIME

const float MIN_FISHING_TIME = 100

Definition at line 86 of file fishingrod_base.c.

Referenced by Init().

◆ TOO_FEW_PULL

const float TOO_FEW_PULL = 8

Definition at line 79 of file fishingrod_base.c.

Referenced by DisplayState(), and FishPull().

◆ TOO_MUCH_PULL

const float TOO_MUCH_PULL = 32

Definition at line 76 of file fishingrod_base.c.

Referenced by DisplayState().

◆ WIN

const int WIN = 2

Definition at line 83 of file fishingrod_base.c.

Referenced by End(), and Pulling().