Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
yieldsfishingjunk.c
Go to the documentation of this file.
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
40class YieldItemJunkEmpty : YieldItemJunk
41{
42 //empty liquid containers
43 override float GetQualityForYieldItem(CatchingContextBase ctx)
44 {
45 return 0;
46 }
47}
float GetQualityForYieldItem(CatchingContextBase ctx)