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

◆ BrokenLegForceProne()

void ManBase::BrokenLegForceProne ( bool forceOverride = false)
inlineprotected

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

3772 {
3773 if (!IsInWater() && !IsSwimming() && !IsClimbingLadder() && !IsInVehicle() && !IsClimbing() && DayZPlayerUtils.PlayerCanChangeStance(this, DayZPlayerConstants.STANCEIDX_PRONE))
3774 {
3775 if (m_MovementState.m_iStanceIdx != DayZPlayerConstants.STANCEIDX_PRONE && m_MovementState.m_iStanceIdx != DayZPlayerConstants.STANCEIDX_RAISEDPRONE)
3776 {
3777 EntityAI attachment;
3778 Class.CastTo(attachment, GetItemOnSlot("Splint_Right"));
3779 if (attachment && attachment.GetType() == "Splint_Applied")
3780 {
3781 attachment.Delete();
3782 }
3783
3784 m_ShockHandler.SetShock(PlayerConstants.BROKEN_LEGS_INITIAL_SHOCK);
3785 m_ShockHandler.CheckValue(true);
3786
3787
3788 if (m_ShockHandler.GetCurrentShock() >= 25) //Prevent conflict with unconsciousness by not forcing prone when going uncon (25 shock or less left)
3789 {
3790
3791 //calcels user action
3792 HumanCommandActionCallback cmd = GetCommand_Action();
3793 if (cmd)
3794 {
3795 cmd.Cancel();
3796 }
3797
3798 StopHandEvent();
3799 //Get command move and verify not null
3800 HumanCommandMove hcm = StartCommand_Move();//not sure why this is here
3801 hcm = GetCommand_Move();
3802 if (hcm)
3803 {
3804 hcm.ForceStance(DayZPlayerConstants.STANCEIDX_PRONE);
3805 }
3806 }
3807 }
3808 }
3809
3810 m_JumpClimb.CheckAndFinishJump();
3811 }
class LogManager EntityAI
ref HumanMovementState m_MovementState
movement state
Определения DayZPlayerCamera3rdPerson.c:324
void DayZPlayerUtils()
cannot be instantiated
Определения DayZPlayerUtils.c:465
proto native void ForceStance(int pStanceIdx)
int m_iStanceIdx
current command's id
Определения human.c:1156
ItemBase GetItemOnSlot(string slot_type)
Returns item that's on this player's attachment slot. Parameter slot_type should be a string from con...
Определения PlayerBase.c:949
bool IsClimbing()
Определения PlayerBase.c:5373
bool IsInWater()
Определения PlayerBase.c:2747
ref ShockHandler m_ShockHandler
Определения PlayerBase.c:99
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
class HumanAnimInterface HumanCommandActionCallback()
void HumanCommandMove()
Определения human.c:514

Перекрестные ссылки PlayerConstants::BROKEN_LEGS_INITIAL_SHOCK, Class::CastTo(), DayZPlayerUtils(), HumanCommandMove::ForceStance(), GetItemOnSlot(), IsClimbing(), IsInWater(), m_MovementState и m_ShockHandler.

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