DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Pot.c
См. документацию.
2{
3 void Pot();
4 void ~Pot();
5
6 override bool IsContainer()
7 {
8 return true;
9 }
10
11 override bool IsCookware()
12 {
13 return true;
14 }
15
16 override string GetPouringSoundset()
17 {
18 return "emptyVessle_Pot_SoundSet";
19 }
20
22 {
23 return "pour_HardGround_Pot_SoundSet";
24 }
25
27 {
28 return "pour_SoftGround_Pot_SoundSet";
29 }
30
32 {
33 return "pour_Water_Pot_SoundSet";
34 }
35
37 {
38 return "pour_End_HardGround_Pot_SoundSet";
39 }
40
42 {
43 return "pour_End_SoftGround_Pot_SoundSet";
44 }
45
47 {
48 return "pour_End_Water_Pot_SoundSet";
49 }
50
51 override bool CanPutInCargo( EntityAI parent )
52 {
53 if ( !super.CanPutInCargo( parent ) )
54 return false;
55
56 if ( parent && IsCargoException4x3( parent ) )
57 return false;
58
59 //is 'parent' somewhere in cargo?
60 if (parent && !parent.GetInventory().AreChildrenAccessible())
61 return false;
62
63 return true;
64 }
65
66 override bool CanReceiveItemIntoCargo( EntityAI item )
67 {
68 if ( !super.CanReceiveItemIntoCargo( item ) )
69 return false;
70
71 if ( IsCargoException4x3( item ) )
72 return false;
73
74 //is 'this' somewhere in cargo?
75 if (!GetInventory().AreChildrenAccessible())
76 return false;
77
78 //can 'this' be attached to the item (->assumed smaller size than item)?
79 int slotId;
80 for (int i = 0; i < GetInventory().GetSlotIdCount(); i++)
81 {
82 slotId = GetInventory().GetSlotId(i);
83 if (item.GetInventory().HasAttachmentSlot(slotId))
84 {
85 //Print("CanReceiveItemIntoCargo | item " + item + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
86 return false;
87 }
88 }
89
90 return true;
91 }
92
93 override bool CanLoadItemIntoCargo( EntityAI item )
94 {
95 if ( !super.CanLoadItemIntoCargo( item ) )
96 return false;
97
98 if ( IsCargoException4x3( item ) )
99 return false;
100
101 //can 'this' be attached to the item (->assumed smaller size than item)?
102 int slotId;
103 for (int i = 0; i < GetInventory().GetSlotIdCount(); i++)
104 {
105 slotId = GetInventory().GetSlotId(i);
106 if (item.GetInventory().HasAttachmentSlot(slotId))
107 {
108 //Print("CanLoadItemIntoCargo | item " + item + " matches in slot name: " + InventorySlots.GetSlotName(slotId) + " of " + this);
109 return false;
110 }
111 }
112
113 return true;
114 }
115
116 override bool IsOpen()
117 {
118 return true;
119 }
120
121 override bool CanHaveWetness()
122 {
123 return true;
124 }
125
127 {
128 return 1.0;
129 }
130
131 override void SetActions()
132 {
133 super.SetActions();
134
137
140 }
141}
void AddAction(typename actionName)
Определения AdvancedCommunication.c:220
void RemoveAction(typename actionName)
Определения AdvancedCommunication.c:252
bool IsCargoException4x3(EntityAI item)
Определения ItemBase.c:9419
Определения ActionDrink.c:10
Определения Canteen.c:2
Определения Building.c:6
override string GetPouringSoundset()
Определения Pot.c:16
override bool IsContainer()
Определения Pot.c:6
override bool CanLoadItemIntoCargo(EntityAI item)
Определения Pot.c:93
override bool CanPutInCargo(EntityAI parent)
Определения Pot.c:51
override bool CanReceiveItemIntoCargo(EntityAI item)
Определения Pot.c:66
override bool IsCookware()
Определения Pot.c:11
override string GetEmptyingLoopSoundsetSoft()
Определения Pot.c:26
override string GetEmptyingLoopSoundsetWater()
Определения Pot.c:31
void Pot()
override string GetEmptyingEndSoundsetWater()
Определения Pot.c:46
override bool IsOpen()
Определения Pot.c:116
override string GetEmptyingLoopSoundsetHard()
Определения Pot.c:21
override float GetQuantityNormalizedScripted()
Определения Pot.c:126
override void SetActions()
Определения Pot.c:131
override string GetEmptyingEndSoundsetSoft()
Определения Pot.c:41
override string GetEmptyingEndSoundsetHard()
Определения Pot.c:36
override bool CanHaveWetness()
Определения Pot.c:121
void ~Pot()