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

◆ ForceStandUpForHeavyItems()

void ForceStandUpForHeavyItems ( notnull EntityAI item)
protected

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

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

1379 {
1381 if ( item.IsHeavyBehaviour() && IsPlayerInStance(DayZPlayerConstants.STANCEMASK_PRONE | DayZPlayerConstants.STANCEMASK_CROUCH))
1382 {
1383 HumanCommandMove cm = GetCommand_Move();
1384 if (cm)
1385 {
1386 cm.ForceStance(DayZPlayerConstants.STANCEIDX_ERECT);
1387 }
1388 }
1389 }
proto native void ForceStance(int pStanceIdx)
Определения human.c:454
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().