Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
yieldslandanimals.c
Go to the documentation of this file.
2
3//------------------------------------//
4//generic animal with basic info only //
5//------------------------------------//
7{
8 void YieldItemGenericSmallAnimal(int baseWeight, string type, int enviroMask, int methodMask)
9 {
10 m_Type = type;
11 m_EnviroMask = enviroMask;
12 m_MethodMask = methodMask;
13 }
14}
15
16//mammals
18{
19 override void Init()
20 {
21 super.Init();
22
23 m_Type = "DeadRabbit";
24 m_EnviroMask = AnimalCatchingConstants.MASK_ENVIRO_FOREST;
25 m_MethodMask = AnimalCatchingConstants.MASK_METHOD_LANDTRAP_SNARE;
26 }
27
28 override float GetBaitTypeSensitivity(ECatchingBaitCategories type)
29 {
30 switch (type)
31 {
32 case ECatchingBaitCategories.BAIT_TYPE_EMPTY:
33 case ECatchingBaitCategories.BAIT_TYPE_PLANT:
34 return 1.0;
35
36 /*
37 //We can define 'offputing' baits the animal would actually AVOID
38 case ECatchingBaitCategories.BAIT_TYPE_MEAT_SMALL:
39 case ECatchingBaitCategories.BAIT_TYPE_MEAT_LARGE:
40 return -1;
41 */
42 }
43
44 return 0.0;
45 }
46
47 override string GetCatchDeathSoundset()
48 {
49 return "BrownHareDeath_SoundSet";
50 }
51
52 override string GetCatchAINoise()
53 {
54 return "WolfRoarNoise";
55 }
56
57 override float GetCatchAINoiseBaseStrength()
58 {
59 return 1.0;
60 }
61}
62
63class YieldItemDeadFox : LandAnimalYieldItemBase
64{
65 override void Init()
66 {
67 super.Init();
68
69 m_Type = "DeadFox";
70 m_EnviroMask = AnimalCatchingConstants.MASK_ENVIRO_FOREST;
71 m_MethodMask = AnimalCatchingConstants.MASK_METHOD_LANDTRAP_SNARE;
72 }
73
74 override float GetBaitTypeSensitivity(ECatchingBaitCategories type)
75 {
76 switch (type)
77 {
78 case ECatchingBaitCategories.BAIT_TYPE_EMPTY:
79 case ECatchingBaitCategories.BAIT_TYPE_MUSHROOM:
80 case ECatchingBaitCategories.BAIT_TYPE_MEAT_SMALL:
81 case ECatchingBaitCategories.BAIT_TYPE_MEAT_LARGE:
82 return 1.0;
83 }
84
85 return 0.0;
86 }
87
88 override string GetCatchDeathSoundset()
89 {
90 return "Red_Fox_Death_SoundSet";
91 }
92
93 override string GetCatchAINoise()
94 {
95 return "WolfRoarNoise";
96 }
97
98 override float GetCatchAINoiseBaseStrength()
99 {
100 return 1.0;
101 }
102}
103
104//poultry
106{
107 override void Init()
108 {
109 super.Init();
110
111 m_EnviroMask = AnimalCatchingConstants.MASK_ENVIRO_FIELD;
112 m_MethodMask = AnimalCatchingConstants.MASK_METHOD_LANDTRAP_SNARE;
113 }
114
115 override float GetBaitTypeSensitivity(ECatchingBaitCategories type)
116 {
117 switch (type)
118 {
119 case ECatchingBaitCategories.BAIT_TYPE_EMPTY:
120 case ECatchingBaitCategories.BAIT_TYPE_PLANT:
121 case ECatchingBaitCategories.BAIT_TYPE_SEED:
122 case ECatchingBaitCategories.BAIT_TYPE_MUSHROOM:
123 case ECatchingBaitCategories.BAIT_TYPE_MEAT_SMALL:
124 return 1.0;
125 }
126
127 return 0.0;
128 }
129
130 override string GetCatchDeathSoundset()
131 {
132 return "HenScream_SoundSet";
133 }
134
135 override string GetCatchAINoise()
136 {
137 return "WolfRoarNoise";
138 }
139
140 override float GetCatchAINoiseBaseStrength()
141 {
142 return 1.0;
143 }
144}
145
146class YieldItemDeadRooster : YieldItemCapraHircusBase
147{
148 override void Init()
149 {
150 super.Init();
151
152 m_Type = "DeadRooster";
153 }
154}
156{
157 override void Init()
158 {
159 super.Init();
160
161 m_Type = "DeadChicken_White";
162 }
163}
164class YieldItemDeadChicken_Spotted : YieldItemCapraHircusBase
165{
166 override void Init()
167 {
168 super.Init();
169
170 m_Type = "DeadChicken_Spotted";
171 }
172}
174{
175 override void Init()
176 {
177 super.Init();
178
179 m_Type = "DeadChicken_Brown";
180 }
181}
eBleedingSourceType m_Type
int m_MethodMask
int m_EnviroMask
float GetCatchAINoiseBaseStrength()
string GetCatchDeathSoundset()
void YieldItemBase(int baseWeight)
float GetBaitTypeSensitivity(ECatchingBaitCategories type)
YieldItemDeadRabbit LandAnimalYieldItemBase Init()
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside o...
LandAnimalYieldItemBase YieldItemBase YieldItemGenericSmallAnimal(int baseWeight, string type, int enviroMask, int methodMask)