DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
CAContinuousQuantityBloodTransfer.c
См. документацию.
1
class
CAContinuousQuantityBloodTransfer
:
CAContinuousQuantityRepeat
2
{
3
override
void
CalcAndSetQuantity
(
ActionData
action_data )
4
{
5
if
(
GetGame
().IsServer() )
6
{
7
if
(
m_SpentUnits
)
8
{
9
m_SpentUnits
.param1 =
m_SpentQuantity
;
10
SetACData
(
m_SpentUnits
);
11
}
12
13
action_data.m_MainItem.AddQuantity( -
m_SpentQuantity
,
false
,
false
);
14
15
ActionGiveBloodData
action_data_b =
ActionGiveBloodData
.Cast( action_data );
16
17
PlayerBase
bloodtarget =
PlayerBase
.Cast( action_data.m_Target.GetObject() );
18
if
( !bloodtarget )
19
bloodtarget = action_data.m_Player;
20
21
22
if
(
BloodTypes
.
MatchBloodCompatibility
(action_data_b.
m_ItemBloodType
, bloodtarget.GetStatBloodType().Get()) )
23
{
24
bloodtarget.AddHealth(
""
,
"Blood"
,
m_SpentQuantity
);
25
}
26
27
}
28
}
29
}
ActionData
ActionBase ActionData
Определения
ActionBase.c:30
ActionGiveBloodData::m_ItemBloodType
int m_ItemBloodType
Определения
ActionGiveBloodSelf.c:3
ActionGiveBloodData
Определения
ActionGiveBloodSelf.c:2
BloodTypes::MatchBloodCompatibility
static bool MatchBloodCompatibility(int bloodtypetarget, int bloodtype)
Определения
BloodType.c:39
BloodTypes
Определения
BloodType.c:2
CABase::SetACData
void SetACData(Param units)
Определения
CABase.c:40
CAContinuousQuantityBloodTransfer::CalcAndSetQuantity
override void CalcAndSetQuantity(ActionData action_data)
Определения
CAContinuousQuantityBloodTransfer.c:3
CAContinuousQuantityBloodTransfer
Определения
CAContinuousQuantityBloodTransfer.c:2
CAContinuousQuantityRepeat::m_SpentQuantity
float m_SpentQuantity
Определения
CAContinuousQuantityRepeat.c:4
CAContinuousQuantityRepeat::m_SpentUnits
ref Param1< float > m_SpentUnits
Определения
CAContinuousQuantityRepeat.c:10
CAContinuousQuantityRepeat::CAContinuousQuantityRepeat
void CAContinuousQuantityRepeat(float quantity_used_per_second, float time_to_repeat)
Определения
CAContinuousQuantityRepeat.c:12
PlayerBase
Определения
PlayerBaseClient.c:2
GetGame
proto native CGame GetGame()
Ishodniki
scripts
4_World
Classes
UserActionsComponent
ActionComponents
CAContinuousQuantityBloodTransfer.c
Создано системой
1.13.2