Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
sewingkit.c
Go to the documentation of this file.
1
class
SewingKit
:
Inventory_Base
2
{
3
override
void
SetActions()
4
{
5
super.SetActions();
6
7
AddAction
(
ActionRepairTent
);
8
AddAction
(
ActionRepairShelter
);
9
AddAction
(
ActionSewTarget
);
10
AddAction
(
ActionSewSelf
);
11
}
12
13
override
float
GetInfectionChance(
int
system = 0,
Param
param =
null
)
14
{
15
if
(
m_Cleanness
== 1)
16
{
17
return
0;
18
}
19
else
20
{
21
return
0.3;
22
}
23
24
}
25
26
override
bool
CanBeDisinfected()
27
{
28
return
true
;
29
}
30
31
override
void
OnCombine(
ItemBase
other_item)
32
{
33
super.OnCombine(other_item);
34
if
(
m_Cleanness
== 1 && other_item.m_Cleanness == 0)
35
SetCleanness
(0);
36
}
37
};
ItemBase
Definition:
inventoryitem.c:730
ActionSewTarget
ActionSplintSelfCB ActionSewTarget
Param
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition:
param.c:11
ActionSewSelf
ActionSewSelfCB ActionContinuousBaseCB ActionSewSelf()
Definition:
actionsewself.c:11
m_Cleanness
int m_Cleanness
Definition:
itembase.c:36
SetCleanness
void SetCleanness(int value, bool allow_client=false)
Definition:
itembase.c:3678
ActionRepairTent
Definition:
actionrepairtent.c:19
SewingKit
Definition:
sewingkit.c:1
AddAction
void AddAction(typename actionName)
Definition:
advancedcommunication.c:86
Inventory_Base
Definition:
barbedbaseballbat.c:1
ActionRepairShelter
Definition:
actionrepairshelter.c:2
DAYZ
scripts_v1.24.157551
scripts
world
entities
itembase
gear
tools
sewingkit.c
Generated by
1.8.17