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

◆ ForceStandUpForHeavyItems()

void ForceStandUpForHeavyItems ( notnull EntityAI item)
protected

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

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

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

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

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