Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
cauldron.c
Go to the documentation of this file.
1 class Cauldron extends Bottle_Base
2 {
3  void Cauldron()
4  {
5 
6  }
7 
8  void ~Cauldron()
9  {
10 
11  }
12 
13  override bool IsContainer()
14  {
15  return true;
16  }
17 
18  override string GetPouringSoundset()
19  {
20  return "emptyVessle_Pot_SoundSet";
21  }
22 
23  override string GetEmptyingLoopSoundsetHard()
24  {
25  return "pour_HardGround_Pot_SoundSet";
26  }
27 
28  override string GetEmptyingLoopSoundsetSoft()
29  {
30  return "pour_SoftGround_Pot_SoundSet";
31  }
32 
33  override string GetEmptyingLoopSoundsetWater()
34  {
35  return "pour_Water_Pot_SoundSet";
36  }
37 
38  override string GetEmptyingEndSoundsetHard()
39  {
40  return "pour_End_HardGround_Pot_SoundSet";
41  }
42 
43  override string GetEmptyingEndSoundsetSoft()
44  {
45  return "pour_End_SoftGround_Pot_SoundSet";
46  }
47 
48  override string GetEmptyingEndSoundsetWater()
49  {
50  return "pour_End_Water_Pot_SoundSet";
51  }
52 
53  override bool CanPutInCargo( EntityAI parent )
54  {
55  if ( !super.CanPutInCargo( parent ) )
56  return false;
57 
58  if ( parent && IsCargoException4x3( parent ) )
59  return false;
60 
61  //is 'parent' somewhere in cargo?
62  if (parent && parent.GetInventory().IsCargoInHiearchy())
63  return false;
64 
65  return true;
66  }
67 
68  override bool CanReceiveItemIntoCargo(EntityAI item)
69  {
70  if ( !super.CanReceiveItemIntoCargo( item ) )
71  return false;
72 
73  if ( IsCargoException4x3( item ) )
74  return false;
75 
76  //is 'this' somewhere in cargo?
77  if (GetInventory().IsCargoInHiearchy())
78  return false;
79 
80  return true;
81  }
82 
83  override bool CanLoadItemIntoCargo(EntityAI item)
84  {
85  if ( !super.CanLoadItemIntoCargo( item ) )
86  return false;
87 
88  if ( IsCargoException4x3( item ) )
89  return false;
90 
91  return true;
92  }
93 
94  override bool IsOpen()
95  {
96  return true;
97  }
98 
99  override bool CanHaveWetness()
100  {
101  return true;
102  }
103 
104  override void SetActions()
105  {
106  super.SetActions();
107 
112  }
113 }
GetEmptyingLoopSoundsetWater
string GetEmptyingLoopSoundsetWater()
IsCargoException4x3
bool IsCargoException4x3(EntityAI item)
Definition: itembase.c:4591
CanReceiveItemIntoCargo
override bool CanReceiveItemIntoCargo(EntityAI item)
Definition: container_base.c:72
ActionEmptyCookingPot
Definition: actionemptycookingpot.c:1
RemoveAction
void RemoveAction(typename actionName)
Definition: advancedcommunication.c:118
IsOpen
override bool IsOpen()
Definition: fireplacebase.c:2395
Bottle_Base
Definition: canistergasoline.c:1
ActionDrinkCookingPot
Definition: actiondrinkcookingpot.c:1
ActionDrink
Definition: actiondrink.c:9
GetPouringSoundset
string GetPouringSoundset()
CanPutInCargo
override bool CanPutInCargo(EntityAI parent)
Definition: explosivesbase.c:247
AddAction
void AddAction(typename actionName)
Definition: advancedcommunication.c:86
SetActions
void SetActions()
Definition: advancedcommunication.c:79
GetEmptyingEndSoundsetWater
string GetEmptyingEndSoundsetWater()
GetEmptyingLoopSoundsetHard
string GetEmptyingLoopSoundsetHard()
GetEmptyingEndSoundsetHard
string GetEmptyingEndSoundsetHard()
GetEmptyingEndSoundsetSoft
string GetEmptyingEndSoundsetSoft()
ActionEmptyBottleBase
Definition: actionemptybottlebase.c:14
CanHaveWetness
override bool CanHaveWetness()
Definition: fireplacebase.c:529
CanLoadItemIntoCargo
override bool CanLoadItemIntoCargo(EntityAI item)
Definition: container_base.c:80
EntityAI
Definition: building.c:5
GetEmptyingLoopSoundsetSoft
string GetEmptyingLoopSoundsetSoft()