DayZ
1.29
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
PetrolLighter.c
См. документацию.
1
class
PetrolLighter
extends
ItemBase
2
{
3
override
bool
CanIgniteItem
(
EntityAI
ignite_target = NULL )
4
{
5
if
(
GetQuantity
() > 0 )
6
return
true
;
7
else
8
return
false
;
9
}
10
11
override
void
OnIgnitedTarget
(
EntityAI
target_item )
12
{
13
if
(
g_Game
.IsServer() )
14
{
15
AddQuantity
( -0.5 );
16
}
17
}
18
19
override
void
OnIgnitedTargetFailed
(
EntityAI
target_item )
20
{
21
if
(
g_Game
.IsServer() )
22
{
23
AddQuantity
( -0.5 );
24
}
25
}
26
27
/*
28
override bool IsTargetIgnitionSuccessful( EntityAI item_target = NULL )
29
{
30
}
31
*/
32
33
override
void
SetActions
()
34
{
35
super.SetActions();
36
37
AddAction
(
ActionLightItemOnFire
);
38
}
39
}
ActionLightItemOnFire
ActionLightItemOnFireCB ActionContinuousBaseCB ActionLightItemOnFire()
Определения
ActionLightItemOnFire.c:11
AddAction
void AddAction(typename actionName)
Определения
AdvancedCommunication.c:220
g_Game
DayZGame g_Game
Определения
DayZGame.c:3942
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
EntityAI
Определения
3_Game/DayZ/Entities/InventoryItem.c:2
ItemBase::SetActions
override void SetActions()
Определения
PetrolLighter.c:33
ItemBase::OnIgnitedTargetFailed
override void OnIgnitedTargetFailed(EntityAI target_item)
Определения
PetrolLighter.c:19
ItemBase::OnIgnitedTarget
override void OnIgnitedTarget(EntityAI target_item)
Определения
PetrolLighter.c:11
ItemBase::CanIgniteItem
override bool CanIgniteItem(EntityAI ignite_target=NULL)
Определения
PetrolLighter.c:3
ItemBase
Определения
4_World/DayZ/Entities/Core/Inherited/InventoryItem.c:742
Ishodniki
scripts
4_World
DayZ
Entities
ItemBase
PetrolLighter.c
Создано системой
1.13.2