DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
YieldsFishingJunk.c
См. документацию.
1
2
class
YieldItemJunk
:
FishYieldItemBase
3
{
4
void
YieldItemJunk
(
int
baseWeight,
string
type)
5
{
6
m_Type
= type;
7
}
8
9
override
void
Init
()
10
{
11
super.Init();
12
13
m_EnviroMask
=
AnimalCatchingConstants
.
MASK_ENVIRO_WATER_ALL
;
14
m_MethodMask
=
AnimalCatchingConstants
.
MASK_METHOD_ROD
;
15
}
16
17
override
float
GetChanceForYieldItem
(
CatchingContextBase
ctx)
18
{
19
return
0.20;
//not affected by equipment or time, just some flat number
20
}
21
22
override
float
GetCycleTimeForYieldItem
(
CatchingContextFishingRodAction
ctx)
23
{
24
return
UAFishingConstants
.
CYCLE_LENGTH_MAX
;
25
}
26
27
override
void
OnEntityYieldSpawned
(
EntityAI
spawn)
28
{
29
super.OnEntityYieldSpawned(spawn);
30
31
spawn.SetHealthLevel(
GameConstants
.
STATE_BADLY_DAMAGED
,
""
);
32
}
33
34
override
string
GetCatchDeathSoundset
()
35
{
36
return
""
;
37
}
38
}
39
40
class
YieldItemJunkEmpty :
YieldItemJunk
41
{
42
//empty liquid containers
43
override
float
GetQualityForYieldItem
(
CatchingContextBase
ctx)
44
{
45
return
0;
46
}
47
}
CatchingContextBase
void CatchingContextBase(Param par)
Определения
CatchingContextBase.c:29
AnimalCatchingConstants::MASK_METHOD_ROD
static const int MASK_METHOD_ROD
Определения
CatchingConstants.c:19
AnimalCatchingConstants::MASK_ENVIRO_WATER_ALL
static const int MASK_ENVIRO_WATER_ALL
Определения
CatchingConstants.c:15
AnimalCatchingConstants
Определения
CatchingConstants.c:2
CatchingContextFishingRodAction
Определения
CatchingContextFishingRodAction.c:2
EntityAI
Определения
Building.c:6
FishYieldItemBase
Определения
YieldsFish.c:2
GameConstants
Определения
constants.c:659
UAFishingConstants::CYCLE_LENGTH_MAX
const float CYCLE_LENGTH_MAX
Определения
ActionConstants.c:182
UAFishingConstants
Определения
ActionConstants.c:179
YieldItemBase::m_EnviroMask
int m_EnviroMask
Определения
CatchYieldItemBase.c:7
YieldItemBase::m_Type
string m_Type
Определения
CatchYieldItemBase.c:3
YieldItemBase::GetQualityForYieldItem
float GetQualityForYieldItem(CatchingContextBase ctx)
Определения
CatchYieldItemBase.c:58
YieldItemBase::m_MethodMask
int m_MethodMask
Определения
CatchYieldItemBase.c:8
YieldItemJunk::Init
override void Init()
Определения
YieldsFishingJunk.c:9
YieldItemJunk::GetChanceForYieldItem
override float GetChanceForYieldItem(CatchingContextBase ctx)
Определения
YieldsFishingJunk.c:17
YieldItemJunk::OnEntityYieldSpawned
override void OnEntityYieldSpawned(EntityAI spawn)
Определения
YieldsFishingJunk.c:27
YieldItemJunk::GetCycleTimeForYieldItem
override float GetCycleTimeForYieldItem(CatchingContextFishingRodAction ctx)
Определения
YieldsFishingJunk.c:22
YieldItemJunk::GetCatchDeathSoundset
override string GetCatchDeathSoundset()
Определения
YieldsFishingJunk.c:34
YieldItemJunk::YieldItemJunk
void YieldItemJunk(int baseWeight, string type)
Определения
YieldsFishingJunk.c:4
YieldItemJunk
Определения
YieldsFishingJunk.c:3
GameConstants::STATE_BADLY_DAMAGED
const int STATE_BADLY_DAMAGED
Определения
constants.c:847
Ishodniki
scripts
4_World
Systems
AnimalCatchingSystem
YieldItems
YieldsFishingJunk.c
Создано системой
1.13.2