Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
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
16
18 {
19 return 0.20; //not affected by equipment or time, just some flat number
20 }
21
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
44 {
45 return 0;
46 }
47}
void CatchingContextBase(Param par)
static const int MASK_METHOD_ROD
static const int MASK_ENVIRO_WATER_ALL
const float CYCLE_LENGTH_MAX
float GetQualityForYieldItem(CatchingContextBase ctx)
override float GetChanceForYieldItem(CatchingContextBase ctx)
override void Init()
override void OnEntityYieldSpawned(EntityAI spawn)
void YieldItemJunk(int baseWeight, string type)
override string GetCatchDeathSoundset()
override float GetCycleTimeForYieldItem(CatchingContextFishingRodAction ctx)
const int STATE_BADLY_DAMAGED
Definition constants.c:852