Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
tripod.c
Go to the documentation of this file.
1
class
TripodBase
:
ItemBase
2
{
3
override
bool
HasProxyParts
()
4
{
5
return
true
;
6
}
7
8
override
bool
CanDetachAttachment
(
EntityAI
parent )
9
{
10
FireplaceBase
fireplace =
FireplaceBase
.Cast(parent);
11
if
(fireplace)
12
{
13
if
( fireplace.GetCookingEquipment() != null )
14
{
15
return
false
;
16
}
17
}
18
return
true
;
19
}
20
21
override
bool
CanSwapEntities
(
EntityAI
otherItem,
InventoryLocation
otherDestination,
InventoryLocation
destination)
22
{
23
if
(GetHierarchyParent() && GetHierarchyParent().
IsFireplace
() && otherItem)
24
{
25
if
(otherItem.IsInherited(
Pot
) || otherItem.IsInherited(
Cauldron
))
26
{
27
return
false
;
28
}
29
}
30
return
true
;
31
}
32
33
34
override
void
OnDebugSpawn
()
35
{
36
HideAllSelections();
37
ShowSelection(
"Deployed"
);
38
}
39
40
override
void
SetActions
()
41
{
42
super.SetActions();
43
44
AddAction
(
ActionAttach
);
45
AddAction
(
ActionDetach
);
46
}
47
48
override
void
OnWasAttached
(
EntityAI
parent,
int
slot_id )
49
{
50
super.OnWasAttached(parent, slot_id);
51
if
(parent.IsFireplace())
52
{
53
HideAllSelections();
54
ShowSelection(
"Deployed"
);
55
}
56
}
57
58
override
void
OnWasDetached
(
EntityAI
parent,
int
slot_id )
59
{
60
super.OnWasDetached(parent, slot_id);
61
if
(parent.IsFireplace())
62
{
63
HideAllSelections();
64
ShowSelection(
"Collapsed"
);
65
}
66
}
67
}
68
69
70
class
Tripod :
TripodBase
71
{
72
73
}
ActionAttach
AttachActionData ActionData ActionAttach()
Definition
actionattach.c:9
ActionDetach
void ActionDetach()
Definition
actiondetach.c:10
AddAction
void AddAction(typename actionName)
Definition
advancedcommunication.c:220
Cauldron
Definition
cauldron.c:2
EntityAI
Definition
inventoryitem.c:2
FireplaceBase
Definition
barrelholes_colorbase.c:2
InventoryLocation
InventoryLocation.
Definition
inventorylocation.c:30
ItemBase
Definition
inventoryitem.c:742
Pot
Definition
pot.c:2
TripodBase
Definition
cookingstand.c:2
TripodBase::OnDebugSpawn
override void OnDebugSpawn()
Definition
tripod.c:34
TripodBase::HasProxyParts
override bool HasProxyParts()
Definition
tripod.c:3
TripodBase::OnWasDetached
override void OnWasDetached(EntityAI parent, int slot_id)
Definition
tripod.c:58
TripodBase::OnWasAttached
override void OnWasAttached(EntityAI parent, int slot_id)
Definition
tripod.c:48
TripodBase::CanDetachAttachment
override bool CanDetachAttachment(EntityAI parent)
Definition
tripod.c:8
TripodBase::CanSwapEntities
override bool CanSwapEntities(EntityAI otherItem, InventoryLocation otherDestination, InventoryLocation destination)
Definition
tripod.c:21
TripodBase::SetActions
override void SetActions()
Definition
tripod.c:40
IsFireplace
override bool IsFireplace()
Definition
fireplacebase.c:531
Games
Dayz
scripts
4_world
entities
itembase
tripod.c
Generated by
1.17.0