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

◆ BrokenLegForceProne()

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

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

4042 {
4043 if (!IsInWater() && !IsSwimming() && !IsClimbingLadder() && !IsInVehicle() && !IsClimbing() && DayZPlayerUtils.PlayerCanChangeStance(this, DayZPlayerConstants.STANCEIDX_PRONE))
4044 {
4045 if (m_MovementState.m_iStanceIdx != DayZPlayerConstants.STANCEIDX_PRONE && m_MovementState.m_iStanceIdx != DayZPlayerConstants.STANCEIDX_RAISEDPRONE)
4046 {
4047 EntityAI attachment;
4048 Class.CastTo(attachment, GetItemOnSlot("Splint_Right"));
4049 if (attachment && attachment.GetType() == "Splint_Applied")
4050 {
4051 attachment.Delete();
4052 }
4053
4054 m_ShockHandler.SetShock(PlayerConstants.BROKEN_LEGS_INITIAL_SHOCK);
4055 m_ShockHandler.CheckValue(true);
4056
4057
4058 if (m_ShockHandler.GetCurrentShock() >= 25) //Prevent conflict with unconsciousness by not forcing prone when going uncon (25 shock or less left)
4059 {
4060
4061 //calcels user action
4062 HumanCommandActionCallback cmd = GetCommand_Action();
4063 if (cmd)
4064 {
4065 cmd.Cancel();
4066 }
4067
4068 StopHandEvent();
4069 //Get command move and verify not null
4070 HumanCommandMove hcm = StartCommand_Move();//not sure why this is here
4071 hcm = GetCommand_Move();
4072 if (hcm)
4073 {
4074 hcm.ForceStance(DayZPlayerConstants.STANCEIDX_PRONE);
4075 }
4076 }
4077 }
4078 }
4079
4080 m_JumpClimb.CheckAndFinishJump();
4081 }
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:1183
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:980
bool IsClimbing()
Определения PlayerBase.c:5650
bool IsInWater()
Определения PlayerBase.c:2947
ref ShockHandler m_ShockHandler
Определения PlayerBase.c:99
DayZPlayerConstants
defined in C++
Определения dayzplayer.c:602
class HumanAnimInterface HumanCommandActionCallback()
void HumanCommandMove()
Определения human.c:534

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

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