DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
CatchYieldItemBase.c
См. документацию.
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
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
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
59 {
60 float res = m_QualityBase;
61 res += ctx.GetQualityModifier();
62
63 return res;
64 }
65
68
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}
void CatchingContextBase(Param par)
Определения CatchingContextBase.c:29
const float QUALITY_GENERIC_BASE
Определения CatchingConstants.c:3
Определения Building.c:6
static const int INVALID
Определения ParticleList.c:20
Определения ParticleList.c:12
string GetCatchAINoise()
Определения CatchYieldItemBase.c:86
int m_EnviroMask
Определения CatchYieldItemBase.c:7
int m_BaseWeight
Определения CatchYieldItemBase.c:5
int GetYieldWeight(CatchingContextBase ctx)
Определения CatchYieldItemBase.c:38
float GetCatchAINoiseBaseStrength()
Определения CatchYieldItemBase.c:91
float m_QualityBase
Определения CatchYieldItemBase.c:6
int GetMethodMask()
Определения CatchYieldItemBase.c:48
string m_Type
Определения CatchYieldItemBase.c:3
void SetRegistrationIdx(int idx)
Определения CatchYieldItemBase.c:30
int GetRegistrationIdx()
Определения CatchYieldItemBase.c:25
string GetCatchDeathSoundset()
Определения CatchYieldItemBase.c:81
int GetCatchParticleID()
Определения CatchYieldItemBase.c:96
int GetEnviroMask()
Определения CatchYieldItemBase.c:43
float GetChanceForYieldItem(CatchingContextBase ctx)
Определения CatchYieldItemBase.c:69
void OnEntityYieldSpawned(EntityAI spawn)
called on item spawn
void YieldItemBase(int baseWeight)
Определения CatchYieldItemBase.c:11
float GetBaitTypeSensitivity(ECatchingBaitCategories type)
Определения CatchYieldItemBase.c:53
float GetQualityForYieldItem(CatchingContextBase ctx)
Определения CatchYieldItemBase.c:58
int m_MethodMask
Определения CatchYieldItemBase.c:8
string GetType()
Определения CatchYieldItemBase.c:20
int m_RegistrationIdx
Определения CatchYieldItemBase.c:4
enum ShapeType ErrorEx