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

◆ ForceStandUpForHeavyItems()

void ForceStandUpForHeavyItems ( notnull EntityAI item)
protected

-------------— Forces player to stand up when swapping to heavy item ----------------------—

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

1354 {
1356 if ( item.IsHeavyBehaviour() && IsPlayerInStance(DayZPlayerConstants.STANCEMASK_PRONE | DayZPlayerConstants.STANCEMASK_CROUCH))
1357 {
1358 HumanCommandMove cm = GetCommand_Move();
1359 if (cm)
1360 {
1361 cm.ForceStance(DayZPlayerConstants.STANCEIDX_ERECT);
1362 }
1363 }
1364 }
proto native void ForceStance(int pStanceIdx)
Определения human.c:434
InventoryLocation.
Определения InventoryLocation.c:29
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
proto native bool IsPlayerInStance(int pStanceMask)
-------------— camera additiona functions ----------------------—

Перекрестные ссылки HumanCommandMove::ForceStance() и IsPlayerInStance().

Используется в DayZPlayer::CommandHandler() и ForceStandUpForHeavyItemsSwap().