Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
fishingrod_base.c File Reference

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
 

Function Documentation

◆ ActivateFishing()

void ActivateFishing ( )

Definition at line 137 of file fishingrod_base.c.

◆ AddPull()

void AddPull ( float delta)

Definition at line 321 of file fishingrod_base.c.

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)

Definition at line 364 of file fishingrod_base.c.

◆ Catching()

void Catching ( )

Definition at line 181 of file fishingrod_base.c.

◆ DeactivateFishing()

void DeactivateFishing ( )

Definition at line 143 of file fishingrod_base.c.

◆ DisplayState()

void DisplayState ( )

Definition at line 327 of file fishingrod_base.c.

◆ End()

void End ( int result)

Definition at line 263 of file fishingrod_base.c.

◆ FishingRod_Base()

void FishingRod_Base ( )

Definition at line 105 of file fishingrod_base.c.

◆ FishPull()

void FishPull ( )

Definition at line 150 of file fishingrod_base.c.

◆ GetFishingEffectivityBonus()

float GetFishingEffectivityBonus ( )

Definition at line 382 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)

whole body slots

upper body part slots

bottom body part slots

lower body part slots


heat comfort related slots

pre-init arrays

Definition at line 110 of file fishingrod_base.c.

◆ IsFishingActive()

bool IsFishingActive ( )

Definition at line 132 of file fishingrod_base.c.

◆ Pulling()

void Pulling ( )

Definition at line 217 of file fishingrod_base.c.

◆ 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.

◆ 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.

◆ FISH_AGILITY

const int FISH_AGILITY = 15

Definition at line 89 of file fishingrod_base.c.

◆ FISH_PULL_CHANCE

const int FISH_PULL_CHANCE = 15

Definition at line 88 of file fishingrod_base.c.

◆ HIGH_PULL

const float HIGH_PULL = 22

Definition at line 77 of file fishingrod_base.c.

◆ INIT_LINE_STRETCH

const float INIT_LINE_STRETCH = 15

Definition at line 85 of file fishingrod_base.c.

◆ INTERUPTED

const int INTERUPTED = 3

Definition at line 84 of file fishingrod_base.c.

◆ LOOSE_PULL

const float LOOSE_PULL = 0

Definition at line 80 of file fishingrod_base.c.

◆ LOSS_BREAK

const int LOSS_BREAK = 0

Definition at line 81 of file fishingrod_base.c.

◆ LOSS_LOOSE

const int LOSS_LOOSE = 1

Definition at line 82 of file fishingrod_base.c.

◆ LOW_PULL

const float LOW_PULL = 18

Definition at line 78 of file fishingrod_base.c.

◆ m_ChanceRange

int m_ChanceRange

Definition at line 103 of file fishingrod_base.c.

◆ m_Cycler

ref Timer m_Cycler

Definition at line 94 of file fishingrod_base.c.

◆ m_CyclerCatching

ref Timer m_CyclerCatching

Definition at line 93 of file fishingrod_base.c.

◆ m_DeltaT

float m_DeltaT

Definition at line 96 of file fishingrod_base.c.

◆ m_Fishing

bool m_Fishing

Definition at line 92 of file fishingrod_base.c.

◆ m_FishingTime

int m_FishingTime

Definition at line 101 of file fishingrod_base.c.

◆ m_FishProximity

int m_FishProximity

Definition at line 91 of file fishingrod_base.c.

◆ m_FishPull

float m_FishPull

Definition at line 100 of file fishingrod_base.c.

◆ m_IsFishPulling

bool m_IsFishPulling

Definition at line 98 of file fishingrod_base.c.

◆ m_Player

PlayerBase 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.

◆ m_PullTime

float m_PullTime

Definition at line 99 of file fishingrod_base.c.

◆ m_WasPulled

bool m_WasPulled

Definition at line 97 of file fishingrod_base.c.

◆ MAX_FISHING_TIME

const float MAX_FISHING_TIME = 150

Definition at line 87 of file fishingrod_base.c.

◆ MIN_FISHING_TIME

const float MIN_FISHING_TIME = 100

Definition at line 86 of file fishingrod_base.c.

◆ TOO_FEW_PULL

const float TOO_FEW_PULL = 8

Definition at line 79 of file fishingrod_base.c.

◆ TOO_MUCH_PULL

const float TOO_MUCH_PULL = 32

Definition at line 76 of file fishingrod_base.c.

◆ WIN

const int WIN = 2

Definition at line 83 of file fishingrod_base.c.