DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
◆
EEHealthLevelChanged()
override void GetFilterDamageRatio::EEHealthLevelChanged
(
int
oldLevel
,
int
newLevel
,
string
zone
)
См. определение в файле
GasMask_Filter.c
строка
47
47
:
ItemBase
48
{
49
/*
50
override void OnQuantityChanged(float delta)
51
{
52
super.OnQuantityChanged(delta);
53
54
if (GetQuantity() == 0)
55
{
56
SetHealth("","",0);
57
}
58
}
59
*/
60
61
override
void
EEHealthLevelChanged
(
int
oldLevel,
int
newLevel,
string
zone)
62
{
63
if
(
GetGame
().IsServer())
64
{
65
if
( newLevel ==
GameConstants
.
STATE_RUINED
)
66
{
67
SetQuantity
(0);
68
}
69
}
70
}
71
72
override
float
GetFilterDamageRatio
()
73
{
74
return
0.09;
//Health lost per quantity consumed
75
}
76
}
77
78
class
GasMask_Filter_Improvised:
GasMask_Filter
79
{
80
override
float
GetFilterDamageRatio
()
81
{
82
return
0.25;
//Health lost per quantity consumed
83
}
84
}
GetFilterDamageRatio
GasMask_Filter ItemBase GetFilterDamageRatio()
Определения
GasMask_Filter.c:34
EEHealthLevelChanged
override void EEHealthLevelChanged(int oldLevel, int newLevel, string zone)
Определения
GasMask_Filter.c:47
SetQuantity
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
Set item quantity[related to varQuantity... config entry], destroy_config = true > if the quantity re...
Определения
ItemBase.c:8006
GameConstants
Определения
constants.c:659
GasMask_Filter::GetFilterDamageRatio
override float GetFilterDamageRatio()
Определения
GasMask_Filter.c:26
GasMask_Filter
Определения
GasMask_Filter.c:2
ItemBase
Определения
InventoryItem.c:731
GetGame
proto native CGame GetGame()
GameConstants::STATE_RUINED
const int STATE_RUINED
Определения
constants.c:846
Ishodniki
scripts
4_World
Entities
ItemBase
Clothing
GasMask_Filter.c
Создано системой
1.13.2