Dayz Explorer
1.28.160049
Loading...
Searching...
No Matches
matchbox.c
Go to the documentation of this file.
1
class
Matchbox
extends
ItemBase
2
{
3
override
void
InitItemVariables()
4
{
5
super.InitItemVariables();
6
can_this_be_combined
=
true
;
7
}
8
9
override
bool
CanIgniteItem(
EntityAI
ignite_target = NULL )
10
{
11
if
(
GetQuantity
() > 0 &&
GetWet
() <
GameConstants
.STATE_DAMP )
12
return
true
;
13
else
14
return
false
;
15
}
16
17
override
void
OnIgnitedTarget(
EntityAI
target_item )
18
{
19
if
(
GetGame
().IsServer() )
20
{
21
AddQuantity
( -1 );
22
}
23
}
24
25
override
void
OnIgnitedTargetFailed(
EntityAI
target_item )
26
{
27
if
(
GetGame
().IsServer() )
28
{
29
AddQuantity
( -1 );
30
}
31
}
32
33
override
void
SetActions
()
34
{
35
super.SetActions();
36
37
AddAction
(
ActionLightItemOnFire
);
38
}
39
40
/*
41
override bool IsTargetIgnitionSuccessful( EntityAI item_target = NULL )
42
{
43
}
44
*/
45
}
ActionLightItemOnFire
ActionLightItemOnFireCB ActionContinuousBaseCB ActionLightItemOnFire()
Definition
actionlightitemonfire.c:11
AddAction
void AddAction(typename actionName)
Definition
advancedcommunication.c:220
SetActions
void SetActions()
Definition
advancedcommunication.c:213
EntityAI
Definition
building.c:6
GameConstants
Definition
constants.c:661
ItemBase
Definition
inventoryitem.c:731
Matchbox
@ Matchbox
Definition
efireignitetype.c:4
GetGame
proto native CGame GetGame()
AddQuantity
bool AddQuantity(float value, bool destroy_config=true, bool destroy_forced=false)
add item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity re...
Definition
itembase.c:8202
GetQuantity
override float GetQuantity()
Definition
itembase.c:8296
can_this_be_combined
bool can_this_be_combined
Definition
itembase.c:4908
GetWet
override float GetWet()
Definition
itembase.c:8516
Daten
4_world
entities
itembase
matchbox.c
Generated by
1.12.0