DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
CatchYieldItemBase.c
См. документацию.
1
class
YieldItemBase
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
25
int
GetRegistrationIdx
()
26
{
27
return
m_RegistrationIdx
;
28
}
29
30
void
SetRegistrationIdx
(
int
idx)
31
{
32
if
(
m_RegistrationIdx
== -1)
33
m_RegistrationIdx
= idx;
34
else
35
ErrorEx
(
"m_RegistrationIdx already set for "
+
this
);
36
}
37
38
int
GetYieldWeight
(
CatchingContextBase
ctx)
39
{
40
return
m_BaseWeight
;
41
}
42
43
int
GetEnviroMask
()
44
{
45
return
m_EnviroMask
;
46
}
47
48
int
GetMethodMask
()
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
67
void
OnEntityYieldSpawned
(
EntityAI
spawn);
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
81
string
GetCatchDeathSoundset
()
82
{
83
return
""
;
84
}
85
86
string
GetCatchAINoise
()
87
{
88
return
""
;
89
}
90
91
float
GetCatchAINoiseBaseStrength
()
92
{
93
return
1.0;
94
}
95
96
int
GetCatchParticleID
()
97
{
98
return
ParticleList
.
INVALID
;
99
}
100
}
CatchingContextBase
void CatchingContextBase(Param par)
Определения
CatchingContextBase.c:29
AnimalCatchingConstants::QUALITY_GENERIC_BASE
const float QUALITY_GENERIC_BASE
Определения
CatchingConstants.c:3
AnimalCatchingConstants
Определения
CatchingConstants.c:2
EntityAI
Определения
Building.c:6
ParticleList::INVALID
static const int INVALID
Определения
ParticleList.c:20
ParticleList
Определения
ParticleList.c:12
YieldItemBase::Init
void Init()
YieldItemBase::GetCatchAINoise
string GetCatchAINoise()
Определения
CatchYieldItemBase.c:86
YieldItemBase::m_EnviroMask
int m_EnviroMask
Определения
CatchYieldItemBase.c:7
YieldItemBase::m_BaseWeight
int m_BaseWeight
Определения
CatchYieldItemBase.c:5
YieldItemBase::GetYieldWeight
int GetYieldWeight(CatchingContextBase ctx)
Определения
CatchYieldItemBase.c:38
YieldItemBase::GetCatchAINoiseBaseStrength
float GetCatchAINoiseBaseStrength()
Определения
CatchYieldItemBase.c:91
YieldItemBase::m_QualityBase
float m_QualityBase
Определения
CatchYieldItemBase.c:6
YieldItemBase::GetMethodMask
int GetMethodMask()
Определения
CatchYieldItemBase.c:48
YieldItemBase::m_Type
string m_Type
Определения
CatchYieldItemBase.c:3
YieldItemBase::SetRegistrationIdx
void SetRegistrationIdx(int idx)
Определения
CatchYieldItemBase.c:30
YieldItemBase::GetRegistrationIdx
int GetRegistrationIdx()
Определения
CatchYieldItemBase.c:25
YieldItemBase::GetCatchDeathSoundset
string GetCatchDeathSoundset()
Определения
CatchYieldItemBase.c:81
YieldItemBase::GetCatchParticleID
int GetCatchParticleID()
Определения
CatchYieldItemBase.c:96
YieldItemBase::GetEnviroMask
int GetEnviroMask()
Определения
CatchYieldItemBase.c:43
YieldItemBase::GetChanceForYieldItem
float GetChanceForYieldItem(CatchingContextBase ctx)
Определения
CatchYieldItemBase.c:69
YieldItemBase::OnEntityYieldSpawned
void OnEntityYieldSpawned(EntityAI spawn)
called on item spawn
YieldItemBase::YieldItemBase
void YieldItemBase(int baseWeight)
Определения
CatchYieldItemBase.c:11
YieldItemBase::GetBaitTypeSensitivity
float GetBaitTypeSensitivity(ECatchingBaitCategories type)
Определения
CatchYieldItemBase.c:53
YieldItemBase::GetQualityForYieldItem
float GetQualityForYieldItem(CatchingContextBase ctx)
Определения
CatchYieldItemBase.c:58
YieldItemBase::m_MethodMask
int m_MethodMask
Определения
CatchYieldItemBase.c:8
YieldItemBase::GetType
string GetType()
Определения
CatchYieldItemBase.c:20
YieldItemBase::m_RegistrationIdx
int m_RegistrationIdx
Определения
CatchYieldItemBase.c:4
ErrorEx
enum ShapeType ErrorEx
Ishodniki
scripts
3_Game
Systems
AnimalCatching
CatchYieldItemBase.c
Создано системой
1.13.2