Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
itembook.c
Go to the documentation of this file.
1 class ItemBook extends InventoryItemSuper
2 {
3  override event bool OnUseFromInventory(Man owner)
4  {
5  return false;
6  }
7 
8  //================================================================
9  // IGNITION ACTION
10  //================================================================
11  override bool HasFlammableMaterial()
12  {
13  return true;
14  }
15 
16  override bool CanBeIgnitedBy( EntityAI igniter = NULL )
17  {
18  if ( GetHierarchyParent() ) return false;
19 
20  return true;
21  }
22 
23  override bool CanIgniteItem( EntityAI ignite_target = NULL )
24  {
25  return false;
26  }
27 
28  override void OnIgnitedTarget( EntityAI ignited_item )
29  {
30  }
31 
32  override void OnIgnitedThis( EntityAI fire_source )
33  {
34  Fireplace.IgniteEntityAsFireplace( this, fire_source );
35  }
36 
37  override bool IsThisIgnitionSuccessful( EntityAI item_source = NULL )
38  {
39  return Fireplace.CanIgniteEntityAsFireplace( this );
40  }
41 }
OnIgnitedThis
override void OnIgnitedThis(EntityAI fire_source)
Executed on Server when some item ignited this one.
Definition: fireworksbase.c:96
HasFlammableMaterial
override bool HasFlammableMaterial()
Definition: fireworksbase.c:41
InventoryItemSuper
Definition: inventoryitem.c:3
CanBeIgnitedBy
override protected bool CanBeIgnitedBy(EntityAI igniter=NULL)
Definition: fireworksbase.c:102
EntityAI
Definition: building.c:5