Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
giftwrappaper.c
Go to the documentation of this file.
1
class
GiftWrapPaper
extends
ItemBase
2
{
3
//================================================================
4
// IGNITION ACTION
5
//================================================================
6
override
bool
HasFlammableMaterial
()
7
{
8
return
true
;
9
}
10
11
override
bool
CanBeIgnitedBy
(
EntityAI
igniter = NULL )
12
{
13
if
( GetHierarchyParent() )
return
false
;
14
15
return
true
;
16
}
17
18
override
bool
CanIgniteItem(
EntityAI
ignite_target = NULL )
19
{
20
return
false
;
21
}
22
23
override
void
OnIgnitedTarget(
EntityAI
ignited_item )
24
{
25
}
26
27
override
void
OnIgnitedThis
(
EntityAI
fire_source )
28
{
29
Fireplace.IgniteEntityAsFireplace(
this
, fire_source );
30
}
31
32
override
bool
IsThisIgnitionSuccessful(
EntityAI
item_source = NULL )
33
{
34
return
Fireplace.CanIgniteEntityAsFireplace(
this
);
35
}
36
37
override
void
SetActions
()
38
{
39
AddAction
(
ActionPackGift
);
40
super.SetActions();
41
42
AddAction
(
ActionCreateIndoorFireplace
);
43
AddAction
(
ActionCreateIndoorOven
);
44
AddAction
(
ActionAttach
);
45
AddAction
(
ActionDetach
);
46
}
47
}
ItemBase
Definition:
inventoryitem.c:730
OnIgnitedThis
override void OnIgnitedThis(EntityAI fire_source)
Executed on Server when some item ignited this one.
Definition:
fireworksbase.c:96
ActionDetach
void ActionDetach()
Definition:
actiondetach.c:10
ActionPackGift
Definition:
actionpackgift.c:9
HasFlammableMaterial
override bool HasFlammableMaterial()
Definition:
fireworksbase.c:41
AddAction
void AddAction(typename actionName)
Definition:
advancedcommunication.c:86
SetActions
void SetActions()
Definition:
advancedcommunication.c:79
ActionCreateIndoorFireplace
Definition:
actioncreateindoorfireplace.c:1
ActionCreateIndoorOven
Definition:
actioncreateindooroven.c:1
ActionAttach
ActionAttachWheels ActionAttach
CanBeIgnitedBy
override protected bool CanBeIgnitedBy(EntityAI igniter=NULL)
Definition:
fireworksbase.c:102
EntityAI
Definition:
building.c:5
DAYZ
scripts_v1.24.157551
scripts
world
entities
itembase
giftwrappaper.c
Generated by
1.8.17