Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
CatchingResultBasic Class Reference
Inheritance diagram for CatchingResultBasic:
CatchingResultBase CarchingResultFishingAction CatchingResultTrapBase

Protected Member Functions

void CatchingResultBasic (EntityAI owner)
int GetYieldItemParticleId ()
bool RollChance ()
float RollChanceSeeded ()
void SetCatchChance (float val)
void SetCatchChanceOverride (bool ovrd, float val=0.0)
void SetQuality (float val)
void SetQualityOverride (bool ovrd, float val=0.0)
void SetYieldItem (YieldItemBase yItem)
EntityAI SpawnAndSetup (out int yItemIdx, vector v=vector.Zero)
void UpdateCatchChance (CatchingContextBase ctx)
void UpdateCatchQuality (CatchingContextBase ctx)

Protected Attributes

float m_CatchChance = 1.0
bool m_OverrideChanceActive = false
bool m_OverrideQualityActive = false
EntityAI m_Owner
float m_Quality = 1.0
YieldItemBase m_YItem

Detailed Description

Definition at line 1 of file catchingresultbasic.c.

Constructor & Destructor Documentation

◆ CatchingResultBasic()

void CatchingResultBasic ( EntityAI owner)
inlineprotected

Definition at line 10 of file catchingresultbasic.c.

References m_Owner.

Member Function Documentation

◆ GetYieldItemParticleId()

int GetYieldItemParticleId ( )
inlineprotected

Definition at line 20 of file catchingresultbasic.c.

References ParticleList::INVALID, and m_YItem.

◆ RollChance()

bool RollChance ( )
inlineprotected

◆ RollChanceSeeded()

float RollChanceSeeded ( )
inlineprotected

Definition at line 92 of file catchingresultbasic.c.

Referenced by RollChance().

◆ SetCatchChance()

void SetCatchChance ( float val)
inlineprotected

Definition at line 28 of file catchingresultbasic.c.

References Math::Clamp(), and m_CatchChance.

Referenced by UpdateCatchChance().

◆ SetCatchChanceOverride()

void SetCatchChanceOverride ( bool ovrd,
float val = 0.0 )
inlineprotected

Definition at line 38 of file catchingresultbasic.c.

References m_CatchChance, and m_OverrideChanceActive.

◆ SetQuality()

void SetQuality ( float val)
inlineprotected

Definition at line 33 of file catchingresultbasic.c.

References Math::Clamp(), and m_Quality.

Referenced by UpdateCatchQuality().

◆ SetQualityOverride()

void SetQualityOverride ( bool ovrd,
float val = 0.0 )
inlineprotected

Definition at line 45 of file catchingresultbasic.c.

References m_OverrideQualityActive, and m_Quality.

◆ SetYieldItem()

void SetYieldItem ( YieldItemBase yItem)
inlineprotected

Definition at line 15 of file catchingresultbasic.c.

References m_YItem.

◆ SpawnAndSetup()

EntityAI SpawnAndSetup ( out int yItemIdx,
vector v = vector.Zero )
inlineprotected

Definition at line 97 of file catchingresultbasic.c.

References ECE_PLACE_ON_SURFACE, g_Game, m_Owner, m_YItem, and vector::Zero.

◆ UpdateCatchChance()

void UpdateCatchChance ( CatchingContextBase ctx)
inlineprotected

◆ UpdateCatchQuality()

void UpdateCatchQuality ( CatchingContextBase ctx)
inlineprotected

Field Documentation

◆ m_CatchChance

float m_CatchChance = 1.0
protected

Definition at line 6 of file catchingresultbasic.c.

Referenced by RollChance(), SetCatchChance(), and SetCatchChanceOverride().

◆ m_OverrideChanceActive

bool m_OverrideChanceActive = false
protected

Definition at line 4 of file catchingresultbasic.c.

Referenced by SetCatchChanceOverride(), and UpdateCatchChance().

◆ m_OverrideQualityActive

bool m_OverrideQualityActive = false
protected

Definition at line 5 of file catchingresultbasic.c.

Referenced by SetQualityOverride(), and UpdateCatchQuality().

◆ m_Owner

◆ m_Quality

◆ m_YItem


The documentation for this class was generated from the following file: