DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ SendDamageHitEx()

static void DayZPlayerSyncJunctures::SendDamageHitEx ( DayZPlayer pPlayer,
int pType,
float pHitDir,
bool pFullbody,
TotalDamageResult pDamageResult,
int pDamageType,
EntityAI pSource,
string pComponent,
string pAmmoType,
vector pModelPos )
inlinestaticprivate

См. определение в файле DayZPlayerSyncJunctures.c строка 99

100 {
101 ScriptJunctureData ctx = new ScriptJunctureData;
102 SyncHitInfo data = new SyncHitInfo;
103
104 data.m_AnimType = pType;
105 data.m_HitDir = pHitDir;
106 data.m_Fullbody = pFullbody;
107 data.m_HasSource = pSource != null;
108 if ( !pDamageResult )
109 {
110 data.m_HealthDamage = -1.0;
111 }
112 else
113 {
114 data.m_HealthDamage = pDamageResult.GetHighestDamage("Health");
115 }
116
117 ctx.Write(data);
118 pPlayer.SendSyncJuncture(SJ_DAMAGE_HIT, ctx);
119 }
static const int SJ_DAMAGE_HIT
Определения DayZPlayerSyncJunctures.c:6
proto bool Write(void value_out)
proto native float GetHighestDamage(string healthType)

Перекрестные ссылки TotalDamageResult::GetHighestDamage(), Managed::m_AnimType, SJ_DAMAGE_HIT и Serializer::Write().

Используется в DayZPlayer::EEHitBy().