Static Private Attributes | |
static const float | DEFAULT_DYING_TIME = 2.5 |
static const float | DYING_PROGRESSION_TIME = 0.05 |
how long does it take to full death screen [s] | |
static const int | DEAD_SCREEN_DELAY = 1000 |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References NoiseSystem::AddNoise(), GetGame(), and CGame::GetNoiseSystem().
|
inlineprivate |
|
inlineprivate |
References GetGame(), GetPlayer(), and SoundObject::SetKind().
This is main camera selection logic
ironsights
get movement state
VKOSTIK: v ostatnich commandech mimo COMMANDID_MOVE je m_MovementState.m_iStanceIdx - DayZPlayerConstants.STANCEIDX_ERECT m_MovementState.m_iMovement = 0 (idle)
COMMANDID_ACTION returns stance right - ERECT/CROUCH
melee camera - not melee - stays in stance camera
special handling to allow the camera to fully blend before transitioning to the raised one
References Class::CastTo(), DayZPlayerCameras::DAYZCAMERA_1ST, DayZPlayerCameras::DAYZCAMERA_1ST_UNCONSCIOUS, DayZPlayerCameras::DAYZCAMERA_1ST_VEHICLE, DayZPlayerCameras::DAYZCAMERA_3RD_CLIMB, DayZPlayerCameras::DAYZCAMERA_3RD_CRO, DayZPlayerCameras::DAYZCAMERA_3RD_CRO_RAISED, DayZPlayerCameras::DAYZCAMERA_3RD_ERC, DayZPlayerCameras::DAYZCAMERA_3RD_ERC_RAISED, DayZPlayerCameras::DAYZCAMERA_3RD_ERC_RAISED_MELEE, DayZPlayerCameras::DAYZCAMERA_3RD_ERC_SPR, DayZPlayerCameras::DAYZCAMERA_3RD_JUMP, DayZPlayerCameras::DAYZCAMERA_3RD_PRO, DayZPlayerCameras::DAYZCAMERA_3RD_PRO_RAISED, DayZPlayerCameras::DAYZCAMERA_IRONSIGHTS, DayZPlayerCameras::DAYZCAMERA_OPTICS, GetParent(), HumanCommandVehicle::GetTransport(), HumanCommandMove::IsChangingStance(), HumanMovementState::IsRaised(), HumanMovementState::m_CommandTypeId, HumanMovementState::m_iStanceIdx, m_MovementState, and HumanInputController::WeaponADS().
|
inlineprivate |
Implementations only! - used on PlayerBase.
Referenced by GetAttackTypeByWeaponAttachments(), GetAttackTypeFromInputs(), and HandleFightLogic().
|
inlineprivate |
-------------— Checks if player can pick up heavy item ----------------------—
References DayZPlayerUtils().
|
inlineprivate |
|
inlineprivate |
|
private |
|
inlineprivate |
This is main command logic
handle all Camera changes, switch + zoom
handle death with high priority
check for water depth while getting out and start swimming if necessary this also handles the last frame of the vehicle command hence it doens't need separate check on pCurrentCommandFinished
handle finished commands
default behaviour after finish is to start move
debug test script command !PSOVIS
Sprint attack limiting - player has to be in full sprint for at least 0.5s
If we are not in fall command then something else is currently running and we can safely continue here, otherwise terminate here
throwing handling
melee
References UAInputAPI::ActivateModificator(), AddNoise(), DayZPlayerImplementFallDamage(), DayZPlayerType(), UAInputAPI::DeactivateModificator(), HumanCommandClimb::DoClimbTest(), ForceStandUpForHeavyItems(), PlayerConstants::FULL_SPRINT_DELAY_DEFAULT, HumanCommandMove::GetCurrentMovementSpeed(), GetDayZPlayerType(), DiagMenu::GetEngineValue(), GetGame(), GetInstanceType(), NoiseAIEvaluate::GetNoiseReduction(), CGame::GetTime(), GetUApi(), CGame::GetVoiceLevel(), HumanCommandAdditives(), HumanCommandFall(), HumanCommandVehicle::IsGettingOut(), HumanMovementState::IsInProne(), HumanMovementState::IsInRaisedProne(), HumanInputController::IsMeleeWeaponAttack(), IsPlayerSpeaking(), HumanMovementState::IsRaised(), FallDamageData::m_Height, HumanMovementState::m_iMovement, FallDamageData::m_LandType, HumanMovementState::m_LocalMovement, m_MovementState, ModCommandHandlerAfter(), ModCommandHandlerBefore(), ModCommandHandlerInside(), NoiseParams(), HumanCommandVehicle::ProcessLeaveEvents(), GearChangeActionCallback::SetVehicleCommand(), SHumanCommandClimbSettings(), and HumanCommandVehicle::WasGearChange().
|
inlineprivate |
debug handling of adding commands
set item in hands
fuj
start show
damage test
References ECE_IN_INVENTORY, DiagMenu::GetEngineRangeValue(), GetGame(), GetPlayer(), GetPluginManager(), HumanCommandWeapons::GetRunningAction(), HumanCommandAdditives(), HumanCommandWeapons::IsActionFinished(), HumanCommandWeapons::IsEvent(), PluginDayzPlayerDebug(), RF_DEFAULT, InventoryLocation::SetHands(), SpawnEntity(), and HumanCommandWeapons::StartAction().
|
inlineprivate |
|
inlineprivate |
References HumanInputController::ResetFreeLookToggle().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
event from damage system
References HumanCommandMelee2::Cancel(), component, HumanCommandFall(), and DayZPlayerSyncJunctures::SendDamageHitEx().
|
inlineprivate |
Phx contact event
References GetGame(), and GetParent().
|
inlineprivate |
Must be ran at the start of CommandHandler before Jump is triggered.
Reset damage hit to prevent animation from playing unnecessarily when it is already cancelled out
ignore hit impacts in prone (for now)
References GetGame(), Mission::GetHud(), CGame::GetMission(), GetPlayer(), PlayerConstants::HEAVY_HIT_THRESHOLD, HumanMovementState::m_iStanceIdx, m_MovementState, and Hud::SpawnHitDirEffect().
|
inlineprivate |
selects animation type and direction based on damage system data
impact from infected attack will be light only
play full body when these coponents were hit
skip evaluation of dmg hit animation
direction
References Math::Acos(), CGame::ConfigGetInt(), vector::Dot(), GetGame(), TotalDamageResult::GetHighestDamage(), GetPosition, m_MovementState, vector::Normalize(), and Math::RAD2DEG.
|
inlineprivate |
selects animation type and direction based on damage system data
direction
References Math::Acos(), CGame::ConfigGetInt(), vector::Dot(), GetGame(), GetPosition, vector::Normalize(), and Math::RAD2DEG.
|
inlineprivate |
References HumanCommandWeapons::SetADS().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Referenced by CheckWaterContact(), and InterruptWaterCheck().
|
inlineprivate |
Referenced by ActionPossibilityCheck(), and CanPlayEmote().
|
inlineprivate |
References GetParent().
|
inlineprivate |
|
inlineprivate |
Referenced by DayZPlayerCameraBase(), HoldBreathFOVEffect(), and StdFovUpdate().
|
inlineprivate |
|
inlineprivate |
References m_MeleeCombat.
Referenced by Init().
|
inlineprivate |
|
inlineprivate |
TODO: transitional change - will be cleaned in near future Do NOT mod this method - will be removed
|
inlineprivate |
|
inlineprivate |
References GetDayZPlayerType().
|
inlineprivate |
References g_Game.
Referenced by GetEmptyingEndSoundset(), GetEmptyingLoopSoundset(), and ReplaceSoundEventBase::SelectSoundID().
|
inlineprivate |
Referenced by ActionPossibilityCheck(), and CanPlayEmote().
|
inlineprivate |
Get the transport that was cached when entering unconsciousness.
References HumanCommandUnconscious::IsInWater(), and HumanCommandUnconscious::IsOnLand().
|
inlineprivate |
|
private |
|
inlineprivate |
This is main command logic
artificial Auto-ADS delay
if !raised if sprinting
References HumanItemAccessor(), IsProcessing(), HumanMovementState::IsRaised(), HumanMovementState::m_iMovement, m_MovementState, HumanInputController::ResetADS(), HumanCommandWeapons::SetADS(), and HumanInputController::WeaponADS().
References HumanCommandVehicle::IsGettingIn(), and HumanCommandVehicle::IsGettingOut().
Can't pull a body out of a car that is in water, don't need to handle that
player looks to be dead now, not unconscious
we don't want the vehicle to be haunted, re-possess the dead player so other players can use the vehicle
References Class::CastTo(), g_Game, GetGame(), HumanCommandVehicle::GetTransport(), CGame::GetWorld(), HumanCommandVehicle::IsGettingIn(), HumanCommandVehicle::IsGettingOut(), DayZPlayerCommandDeathCallback::m_pPlayer, and World::SetVoiceOn().
|
inlineprivate |
References UAInterface::SyncedPress_ID().
|
inlineprivate |
3rd person camera
References Math::AbsFloat(), Math::AbsInt(), AbstractWave(), HumanInputController::CameraViewChanged(), CGame::ConfigGetChildName(), CGame::ConfigGetChildrenCount(), CGame::ConfigGetTextArray(), GetGame(), HumanInputController::GetMovement(), GetPosition, CGame::GetSoundScene(), CGame::GetTime(), IsPlayerInStance(), HumanMovementState::IsRaised(), HumanMovementState::IsRaisedInProne(), HumanInputController::IsZoomToggle(), HumanMovementState::m_iMovement, HumanMovementState::m_iStanceIdx, m_MovementState, name, path, AbstractSoundScene::Play3D(), SoundObject::SetPosition(), SetVerticalMinimumAimLimit(), SoundObjectBuilder(), and SoundParams().
|
inlineprivate |
HandleWeapons
fire
References Math::AbsFloat(), Class::CastTo(), Math::Clamp(), GetGame(), DiagMenu::GetValue(), HumanCommandWeapons::GetWeaponObstruction(), HumanInputController::IsAttackButton(), HumanInputController::IsAttackButtonDown(), HumanInputController::IsFireModeChange(), HumanInputController::IsHoldBreath(), ItemOptics::IsInOptics(), HumanMovementState::IsRaised(), ItemOptics::IsUsingWeaponIronsightsOverride(), HumanCommandWeapons::IsWeaponLifted(), HumanInputController::IsZeroingDown(), HumanInputController::IsZeroingUp(), Math::Lerp(), HumanCommandWeapons::LiftWeapon(), m_MovementState, HumanCommandWeapons::ObstructWeapon(), Math::SmoothCD(), ItemOptics::StepZeroingDown(), ItemOptics::StepZeroingUp(), and PlayerConstants::WEAPON_RAISE_BLEND_DELAY.
|
inlineprivate |
is replayed after correction when 'NetworkRewindType.REPLAY' is used
on ladder - do nothing
if it's standing from prone on back
References DayZPlayerImplementHeading::ClampHeading(), DiagMenu::GetEngineValue(), HumanItemAccessor(), HumanCommandVehicle::IsGettingIn(), HumanCommandVehicle::IsGettingOut(), IsLeavingUncon(), HumanCommandMove::IsStandingFromBack(), HumanCommandUnconscious::IsWakingUp(), HumanMovementState::m_CommandTypeId, HumanMovementState::m_iStanceIdx, m_MovementState, HumanItemBehaviorCfg::m_StanceRotation, DayZPlayerImplementHeading::NoHeading(), and DayZPlayerImplementHeading::RotateOrient().
|
inlineprivate |
|
inlineprivate |
References HumanMovementState::m_CommandTypeId, and m_MovementState.
Referenced by CanPlayEmote().
|
inlineprivate |
Legacy.
References GetEyeZoomLevel().
|
inlineprivate |
|
private |
Referenced by CanPlayEmote(), and HandleInitialFirearmMelee().
|
inlineprivate |
References HumanMovementState::IsRaised(), and m_MovementState.
|
inlineprivate |
|
private |
Checks if fullbody animation or specific locked state is active in emote manager.
|
inlineprivate |
|
inlineprivate |
Referenced by SelectCrossHair(), and ScriptedWidgetEventHandler::Update().
|
inlineprivate |
Referenced by SelectCrossHair().
|
inlineprivate |
|
inlineprivate |
References GetParent(), HumanMovementState::m_CommandTypeId, and m_MovementState.
References HumanCommandFall().
|
private |
|
inlineprivate |
|
inlineprivate |
|
private |
Referenced by CanPlayEmote(), and Update().
|
inlineprivate |
Referenced by OnEmoteEnd(), and StdFovUpdate().
|
inlineprivate |
Referenced by HandleFightLogic().
|
inlineprivate |
References HumanMovementState::m_CommandTypeId, and m_MovementState.
Referenced by CanPlayEmote(), CheckWaterContact(), and SetProcessedItemTemperature().
|
inlineprivate |
|
inlineprivate |
|
private |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
ModOverrides
|
inlineprivate |
|
inlineprivate |
Called when 2D optics are about to be drawn.
ItemOptics
type. Draws optic of current muzzle when of Weapon_Base
type. References HumanInventory::GetEntityInHands(), ItemOptics::IsInOptics(), and ItemOptics::IsUsingOptics2DModel().
|
inlineprivate |
|
inlineprivate |
References Error(), INPUT_UDT_INVENTORY, and Serializer::Read().
|
inlineprivate |
References INPUT_UDT_MELEE_TARGET, m_MeleeCombat, Serializer::Read(), and vector::Zero.
|
inlineprivate |
Input userdata
References Error(), OnInputUserDataProcess(), and Serializer::Read().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
private |
called every command handler tick when player is on ladder
|
inlineprivate |
References HumanCommandFall(), and FallDamageData::m_LandType.
|
inlineprivate |
Event, called when HumanMovementState.m_iMovement changes...walk, run, sprint, etc..
References HumanMovementState::m_iMovement, HumanMovementState::m_LocalMovement, and m_MovementState.
References GetInstanceType(), and Debug::Log().
|
inlineprivate |
References UAInputAPI::GetInputByID(), GetInstanceType(), GetUApi(), and UAInput::Unlock().
|
inlineprivate |
References UAInputAPI::GetInputByID(), GetInstanceType(), GetUApi(), and UAInput::Lock().
Event Processing
References AddNoise(), PlayerConstants::CHECK_EVERY_N_STEP, Count, DayZPlayerType(), VegetationSound::GetAnimEventIds(), GetDayZPlayerType(), GetGame(), NoiseAIEvaluate::GetNoiseMultiplier(), NoiseAIEvaluate::GetNoiseReduction(), GetOrientation(), GetPlayer(), GetPosition, DayZPlayerTypeStepSoundLookupTable::GetSoundBuilder(), VegetationSound::GetSoundObjectBuilder(), Surface::GetStepsParticleID(), string::Hash(), string::Length(), Debug::Log(), HumanMovementState::m_iMovement, HumanMovementState::m_iStanceIdx, NoiseParams(), ParticleManager(), PlaySound(), MiscEffects::PlayVegetationCollideParticles(), SoundObjectBuilder(), Vector(), and WoodBase().
|
inlineprivate |
|
inlineprivate |
References GetGame().
|
inlineprivate |
Referenced by EmoteBase::OnBeforeStandardCallbackCreated(), and OnEmoteEnd().
|
inlineprivate |
movement sliding override, originally for FB gestures
References GetDayZPlayerType().
|
inlineprivate |
Sounds
References AbstractWave(), GetGame(), GetPosition, CGame::GetSoundScene(), AbstractSoundScene::Play3D(), and SoundObject::SetPosition().
|
inlineprivate |
Referenced by InjurySoundHandlerBase::PlaySound(), and StaminaSoundHandlerBase::Update().
|
inlineprivate |
Referenced by PlaySound().
|
inlineprivate |
Handle sound event by respective sound handler based on its type.
|
private |
Jump / Climb
References HumanInputController::IsJumpClimb().
|
private |
|
inlineprivate |
References AbstractWave(), DayZPlayerType(), GetDayZPlayerType(), DayZPlayerTypeVoiceSoundLookupTable::GetSoundBuilder(), string::Hash(), PlaySound(), and SoundObjectBuilder().
Referenced by Play().
|
private |
|
private |
Referenced by DrowningMdfr::PlayDrowningSound().
|
inlineprivate |
|
inlineprivate |
References ResetDeathCooldown().
|
inlineprivate |
|
private |
|
private |
References DayZPlayerSyncJunctures::SendDeath().
|
private |
|
private |
|
inlineprivate |
|
inlineprivate |
Referenced by DayZPlayerImplementSwimming::HandleSwimming().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
References HumanInputController::ResetFreeLookToggle(), and HumanCommandWeapons::SetADS().
|
inlineprivate |
|
inlineprivate |
References HumanInputController::ResetFreeLookToggle(), and HumanCommandWeapons::SetADS().
|
private |
|
inlineprivate |
Referenced by CommitSuicide(), and EmoteBase::OnCallbackEnd().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
private |
|
inlineprivate |
Referenced by CGame::OnRespawnEvent().
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
we don't want the vehicle to be haunted, re-possess the dead player so other players can use the vehicle
References Class::CastTo(), GetGame(), and GetParent().
|
inlineprivate |
Reset the cooldown so simulation doesn't automatically get re-disabled
Synced to re-enable simulation on client as the death processing sets disable simulation to local only
Handle own client animation freeze
References GetInstanceType(), and ResetDeathCooldown().
|
staticprivate |
|
staticprivate |
|
staticprivate |
how long does it take to full death screen [s]
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
DEPRECATED.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
HandleDamageHit
|
private |
HandleDeath
|
private |
|
private |
|
private |
|
private |
|
private |
VKOSTIK - tady dat 0 misto -1.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
This HeadingModel
|
private |
|
private |
|
private |
|
private |
|
private |
Referenced by SmptAnimMetaBase::Play(), and SmptAnimMetaBase::~SmptAnimMetaFB().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
time step for gradual update of dead screen visibilibty up to full visbility [s]
cached ptr for movement state
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
measures time from the weapon raise start to complete raise (once per)
|
private |