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

◆ GetTypeOfDeath()

int DayZPlayer::GetTypeOfDeath ( int pCurrentCommandID)
inlineprotected

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

763 {
764 switch (pCurrentCommandID)
765 {
766 case DayZPlayerConstants.COMMANDID_SWIM:
767 return DayZPlayerConstants.DEATH_WATER;
768 case DayZPlayerConstants.COMMANDID_FALL:
769 return DayZPlayerConstants.DEATH_FALL;
770 case DayZPlayerConstants.COMMANDID_UNCONSCIOUS:
771 HumanCommandUnconscious hcu = GetCommand_Unconscious();
772 if (hcu)
773 {
774 if (hcu.IsOnLand())
775 return DayZPlayerConstants.DEATH_UNCON_ON_LAND;
776 if (hcu.IsInWater())
777 return DayZPlayerConstants.DEATH_UNCON_IN_WATER;
778 }
779
780 break;
781 }
782
783 return DayZPlayerConstants.DEATH_BODY;
784 }
proto native bool IsInWater()
proto native bool IsOnLand()
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
void HumanCommandUnconscious()
Определения human.c:660

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

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