Private Member Functions | |
override protected void | DeserializeData (Param par) |
override protected void | CreateResultDataStructure () |
override protected void | ClearCatchingItemData () |
override protected void | InitItemValues (EntityAI item) |
float | AdjustBaitItemChance (EntityAI item) |
Allows for adjustment of all catch probabilities from item qualities (damage, qty...) | |
override protected void | InitCatchEnviroMask () |
override protected void | Init (Param par) |
override protected void | SetupInitialTypes () |
void | UpdateDataAndMasks () |
int | UpdateTrapEnviroMask () |
void | SetTrapEnviroMask (int value) |
void | UpdateUsedBait (ECatchingBaitCategories type) |
if non-empty bait type is used, some 'Bait' attachment is picked as an active bait (currently no direct link between item and sensitivity-weighted target probability) | |
override void | UpdateBaseProbability (YieldItemBase yItem) |
override bool | ModifySignalProbability (inout float probability) |
void | RemoveBait () |
void | ReduceBaitQty (float qtyNorm) |
Private Attributes | |
protected float | m_CumulativeTrappingSuccess |
after N attempts, the chance to catch should be this. Only highest one applies. @NOTE: Take care, only way to achieve guaranteed 1.0 chance at the end is to have EVERY chance at 1.0. | |
protected int | m_AttemptsCount |
protected ItemBase | m_Bait |
Allows for adjustment of all catch probabilities from item qualities (damage, qty...)
References Class::CastTo().
Referenced by InitItemValues().
|
inlineprivate |
|
inlineprivate |
References m_MainItem, and m_Result.
|
inlineprivate |
References Class::CastTo(), m_AttemptsCount, and m_MainItem.
|
inlineprivate |
References GenerateResult().
|
inlineprivate |
|
inlineprivate |
References AdjustBaitItemChance(), CachedObjectsArrays::ARRAY_FLOAT, CachedObjectsArrays::ARRAY_INT, CFG_VEHICLESPATH, CGame::ConfigGetFloat(), CGame::ConfigGetFloatArray(), CGame::ConfigGetIntArray(), ErrorEx, GetGame(), m_BaitCompatibilityMap, m_QualityBaseMod, m_QualityDispersionMaxMod, m_QualityDispersionMinMod, and path.
References m_AttemptsCount, m_CumulativeTrappingSuccess, and Math::Pow().
Referenced by UpdateBaseProbability().
|
inlineprivate |
References m_Bait.
|
inlineprivate |
References m_EnviroMask.
|
inlineprivate |
References IsCLIParam(), and Print().
Referenced by UpdateDataAndMasks().
|
inlineprivate |
|
inlineprivate |
References InitCatchingItemData(), InitCatchMethodMask(), SetupInitialTypes(), and SetupProbabilityArray().
|
inlineprivate |
References GetCatchEnviroMask(), and InitCatchEnviroMask().
|
inlineprivate |
if non-empty bait type is used, some 'Bait' attachment is picked as an active bait (currently no direct link between item and sensitivity-weighted target probability)
References ErrorEx, IsCLIParam(), m_Bait, m_BaitCompatibilityMap, m_MainItem, BaitData::m_Owner, and Print().
Referenced by UpdateBaseProbability().
|
private |
Referenced by DeserializeData(), and ModifySignalProbability().
|
private |
Referenced by ReduceBaitQty(), RemoveBait(), and UpdateUsedBait().
|
private |
after N attempts, the chance to catch should be this. Only highest one applies. @NOTE: Take care, only way to achieve guaranteed 1.0 chance at the end is to have EVERY chance at 1.0.
Referenced by ClearCatchingItemData(), ModifySignalProbability(), and UpdateBaseProbability().