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

◆ GetHitMessage()

string PluginBase::GetHitMessage ( TotalDamageResult damageResult,
int component,
string zone,
string ammo )
inlineprotected

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

104 {
105 if ( damageResult )
106 {
107 float dmg = damageResult.GetHighestDamage("Health");
108 return " into " + zone + "(" + component.ToString() + ") for " + dmg.ToString() + " damage (" + ammo + ")";
109 }
110 else // block
111 {
112 return " into Block" + "(" + component.ToString() + ") for 0 damage ";
113 }
114 }
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
proto native float GetHighestDamage(string healthType)
proto string ToString(bool simple=true)

Перекрестные ссылки component, TotalDamageResult::GetHighestDamage() и float::ToString().

Используется в PlayerHitBy().