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

◆ GetTypeOfDeath()

int DayZPlayer::GetTypeOfDeath ( int pCurrentCommandID)
inlineprotected

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

722 {
723 switch (pCurrentCommandID)
724 {
725 case DayZPlayerConstants.COMMANDID_SWIM:
726 return DayZPlayerConstants.DEATH_WATER;
727 case DayZPlayerConstants.COMMANDID_FALL:
728 return DayZPlayerConstants.DEATH_FALL;
729 case DayZPlayerConstants.COMMANDID_UNCONSCIOUS:
730 HumanCommandUnconscious hcu = GetCommand_Unconscious();
731 if (hcu)
732 {
733 if (hcu.IsOnLand())
734 return DayZPlayerConstants.DEATH_UNCON_ON_LAND;
735 if (hcu.IsInWater())
736 return DayZPlayerConstants.DEATH_UNCON_IN_WATER;
737 }
738
739 break;
740 }
741
742 return DayZPlayerConstants.DEATH_BODY;
743 }
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().