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

◆ GetTypeOfDeath()

int DayZPlayer::GetTypeOfDeath ( int pCurrentCommandID)
inlineprotected

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

730 {
731 switch (pCurrentCommandID)
732 {
733 case DayZPlayerConstants.COMMANDID_SWIM:
734 return DayZPlayerConstants.DEATH_WATER;
735 case DayZPlayerConstants.COMMANDID_FALL:
736 return DayZPlayerConstants.DEATH_FALL;
737 case DayZPlayerConstants.COMMANDID_UNCONSCIOUS:
738 HumanCommandUnconscious hcu = GetCommand_Unconscious();
739 if (hcu)
740 {
741 if (hcu.IsOnLand())
742 return DayZPlayerConstants.DEATH_UNCON_ON_LAND;
743 if (hcu.IsInWater())
744 return DayZPlayerConstants.DEATH_UNCON_IN_WATER;
745 }
746
747 break;
748 }
749
750 return DayZPlayerConstants.DEATH_BODY;
751 }
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().