Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
yieldsfish.c
Go to the documentation of this file.
2{
3 //used for interpolation between min/max times (UAFishingConstants.CYCLE_LENGTH_MIN/UAFishingConstants.CYCLE_LENGTH_MAX)
4 protected float m_HourlyCycleLengthCoefs[24]; //0 - 23h;
5
6 override void Init()
7 {
8 super.Init();
9
10 m_HourlyCycleLengthCoefs = {1,1,1,1,0.5,0.2,0,0,0,0.2,0.5,1,1/*12h*/,1,1,1,0.75,0.5,0.2,0,0,0,0.2,0.5};
11 m_QualityBase = AnimalCatchingConstants.QUALITY_FISH_BASE; //base quality of the fish
12 }
13
20
21 override float GetBaitTypeSensitivity(ECatchingBaitCategories type)
22 {
23 switch (type)
24 {
25 case ECatchingBaitCategories.BAIT_TYPE_EMPTY:
26 case ECatchingBaitCategories.BAIT_TYPE_MEAT_SMALL:
27 return 1;
28 }
29
30 return 0.0;
31 }
32
33 override string GetCatchDeathSoundset()
34 {
35 return "Fishing_splash_SoundSet";
36 }
37
38 override string GetCatchAINoise()
39 {
40 return "";
41 }
42
43 override int GetCatchParticleID()
44 {
46 }
47}
48
49//----------------------------------//
50//generic fish with basic info only //
51//----------------------------------//
53{
54 void YieldItemGenericFish(int baseWeight, string type, int enviroMask, int methodMask)
55 {
56 m_Type = type;
57 m_EnviroMask = enviroMask;
58 m_MethodMask = methodMask;
59 }
60}
61
62//------------------------------//
63//detailed yield items over nyah//
64//------------------------------//
65//--------------//
66//temperate fish//
67//--------------//
69{
70 override void Init()
71 {
72 super.Init();
74 //m_HourlyCycleLengthCoefs = {1,1,1,1,1,1,1,1,1,1,1,1,1/*12h*/,1,1,1,1,1,1,1,1,1,1,1};
75 //m_QualityBase = some custom value here;
76 m_Type = "Mackerel";
79 }
80}
81
82class YieldItemCarp : FishYieldItemBase
83{
84 override void Init()
85 {
86 super.Init();
87
88 //m_HourlyCycleLengthCoefs = {1,1,1,1,1,1,1,1,1,1,1,1,1/*12h*/,1,1,1,1,1,1,1,1,1,1,1};
89 //m_QualityBase = some custom value here;
94}
97{
98 override void Init()
99 {
100 super.Init();
101
102 //m_HourlyCycleLengthCoefs = {1,1,1,1,1,1,1,1,1,1,1,1,1/*12h*/,1,1,1,1,1,1,1,1,1,1,1};
103 //m_QualityBase = some custom value here;
104 m_Type = "Sardines";
107 }
108}
109
110class YieldItemBitterlings : FishYieldItemBase
111{
112 override void Init()
113 {
114 super.Init();
115
116 //m_HourlyCycleLengthCoefs = {1,1,1,1,1,1,1,1,1,1,1,1,1/*12h*/,1,1,1,1,1,1,1,1,1,1,1};
117 //m_QualityBase = some custom value here;
118 m_Type = "Bitterlings";
119 m_EnviroMask = AnimalCatchingConstants.MASK_ENVIRO_POND;
120 m_MethodMask = AnimalCatchingConstants.MASK_METHOD_FISHTRAP_SMALL;
121 }
122}
123
124//---------//
125//cool fish//
126//---------//
128{
129 override void Init()
130 {
131 super.Init();
132
133 m_HourlyCycleLengthCoefs = {1,1,1,1,1,1,1,0.8,0.7,0.5,0.2,0,0/*12h*/,0,0,0,0.2,0.5,0.7,0.8,1,1,1,1};
134 //m_QualityBase = some custom value here;
135 m_Type = "WalleyePollock";
138 }
139}
140
141class YieldItemSteelheadTrout : FishYieldItemBase
142{
143 override void Init()
144 {
145 super.Init();
146
147 m_HourlyCycleLengthCoefs = {1,1,1,1,1,1,1,1,1,0.5,0.2,0,0/*12h*/,0,0,0.2,0.5,0.7,1,1,1,1,1,1};
148 //m_QualityBase = some custom value here;
149 m_Type = "SteelheadTrout";
150 m_EnviroMask = AnimalCatchingConstants.MASK_ENVIRO_SEA;
151 m_MethodMask = AnimalCatchingConstants.MASK_METHOD_ROD|AnimalCatchingConstants.MASK_METHOD_FISHTRAP_LARGE;
152 }
153}
154
156{
157 override void Init()
158 {
159 super.Init();
160
161 m_HourlyCycleLengthCoefs = {1,1,1,1,1,1,1,1,1,1,0,0,0/*12h*/,0,0,0,0,1,1,1,1,1,1,1};
162 //m_QualityBase = some custom value here;
163 m_Type = "Shrimp";
166 }
167}
eBleedingSourceType m_Type
int m_MethodMask
int m_EnviroMask
static const int MASK_METHOD_ROD
static const int MASK_METHOD_FISHTRAP_LARGE
static const int MASK_ENVIRO_SEA
static const int MASK_ENVIRO_POND
static const int MASK_METHOD_FISHTRAP_SMALL
override void Init()
Definition yieldsfish.c:6
override string GetCatchAINoise()
Definition yieldsfish.c:38
float m_HourlyCycleLengthCoefs[24]
Definition yieldsfish.c:4
override float GetBaitTypeSensitivity(ECatchingBaitCategories type)
Definition yieldsfish.c:21
override string GetCatchDeathSoundset()
Definition yieldsfish.c:33
float GetCycleTimeForYieldItem(CatchingContextFishingRodAction ctx)
Definition yieldsfish.c:14
override int GetCatchParticleID()
Definition yieldsfish.c:43
Definition enmath.c:7
static const int FISHING_SIGNAL_SPLASH
const float CYCLE_LENGTH_MAX
const float CYCLE_LENGTH_MIN
void YieldItemBase(int baseWeight)
override void Init()
Definition yieldsfish.c:70
override void Init()
Definition yieldsfish.c:98
override void Init()
Definition yieldsfish.c:157
override void Init()
Definition yieldsfish.c:129
DayZGame g_Game
Definition dayzgame.c:3942
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto float Floor(float f)
Returns floor of value.
FishYieldItemBase YieldItemBase YieldItemGenericFish(int baseWeight, string type, int enviroMask, int methodMask)
Definition yieldsfish.c:54
float m_HourlyCycleLengthCoefs[24]
Definition yieldsfish.c:56