DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
YieldsFish.c
См. документацию.
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
126//---------//
127//cool fish//
128//---------//
130{
131 override void Init()
132 {
133 super.Init();
134
135 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};
136 //m_QualityBase = some custom value here;
137 m_Type = "WalleyePollock";
140 }
141}
142
143class YieldItemSteelheadTrout : FishYieldItemBase
144{
145 override void Init()
146 {
147 super.Init();
148
149 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};
150 //m_QualityBase = some custom value here;
151 m_Type = "SteelheadTrout";
152 m_EnviroMask = AnimalCatchingConstants.MASK_ENVIRO_SEA;
153 m_MethodMask = AnimalCatchingConstants.MASK_METHOD_ROD|AnimalCatchingConstants.MASK_METHOD_FISHTRAP_LARGE;
154 }
155}
156
158{
159 override void Init()
160 {
161 super.Init();
162
163 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};
164 //m_QualityBase = some custom value here;
165 m_Type = "Shrimp";
168 }
169}
170
171//---------//
172//arid fish//
173//---------//
174
175class YieldItemRoundGoby : FishYieldItemBase
176{
177 override void Init()
178 {
179 super.Init();
180
181 //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};
182 //m_QualityBase = some custom value here;
183 m_Type = "RoundGoby";
184 m_EnviroMask = AnimalCatchingConstants.MASK_ENVIRO_POND;
185 m_MethodMask = AnimalCatchingConstants.MASK_METHOD_FISHTRAP_SMALL;
186 }
187}
188
190{
191 override void Init()
192 {
193 super.Init();
194
195 //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};
196 //m_QualityBase = some custom value here;
197 m_Type = "Catfish";
200 }
201}
eBleedingSourceType m_Type
int m_MethodMask
Определения CatchingContextBase.c:18
int m_EnviroMask
Определения CatchingContextBase.c:19
DayZGame g_Game
Определения DayZGame.c:4074
FishYieldItemBase YieldItemBase YieldItemGenericFish(int baseWeight, string type, int enviroMask, int methodMask)
Определения YieldsFish.c:54
float m_HourlyCycleLengthCoefs[24]
Определения YieldsFish.c:56
const float QUALITY_FISH_BASE
Определения CatchingConstants.c:4
static const int MASK_ENVIRO_POND
Определения CatchingConstants.c:11
static const int MASK_METHOD_FISHTRAP_LARGE
Определения CatchingConstants.c:20
static const int MASK_METHOD_ROD
Определения CatchingConstants.c:19
static const int MASK_ENVIRO_SEA
Определения CatchingConstants.c:12
static const int MASK_METHOD_FISHTRAP_SMALL
Определения CatchingConstants.c:21
override int GetCatchParticleID()
Определения YieldsFish.c:43
override string GetCatchAINoise()
Определения YieldsFish.c:38
override float GetBaitTypeSensitivity(ECatchingBaitCategories type)
Определения YieldsFish.c:21
override string GetCatchDeathSoundset()
Определения YieldsFish.c:33
float m_HourlyCycleLengthCoefs[24]
Определения YieldsFish.c:4
float GetCycleTimeForYieldItem(CatchingContextFishingRodAction ctx)
Определения YieldsFish.c:14
override void Init()
Определения YieldsFish.c:6
Определения YieldsFish.c:2
Определения EnMath.c:7
static const int FISHING_SIGNAL_SPLASH
Определения ParticleList.c:370
Определения ParticleList.c:12
const float CYCLE_LENGTH_MAX
Определения ActionConstants.c:187
const float CYCLE_LENGTH_MIN
Определения ActionConstants.c:186
int m_EnviroMask
Определения CatchYieldItemBase.c:7
float m_QualityBase
Определения CatchYieldItemBase.c:6
string m_Type
Определения CatchYieldItemBase.c:3
void YieldItemBase(int baseWeight)
Определения CatchYieldItemBase.c:11
int m_MethodMask
Определения CatchYieldItemBase.c:8
override void Init()
Определения YieldsFish.c:191
Определения YieldsFish.c:190
override void Init()
Определения YieldsFish.c:70
Определения YieldsFish.c:69
override void Init()
Определения YieldsFish.c:98
Определения YieldsFish.c:97
override void Init()
Определения YieldsFish.c:159
Определения YieldsFish.c:158
override void Init()
Определения YieldsFish.c:131
static proto float Floor(float f)
Returns floor of value.
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.