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

◆ BrokenLegForceProne()

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

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

3635 {
3636 if (!IsInWater() && !IsSwimming() && !IsClimbingLadder() && !IsInVehicle() && !IsClimbing() && DayZPlayerUtils.PlayerCanChangeStance(this, DayZPlayerConstants.STANCEIDX_PRONE))
3637 {
3638 if (m_MovementState.m_iStanceIdx != DayZPlayerConstants.STANCEIDX_PRONE && m_MovementState.m_iStanceIdx != DayZPlayerConstants.STANCEIDX_RAISEDPRONE)
3639 {
3640 EntityAI attachment;
3641 Class.CastTo(attachment, GetItemOnSlot("Splint_Right"));
3642 if (attachment && attachment.GetType() == "Splint_Applied")
3643 {
3644 attachment.Delete();
3645 }
3646
3647 m_ShockHandler.SetShock(PlayerConstants.BROKEN_LEGS_INITIAL_SHOCK);
3648 m_ShockHandler.CheckValue(true);
3649
3650
3651 if (m_ShockHandler.GetCurrentShock() >= 25) //Prevent conflict with unconsciousness by not forcing prone when going uncon (25 shock or less left)
3652 {
3653
3654 //calcels user action
3655 HumanCommandActionCallback cmd = GetCommand_Action();
3656 if (cmd)
3657 {
3658 cmd.Cancel();
3659 }
3660
3661 StopHandEvent();
3662 //Get command move and verify not null
3663 HumanCommandMove hcm = StartCommand_Move();//not sure why this is here
3664 hcm = GetCommand_Move();
3665 if (hcm)
3666 {
3667 hcm.ForceStance(DayZPlayerConstants.STANCEIDX_PRONE);
3668 }
3669 }
3670 }
3671 }
3672
3673 m_JumpClimb.CheckAndFinishJump();
3674 }
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:1154
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:5216
bool IsInWater()
Определения PlayerBase.c:2616
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().