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

◆ GetTypeOfDeath()

int DayZPlayer::GetTypeOfDeath ( int pCurrentCommandID)
inlineprotected

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

754 {
755 switch (pCurrentCommandID)
756 {
757 case DayZPlayerConstants.COMMANDID_SWIM:
758 return DayZPlayerConstants.DEATH_WATER;
759 case DayZPlayerConstants.COMMANDID_FALL:
760 return DayZPlayerConstants.DEATH_FALL;
761 case DayZPlayerConstants.COMMANDID_UNCONSCIOUS:
762 HumanCommandUnconscious hcu = GetCommand_Unconscious();
763 if (hcu)
764 {
765 if (hcu.IsOnLand())
766 return DayZPlayerConstants.DEATH_UNCON_ON_LAND;
767 if (hcu.IsInWater())
768 return DayZPlayerConstants.DEATH_UNCON_IN_WATER;
769 }
770
771 break;
772 }
773
774 return DayZPlayerConstants.DEATH_BODY;
775 }
proto native bool IsInWater()
proto native bool IsOnLand()
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
void HumanCommandUnconscious()
Определения human.c:638

Перекрестные ссылки HumanCommandUnconscious::IsInWater() и HumanCommandUnconscious::IsOnLand().

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