183 {
184 int baitType = ECatchingBaitCategories.BAIT_TYPE_EMPTY;
185 int usedType = -1;
186 float probability = -1;
187 float highestProbability = 0.0;
189 for (int i = 0; i < count; i++)
190 {
193 if (probability > highestProbability)
194 {
195 highestProbability = probability;
196 usedType = baitType;
197 }
198 }
199
201 #ifdef DEVELOPER
203 {
204
205 Print(
"dbgTrapz | using bait type: " + baitType +
" to catch: " + yItem);
206 }
207 #endif
209
210 #ifdef DEVELOPER
212 {
213 float dbgProb;
216 }
217 #endif
218 }
ref map< int, ref BaitData > m_BaitCompatibilityMap
float m_CumulativeTrappingSuccess
after N attempts, the chance to catch should be this. Only highest one applies. @NOTE: Take care,...
override bool ModifySignalProbability(inout float probability)
void UpdateUsedBait(ECatchingBaitCategories type)
if non-empty bait type is used, some 'Bait' attachment is picked as an active bait (currently no dire...
float GetBaitTypeSensitivity(ECatchingBaitCategories type)
proto void Print(void var)
Prints content of variable to console/log.
proto native bool IsCLIParam(string param)
Returns if command line argument is present.