DayZ
1.29
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Matchbox.c
См. документацию.
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
(
g_Game
.IsServer() )
20
{
21
AddQuantity
( -1 );
22
}
23
}
24
25
override
void
OnIgnitedTargetFailed
(
EntityAI
target_item )
26
{
27
if
(
g_Game
.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()
Определения
ActionLightItemOnFire.c:11
AddAction
void AddAction(typename actionName)
Определения
AdvancedCommunication.c:220
g_Game
DayZGame g_Game
Определения
DayZGame.c:3942
Matchbox
@ Matchbox
Определения
EFireIgniteType.c:4
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...
Определения
ItemBase.c:8303
GetQuantity
override float GetQuantity()
Определения
ItemBase.c:8398
can_this_be_combined
bool can_this_be_combined
Определения
ItemBase.c:4964
GetWet
override float GetWet()
Определения
ItemBase.c:8621
EntityAI
Определения
3_Game/DayZ/Entities/InventoryItem.c:2
GameConstants
Определения
3_Game/DayZ/constants.c:664
ItemBase::SetActions
override void SetActions()
Определения
Matchbox.c:33
ItemBase::InitItemVariables
override void InitItemVariables()
Определения
Matchbox.c:3
ItemBase::OnIgnitedTargetFailed
override void OnIgnitedTargetFailed(EntityAI target_item)
Определения
Matchbox.c:25
ItemBase::OnIgnitedTarget
override void OnIgnitedTarget(EntityAI target_item)
Определения
Matchbox.c:17
ItemBase::CanIgniteItem
override bool CanIgniteItem(EntityAI ignite_target=NULL)
Определения
Matchbox.c:9
ItemBase
Определения
4_World/DayZ/Entities/Core/Inherited/InventoryItem.c:742
GameConstants::STATE_DAMP
const float STATE_DAMP
Определения
3_Game/DayZ/constants.c:878
Ishodniki
scripts
4_World
DayZ
Entities
ItemBase
Matchbox.c
Создано системой
1.13.2