Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
catchyielditembase.c
Go to the documentation of this file.
2{
3 protected string m_Type;
4 protected int m_RegistrationIdx = -1; //mostly for sync purposes
5 protected int m_BaseWeight; //occurence ratio in the enviroment
6 protected float m_QualityBase = AnimalCatchingConstants.QUALITY_GENERIC_BASE;
7 protected int m_EnviroMask; //which enviroment it is relevant for
8 protected int m_MethodMask; //which catching method are we using
9 //protected ref m_BaitCompatibilityMask; //which baits are relevant for me
10
11 void YieldItemBase(int baseWeight)
12 {
13 m_BaseWeight = baseWeight;
14
15 Init();
16 }
17
18 void Init();
19
20 string GetType()
21 {
22 return m_Type;
23 }
24
26 {
27 return m_RegistrationIdx;
28 }
29
30 void SetRegistrationIdx(int idx)
31 {
32 if (m_RegistrationIdx == -1)
34 else
35 ErrorEx("m_RegistrationIdx already set for " + this);
36 }
37
38 int GetYieldWeight(CatchingContextBase ctx)
39 {
40 return m_BaseWeight;
41 }
42
44 {
45 return m_EnviroMask;
46 }
47
49 {
50 return m_MethodMask;
51 }
52
53 float GetBaitTypeSensitivity(ECatchingBaitCategories type)
54 {
55 return 1.0;
56 }
57
58 float GetQualityForYieldItem(CatchingContextBase ctx)
59 {
60 float res = m_QualityBase;
61 res += ctx.GetQualityModifier();
62
63 return res;
64 }
65
68
69 float GetChanceForYieldItem(CatchingContextBase ctx)
70 {
71 float ret = 1.0;
72 //ctx.UpdateBaseProbability(this);
73 ctx.ModifySignalProbability(ret);
74 return ret;
75 }
76
78 //effects info
80
82 {
83 return "";
84 }
85
87 {
88 return "";
89 }
90
92 {
93 return 1.0;
94 }
95
97 {
98 return ParticleList.INVALID;
99 }
100}
int GetYieldWeight(CatchingContextBase ctx)
float GetCatchAINoiseBaseStrength()
void SetRegistrationIdx(int idx)
string GetCatchDeathSoundset()
float GetChanceForYieldItem(CatchingContextBase ctx)
void OnEntityYieldSpawned(EntityAI spawn)
called on item spawn
void YieldItemBase(int baseWeight)
float GetBaitTypeSensitivity(ECatchingBaitCategories type)
float GetQualityForYieldItem(CatchingContextBase ctx)
enum ShapeType ErrorEx