DayZ 1.24
Loading...
Searching...
No Matches
Tripod.c
Go to the documentation of this file.
2{
3 override bool HasProxyParts()
4 {
5 return true;
6 }
7
8 override bool CanDetachAttachment(EntityAI parent)
9 {
11 if (fireplace)
12 {
13 if (fireplace.GetCookingEquipment() != null)
14 return false;
15 }
16 return true;
17 }
18
20 {
21 if (GetHierarchyParent() && GetHierarchyParent().IsFireplace() && otherItem)
22 {
23 if (otherItem.IsInherited(Pot) || otherItem.IsInherited(Cauldron))
24 return false;
25 }
26 return true;
27 }
28
29
30 override void OnDebugSpawn()
31 {
32 HideAllSelections();
33 ShowSelection("Deployed");
34 }
35
36 override void SetActions()
37 {
38 super.SetActions();
39
40 AddAction(ActionAttach);
42 }
43
44 override void OnWasAttached(EntityAI parent, int slot_id)
45 {
46 super.OnWasAttached(parent, slot_id);
47 if (parent.IsFireplace())
48 {
49 HideAllSelections();
50 ShowSelection("Deployed");
51 }
52 }
53
54 override void OnWasDetached(EntityAI parent, int slot_id)
55 {
56 super.OnWasDetached(parent, slot_id);
57 if (parent.IsFireplace())
58 {
59 HideAllSelections();
60 ShowSelection("Collapsed");
61 }
62 }
63}
64
65
66class Tripod : TripodBase
67{
68
69}
void ActionDetach()
void AddAction(typename actionName)
override bool IsFireplace()
InventoryLocation.
override bool CanDetachAttachment(EntityAI parent)
Definition Tripod.c:8
override bool HasProxyParts()
Definition Tripod.c:3
override void OnWasDetached(EntityAI parent, int slot_id)
Definition Tripod.c:54
override bool CanSwapEntities(EntityAI otherItem, InventoryLocation otherDestination, InventoryLocation destination)
Definition Tripod.c:19
override void OnDebugSpawn()
Definition Tripod.c:30
override void OnWasAttached(EntityAI parent, int slot_id)
Definition Tripod.c:44
override void SetActions()
Definition Tripod.c:36