DayZ 1.24
Loading...
Searching...
No Matches
CAContinuousQuantityBloodTransfer.c
Go to the documentation of this file.
2{
4 {
5 if (GetGame().IsServer())
6 {
7 if (m_SpentUnits)
8 {
11 }
12
13 action_data.m_MainItem.AddQuantity(-m_SpentQuantity, false, false);
14
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 bloodtarget.AddHealth("", "Blood", m_SpentQuantity);
24
25 }
26 }
27}
static bool MatchBloodCompatibility(int bloodtypetarget, int bloodtype)
Definition BloodType.c:36
void SetACData(Param units)
Definition CABase.c:38
override void CalcAndSetQuantity(ActionData action_data)
proto native CGame GetGame()