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

◆ BrokenLegForceProne()

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

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

3653 {
3654 if (!IsInWater() && !IsSwimming() && !IsClimbingLadder() && !IsInVehicle() && !IsClimbing() && DayZPlayerUtils.PlayerCanChangeStance(this, DayZPlayerConstants.STANCEIDX_PRONE))
3655 {
3656 if (m_MovementState.m_iStanceIdx != DayZPlayerConstants.STANCEIDX_PRONE && m_MovementState.m_iStanceIdx != DayZPlayerConstants.STANCEIDX_RAISEDPRONE)
3657 {
3658 EntityAI attachment;
3659 Class.CastTo(attachment, GetItemOnSlot("Splint_Right"));
3660 if (attachment && attachment.GetType() == "Splint_Applied")
3661 {
3662 attachment.Delete();
3663 }
3664
3665 m_ShockHandler.SetShock(PlayerConstants.BROKEN_LEGS_INITIAL_SHOCK);
3666 m_ShockHandler.CheckValue(true);
3667
3668
3669 if (m_ShockHandler.GetCurrentShock() >= 25) //Prevent conflict with unconsciousness by not forcing prone when going uncon (25 shock or less left)
3670 {
3671
3672 //calcels user action
3673 HumanCommandActionCallback cmd = GetCommand_Action();
3674 if (cmd)
3675 {
3676 cmd.Cancel();
3677 }
3678
3679 StopHandEvent();
3680 //Get command move and verify not null
3681 HumanCommandMove hcm = StartCommand_Move();//not sure why this is here
3682 hcm = GetCommand_Move();
3683 if (hcm)
3684 {
3685 hcm.ForceStance(DayZPlayerConstants.STANCEIDX_PRONE);
3686 }
3687 }
3688 }
3689 }
3690
3691 m_JumpClimb.CheckAndFinishJump();
3692 }
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:1141
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:811
bool IsClimbing()
Определения PlayerBase.c:5226
bool IsInWater()
Определения PlayerBase.c:2618
ref ShockHandler m_ShockHandler
Определения PlayerBase.c:52
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().