![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
this file is interface DayZPlayer classes More...
Go to the source code of this file.
Data Structures | |
| class | DayZPlayerCameraResult |
| class | DayZPlayerTypeAttachmentSoundLookupTable |
| class | DayZPlayerTypeStepSoundLookupTable |
| class | SDayZPlayerAimingModel |
| class | VegetationSound |
Functions | |
| void | ~DayZPlayerCameraResult () |
| cannot be instanced from script (always created from C++) | |
| void | ~DayZPlayerType () |
| void | ~SDayZPlayerHeadingModel () |
| proto native int | AddItemBoneRemap (string pItemClass, array< string > pBoneRemap) |
| add bone remap for item class pBoneRemap has always 2x N members bone in item's P3D first, bone in Character skeleton second | |
| proto native int | AddItemInHandsProfile (string pItemClass, string pAnimInstanceName, HumanItemBehaviorCfg pBehaviorCfg) |
| adds setup profile for items of class pItemClass when item is in hands - pAnimInstanceName is used for animation sourcing pCanRaise is whether weapon / item can be raised pRHandIK == false -> rhand ik is always turned off pLHandIK == false -> lhand ik is always turned off | |
| proto native int | AddItemInHandsProfileIK (string pItemClass, string pAnimInstanceName, HumanItemBehaviorCfg pBehaviorCfg, string pIkPoseAnim, string pWeaponStates="") |
| bool | AimingModel (float pDt, SDayZPlayerAimingModel pModel) |
| -------------— aiming model ----------------------— | |
| proto native void | AnimCallCommand (int pCommand, int pParamInt, float pParamFloat) |
| -------------— animation graph functions ----------------------— | |
| proto native void | AnimSetBool (int pVar, bool pBool) |
| proto native void | AnimSetFloat (int pVar, float pFlt) |
| proto native void | AnimSetInt (int pVar, int pInt) |
| int | CameraHandler (int pCameraMode) |
| -------------— camera handling ----------------------— | |
| bool | CanFreeLook () |
| this overrides freelook for cameras | |
| proto native SHumanCommandClimbSettings | CommandClimbSettingsW () |
| this is used for getting appropriate sound effect to play step event on various surfaces && boots it's downcasted to StepSoundLookupTable | |
| void | CommandHandler (float pDt, int pCurrentCommandID, bool pCurrentCommandFinished) |
| -------------— command handling ----------------------— | |
| proto native SHumanCommandMoveSettings | CommandMoveSettingsW () |
| proto native SHumanCommandSwimSettings | CommandSwimSettingsW () |
| class DayZPlayerCameraResult | DayZPlayerCamera (DayZPlayer pPlayer, HumanInputController pInput) |
| void | DayZPlayerCameraResult () |
| cannot be instanced from script (always created from C++) | |
| void | DayZPlayerType () |
| proto native void | DebugPreloadAnimationInstances () |
| debug / hack - loads all animation instances | |
| proto native bool | DebugSyncShadowSetup (DayZPlayer pPlayer) |
| -------------— sync shadow ----------------------— | |
| void | ForceStandUpForHeavyItems (notnull EntityAI item) |
| -------------— Forces player to stand up when swapping to heavy item ----------------------— | |
| void | ForceStandUpForHeavyItemsSwap (notnull EntityAI item1, notnull EntityAI item2) |
| vector | GetAdditiveAngles () |
| proto void | GetAimLimits (out float pDown, out float pUp, out float pLeft, out float pRight) |
| returns aim limits for a player | |
| TIntArray | GetAnimEventIds () |
| DayZPlayerTypeAttachmentSoundLookupTable | GetAttachmentSoundLookupTable () |
| vector | GetBaseAngles () |
| helper to blend between cameras ret[0] - up down angle ret[1] - left right angle ret[2] - roll angle | |
| string | GetCameraName () |
| proto native DayZPlayerCamera | GetCurrentCamera () |
| -------------— camera additional functions ----------------------— | |
| proto native void | GetCurrentCameraTransform (out vector position, out vector direction, out vector rotation) |
| gets transform of current player camera | |
| vector | GetCurrentOrientation () |
| proto native int | GetCurrentPerItemCameraUD () |
| gets current camera | |
| float | GetCurrentPitch () |
| float | GetCurrentRoll () |
| float | GetCurrentWaterLevel () |
| float | GetCurrentYaw () |
| proto native DayZPlayerType | GetDayZPlayerType () |
| returns appropriate DayZPlayerType | |
| override string | GetDebugName () |
| string | GetDefaultHitComponent () |
| string | GetDefaultHitPositionComponent () |
| int | GetEyeZoomLevel () |
| returns eye zoom level, uses ECameraZoomType values | |
| proto native SHumanGlobalSettings | GetGlobalSettingsW () |
| returns Human global settings for DayZPlayer | |
| proto native int | GetHeadBoneIdx () |
| string | GetHitComponentForAI () |
| proto native DayZPlayerInstanceType | GetInstanceType () |
| proto native EClientKicked | GetKickOffReason () |
| get reason for kickoff if available (server only) | |
| proto void | GetLookLimits (out float pDown, out float pUp, out float pLeft, out float pRight) |
| returns look limits for a player | |
| proto native MeleeCombatData | GetMeleeCombatData () |
| processes melee hit | |
| NoiseParams | GetNoiseParams (int eventId) |
| NoiseParams | GetNoiseParamsCrouch () |
| NoiseParams | GetNoiseParamsLandHeavy () |
| NoiseParams | GetNoiseParamsLandLight () |
| NoiseParams | GetNoiseParamsProne () |
| NoiseParams | GetNoiseParamsShout () |
| NoiseParams | GetNoiseParamsStand () |
| NoiseParams | GetNoiseParamsTalk () |
| NoiseParams | GetNoiseParamsWhisper () |
| ScriptInvoker | GetOnDeathStart () |
| class DayZPlayerTypeStepSoundLookupTable | GetSoundBuilder (int eventId, int parameterHash) |
| SoundObjectBuilder | GetSoundBuilder (int eventId, int pMovement, int pSurfaceHash, AnimBootsType pBoots) |
| SoundObjectBuilder | GetSoundBuilder (int eventId, string slotName, int attachmentHash) |
| class DayZPlayerTypeAttachmentSoundLookupTable | GetSoundEvent (int event_id) |
| SoundObjectBuilder | GetSoundObjectBuilder () |
| DayZPlayerTypeAnimTable | GetSoundTable () |
| AnimSoundEvent | GetSoundWeaponEvent (int event_id) |
| DayZPlayerTypeStepSoundLookupTable | GetStepSoundLookupTable () |
| array< string > | GetSuitableFinisherHitComponents () |
| array< ref VegetationSound > | GetVegetationSounds () |
| DayZPlayerTypeVoiceSoundLookupTable | GetVoiceSoundLookupTable () |
| bool | HeadingModel (float pDt, SDayZPlayerHeadingModel pModel) |
| -------------— heading model ----------------------— updated each tick this can limit / extend player's heading (orientation) behaviour in game | |
| bool | IsCamera3rdRaised () |
| proto native bool | IsCameraBlending () |
| bool | IsEyeZoom () |
| DEPRICATED(use GetEyeZoomLevel()) returns true if player is using EyeZoom, otherwise false. | |
| bool | IsHoldingBreath () |
| return true if player is trying to hold breah, otherwise false | |
| bool | IsInThirdPerson () |
| return true if player is currently in 3pp, otherwise false | |
| bool | IsPerformingFBGesture () |
| return true if player is currently performing FB gesture, otherwise false | |
| proto native bool | IsPlayerInStance (int pStanceMask) |
| -------------— camera additiona functions ----------------------— | |
| proto native float | IsPlayerSpeaking () |
| -------------— speaking anim ----------------------— | |
| bool | IsShootingFromCamera () |
| return true if shots are fired from camere, otherwise false | |
| void | LoadSoundWeaponEvent () |
| void | LoadVegetationSounds () |
| void | OnActivate (DayZPlayerCamera pPrevCamera, DayZPlayerCameraResult pPrevCameraResult) |
| virtual callback - called when camera is created | |
| override void | OnCommandDeathStart () |
| void | OnInputForRemote (ParamsReadContext ctx) |
| void | OnInputFromServer (ParamsReadContext ctx) |
| void | OnThrowingModeChange (bool change_to_enabled) |
| void | OnUpdate (float pDt, out DayZPlayerCameraResult pOutResult) |
| virtual callback - called each frame | |
| proto native void | ProcessMeleeHit (InventoryItem pMeleeWeapon, int pMeleeModeIndex, Object pTarget, int pComponentIndex, vector pHitWorldPos) |
| processes melee hit (uses component index) | |
| proto native void | ProcessMeleeHitName (InventoryItem pMeleeWeapon, int pMeleeModeIndex, Object pTarget, string pComponentName, vector pHitWorldPos) |
| processes melee hit (uses component name) | |
| proto native int | Random () |
| -------------— deterministic random numbers ---------------------— | |
| proto native float | Random01 () |
| Random number in range of <0,1> - ! | |
| proto native float | RandomRange (int pRange) |
| Random number in range of <0,pRange-1> - ! | |
| void | RegisterAttachmentSoundLookupTable (DayZPlayerTypeAttachmentSoundLookupTable pASLUT) |
| proto native void | RegisterCameraCreator (int pCameraID, typename pCameraType) |
| registers camera creator - camera type => camera type (must be descendant of DayZPlayerCamera) | |
| proto native void | RegisterCameraOnChangeFn (Class pInstance, string pFnName) |
| registers camera on change function - | |
| proto native void | RegisterCameraOnChangeFnStatic (typename pClass, string pFnName) |
| registers camera on change function - static function | |
| void | RegisterHitComponentsForAI () |
| register hit components for AI melee (used by attacking AI) | |
| proto native void | RegisterParticleEvent (string pEventType, float pFilterTimeout) |
| calls DayZPlayer.OnParticleEvent(); | |
| proto native void | RegisterSoundEvent (string pEventType, float pFilterTimeout) |
| calls DayZPlayer.OnSoundEvent(); | |
| void | RegisterSoundTable (DayZPlayerTypeAnimTable pST) |
| proto native void | RegisterStepEvent (string pEventType, float pFilterTimeout) |
| calls DayZPlayer.OnStepEvent(); | |
| void | RegisterStepSoundLookupTable (DayZPlayerTypeStepSoundLookupTable pSSLUT) |
| void | RegisterVoiceSoundLookupTable (DayZPlayerTypeVoiceSoundLookupTable pASLUT) |
| proto native void | ReleaseNetworkControls () |
| -------------— release controls ----------------------— | |
| proto native void | ResetCameraCreators () |
| resets camera creators | |
| proto native void | ResetItemInHandsProfiles () |
| reset profiles | |
| void | SDayZPlayerHeadingModel () |
| cannot be created from script | |
| void | SendRecoilOffsetZ (float offset) |
| m_fCamPosOffsetZ info, used to adjust near plane in DayZPlayerCameraIronsights now | |
| proto native void | SendSyncJuncture (int pJunctureID, ParamsWriteContext ctx) |
| -------------— sync stuff ----------------------— | |
| proto native void | SetAimLimits (float pDown, float pUp, float pLeft, float pRight) |
| sets aim limits for a player | |
| proto native void | SetCameraShootParams (float pRayDistance, float pRayRadius, float pMaxAngleCos) |
| sets aim limits for a player | |
| void | SetCurrentWaterLevel (float pWaterLevel) |
| class VegetationSound | SetDefaultItemInHandsProfile (string pAnimInstanceName, HumanItemBehaviorCfg pBehaviorCfg) |
| class that configures static data for DayZPlayer on each mission start DayZPlayerTypeCreate(DayZPlayerType pType) is called - can call methods | |
| proto native void | SetLookLimits (float pDown, float pUp, float pLeft, float pRight) |
| sets look limits for a player | |
| proto native void | SetVerticalMinimumAimLimit (float value) |
| sets vertical minimum aim limit for a player | |
| void | SpawnCameraShake (float strength=1, float radius=2, float smoothness=5, float radius_decay_speed=6) |
| void | SpawnCameraShakeProper (float strength, float radius, float smoothness, float radius_decay_speed) |
| void | SpawnDiagCameraShake () |
| proto native void | StoreInputForRemotes (ParamsWriteContext ctx) |
| void | UpdateDummyPlayerProxyVisibility (EntityAI shoulder, EntityAI melee) |
| void | VegetationSound (SoundObjectBuilder soundObjectBuilder, TIntArray animEventIds) |
Variables | |
| ref TIntArray | m_AnimEventIds |
| ref array< ref AnimSoundEvent > | m_animSoundEventsAttack |
| bool | m_bOwnerTMOverride |
| The world space transform of the owner to the camera. | |
| bool | m_bUpdateEveryFrame |
| Whether the camera updates the next frame or blends with next character update. | |
| bool | m_bUpdateWhenBlendOut |
| true - camera is updated when blending to new camera (Ironsights == false) | |
| vector | m_CameraTM [4] |
| transformation matrix - pos + orient of the camera | |
| IEntity | m_CollisionIgnoreEntity |
| ignore entity in 3rd person camera collision solver | |
| string | m_DefaultHitComponent |
| string | m_DefaultHitPositionComponent |
| float | m_fDistance |
| camera distance (external cameras only) | |
| float | m_fFovAbsolute |
| fov absolute value override - -1.0 default, if set - overrides absolute fov setting | |
| float | m_fFovMultiplier |
| fov multiplier - 1.0 default - used for modifying fov - | |
| float | m_fHeadingAngle |
| float | m_fIgnoreParentPitch |
| 1 - resets base transforms pitch | |
| float | m_fIgnoreParentRoll |
| 1 - resets base transforms roll | |
| float | m_fIgnoreParentYaw |
| 1 - resets base transforms yaw | |
| float | m_fInsideCamera |
| 0 not used, 1 - pos, 2 - rot, 3 - pos+rot applied as a parent to m_CameraTM, 4 as 3 but cam aligned with Y | |
| float | m_fNearPlane |
| nearplane distance | |
| float | m_fOrientationAngle |
| float | m_fPositionModelSpace |
| 0.0 position is in heading space, 1.0 position is in model space | |
| float | m_fPredictCollisionRadius |
| sphere radius used for collision prediction | |
| float | m_fShootFromCamera |
| 1(default) - uses shoot from camera (+aiming sway), 0 pure weapon shoot (ironsights == 0) | |
| float | m_fUseHeading |
| 0..1 (0 uses direct dir returned, 1 uses heading from player) | |
| ref array< ref DayZAIHitComponent > | m_HitComponentsForAI |
| Melee hit components (AI targeting). | |
| enum DayZPlayerInstanceType | m_iCamMode |
| int | m_iCurrentCommandID |
| int | m_iDirectBone |
| -1 no bone, >= 0 - bone index camera is bound to, m_CameraTM is offset to the bone | |
| int | m_iDirectBoneMode |
| ref ScriptInvoker | m_OnDeathStart |
| invokers | |
| vector | m_OwnerTM [4] |
| override automatically calculated owner transform during rendering (default - false) | |
| ref DayZPlayerTypeAttachmentSoundLookupTable | m_pAttachmentSoundLookupTable |
| HumanInputController | m_pInput |
| human input | |
| ref NoiseParams | m_pNoiseLandHeavy |
| ref NoiseParams | m_pNoiseLandLight |
| ref NoiseParams | m_pNoiseShout |
| ref NoiseParams | m_pNoiseStepCrouch |
| ref NoiseParams | m_pNoiseStepProne |
| ref NoiseParams | m_pNoiseStepStand |
| ref NoiseParams | m_pNoiseTalk |
| ref NoiseParams | m_pNoiseWhisper |
| DayZPlayer | m_pPlayer |
| data | |
| ref DayZPlayerTypeAnimTable | m_pSoundTable |
| ref DayZPlayerTypeStepSoundLookupTable | m_pStepSoundLookupTable |
| ref array< ref VegetationSound > | m_pVegetationSounds |
| ref DayZPlayerTypeVoiceSoundLookupTable | m_pVoiceSoundLookupTable |
| ref SoundObjectBuilder | m_SoundObjectBuilder |
| ref array< string > | m_SuitableFinisherHitComponents |
| enum DayZPlayerConstants | SetDefaultItemInHandsProfile |
| const int | SIMPLE_SELECTION_MELEE_MELEE = 1 |
| class SDayZPlayerAimingModel | SIMPLE_SELECTION_MELEE_RIFLE = 0 |
| const int | SIMPLE_SELECTION_SHOULDER_MELEE = 3 |
| const int | SIMPLE_SELECTION_SHOULDER_RIFLE = 2 |
this file is interface DayZPlayer classes
Definition in file dayzplayer.c.
|
protected |
defined in C++
Definition at line 601 of file dayzplayer.c.
|
protected |
defined in C++
Definition at line 1070 of file dayzplayer.c.
|
private |
cannot be instanced from script (always created from C++)
Definition at line 88 of file dayzplayer.c.
|
protected |
|
private |
Definition at line 1093 of file dayzplayer.c.
add bone remap for item class pBoneRemap has always 2x N members bone in item's P3D first, bone in Character skeleton second
array<string> remap = { "bolt", "Weapon_Bolt", "magazine", "Weapon_Magazine", "trigger", "Weapon_Trigger" }; AddItemBoneRemap("class", remap);
|
protected |
adds setup profile for items of class pItemClass when item is in hands - pAnimInstanceName is used for animation sourcing pCanRaise is whether weapon / item can be raised pRHandIK == false -> rhand ik is always turned off pLHandIK == false -> lhand ik is always turned off
VKOSTIK: DO NOT FORGET !!! HumanItemBehaviorCfg.m_iPerItemCameraUD - per item camera user data - enables you setup different cameras for different items in hands
|
protected |
|
protected |
-------------— aiming model ----------------------—
updated each tick - this takes care about aiming
-------------— animation graph functions ----------------------—
functions usable only from CommandHandler
-------------— camera handling ----------------------—
virtual returns registered camera type pCameraMode - DayZPlayerConstants.CAMERAMODE_ ...
| bool CanFreeLook | ( | ) |
this overrides freelook for cameras
Definition at line 63 of file dayzplayer.c.
|
protected |
this is used for getting appropriate sound effect to play step event on various surfaces && boots it's downcasted to StepSoundLookupTable
References SHumanCommandClimbSettings().
-------------— command handling ----------------------—
updated each tick handles: starting new commands, canceling, interruption pDt - delta time pCurrentCommandID - actually running command's ID pCurrentCommandFinished - is current command finished
|
protected |
References SHumanCommandMoveSettings().
|
protected |
| class DayZPlayerCameraResult DayZPlayerCamera | ( | DayZPlayer | pPlayer, |
| HumanInputController | pInput ) |
Definition at line 1 of file dayzplayer.c.
Referenced by GetCurrentCamera(), ManBase::GetCurrentPlayerCamera(), DayZPlayerCameraBase::OnActivate(), OnActivate(), CGame::OnRPC(), DayZPlayerCameraBase::SetCameraPP(), SetCameraPP(), DayZPlayerCameraBase::SetCameraPPDelay(), and SetCameraPPDelay().
|
private |
cannot be instanced from script (always created from C++)
Definition at line 83 of file dayzplayer.c.
|
protected |
Definition at line 512 of file dayzplayer.c.
References LoadSoundWeaponEvent(), LoadVegetationSounds(), m_pNoiseLandHeavy, m_pNoiseLandLight, m_pNoiseShout, m_pNoiseStepCrouch, m_pNoiseStepProne, m_pNoiseStepStand, m_pNoiseTalk, m_pNoiseWhisper, and NoiseParams().
Referenced by DayZPlayer::CommandHandler(), CustomBoneRemapping(), DayZPlayerTypeCreate(), DayZPlayerTypeUtils::DayZPlayerTypeCreate(), DayZPlayerTypeInitMovement(), DayZPlayerTypeUtils::DayZPlayerTypeInitMovement(), DayZPlayerTypeRegisterItems(), DayZPlayerTypeRegisterSounds(), GetDayZPlayerType(), DayZPlayer::OnStepEvent(), DayZPlayer::ProcessAttachmentEvent(), DayZPlayer::ProcessSoundEvent(), DayZPlayer::ProcessVoiceEvent(), DayZPlayer::ProcessWeaponEvent(), RegisterArcheryItem(), DayZPlayerCameras::RegisterCameras(), RegisterCustom(), RegisterFireArms(), RegisterHeavy(), RegisterLauncher(), RegisterOneHanded(), RegisterPistol(), RegisterPoleArms(), RegisterRestrained(), RegisterSurrender(), and RegisterTwoHanded().
|
protected |
debug / hack - loads all animation instances
|
protected |
-------------— sync shadow ----------------------—
test if entity is DayZPlayer
|
protected |
-------------— Forces player to stand up when swapping to heavy item ----------------------—
Definition at line 1356 of file dayzplayer.c.
References HumanCommandMove::ForceStance(), and IsPlayerInStance().
Referenced by DayZPlayer::CommandHandler(), and ForceStandUpForHeavyItemsSwap().
Definition at line 1369 of file dayzplayer.c.
References ForceStandUpForHeavyItems().
| vector GetAdditiveAngles | ( | ) |
Definition at line 87 of file dayzplayer.c.
|
protected |
returns aim limits for a player
|
private |
Definition at line 14 of file dayzplayer.c.
|
protected |
Definition at line 324 of file dayzplayer.c.
References m_pAttachmentSoundLookupTable.
| vector GetBaseAngles | ( | ) |
helper to blend between cameras ret[0] - up down angle ret[1] - left right angle ret[2] - roll angle
Definition at line 82 of file dayzplayer.c.
| string GetCameraName | ( | ) |
Definition at line 92 of file dayzplayer.c.
|
protected |
-------------— camera additional functions ----------------------—
gets current camera
References DayZPlayerCamera().
Referenced by ManBase::OnReceivedHit().
|
protected |
gets transform of current player camera
| vector GetCurrentOrientation | ( | ) |
Definition at line 112 of file dayzplayer.c.
References GetCurrentPitch(), GetCurrentRoll(), GetCurrentYaw(), and Vector().
Referenced by DayZPlayerCameraBase::OnUpdate(), and OnUpdate().
|
protected |
gets current camera
| float GetCurrentPitch | ( | ) |
Definition at line 102 of file dayzplayer.c.
Referenced by GetCurrentOrientation().
| float GetCurrentRoll | ( | ) |
Definition at line 107 of file dayzplayer.c.
Referenced by GetCurrentOrientation().
|
protected |
Referenced by ManBase::CanChangeStance(), and ManBase::OnUpdateEffectAreaServer().
| float GetCurrentYaw | ( | ) |
Definition at line 97 of file dayzplayer.c.
Referenced by GetCurrentOrientation().
|
protected |
returns appropriate DayZPlayerType
References DayZPlayerType().
Referenced by ManBase::CanChangeStance(), DayZPlayer::CommandHandler(), ManBase::GetDefaultHitComponent(), ManBase::GetHitComponentForAI(), DayZPlayer::GetSlidePoseAngle(), ManBase::GetSuitableFinisherHitComponents(), ManBase::Init(), DayZPlayer::OnStepEvent(), DayZPlayer::OverrideSlidePoseAngle(), DayZPlayer::ProcessAttachmentEvent(), DayZPlayer::ProcessSoundEvent(), DayZPlayer::ProcessVoiceEvent(), and DayZPlayer::ProcessWeaponEvent().
|
protected |
Definition at line 1173 of file dayzplayer.c.
References GetInstanceType().
Referenced by Trigger::AddInsider(), ItemBase::DestroyConstruction(), EntityAI::DropEntityImpl(), TriggerEvents::Enter(), EntityAI::ForceSwapEntitiesImpl(), ItemBase::InitBaseState(), ItemBase::InitVisuals(), TriggerEvents::Leave(), EntityAI::LocalDestroyEntityInHands(), Debug::MeleeLog(), ManBase::NeedInventoryJunctureFromServer(), ItemBase::OnPartDestroyedServer(), ItemBase::OnPartDismantledServer(), ItemBase::OnSetSlotLock(), ItemBase::OnVariablesSynchronized(), Debug::ParticleLog(), EntityAI::PredictiveMoveItemFromHandsToInventory(), EntityAI::PredictiveTakeEntityToTargetAttachmentEx(), EntityAI::PredictiveTakeEntityToTargetCargo(), EntityAI::PredictiveTakeEntityToTargetCargoEx(), Trigger::RemoveInsider(), EntityAI::ReplaceItemElsewhereWithNewInHandsImpl(), EntityAI::ReplaceItemInHandsWithNewElsewhereImpl(), EntityAI::ReplaceItemInHandsWithNewImpl(), EntityAI::ReplaceItemWithNewImpl(), ItemBase::SetMountedState(), ItemBase::SetPartFromSyncData(), Weapon::SpawnAttachedMagazine(), TriggerEvents::Stay(), TriggerEvents::StayFinish(), TriggerEvents::StayStart(), EntityAI::SwapEntitiesImpl(), EntityAI::TakeEntityAsAttachmentExImpl(), EntityAI::TakeEntityAsAttachmentImpl(), ManBase::TakeEntityAsAttachmentImpl(), EntityAI::TakeEntityToCargoImpl(), ManBase::TakeEntityToCargoImpl(), EntityAI::TakeEntityToHandsImpl(), ManBase::TakeEntityToHandsImpl(), EntityAI::TakeEntityToInventoryImpl(), ManBase::TakeEntityToInventoryImpl(), EntityAI::TakeEntityToTargetAttachmentExImpl(), ManBase::TakeEntityToTargetAttachmentImpl(), EntityAI::TakeEntityToTargetCargoExImpl(), EntityAI::TakeEntityToTargetCargoImpl(), ManBase::TakeEntityToTargetCargoImpl(), EntityAI::TakeEntityToTargetInventoryImpl(), ManBase::TakeEntityToTargetInventoryImpl(), EntityAI::TakeToDstImpl(), ManBase::TakeToDstImpl(), Debug::TFLog(), ItemBase::UpdateAttachmentPhysics(), Trigger::UpdateInsiders(), and ItemBase::UpdatePhysics().
|
protected |
Definition at line 497 of file dayzplayer.c.
References m_DefaultHitComponent.
Referenced by DayZCreatureAI::GetHitComponentForAI(), and GetHitComponentForAI().
|
protected |
Definition at line 502 of file dayzplayer.c.
References m_DefaultHitPositionComponent.
Referenced by DayZCreatureAI::DayZAnimal(), DayZInfected::Init(), and ManBase::Init().
|
protected |
returns eye zoom level, uses ECameraZoomType values
Referenced by DayZPlayer::IsEyeZoom().
|
protected |
returns Human global settings for DayZPlayer
|
protected |
|
protected |
Definition at line 485 of file dayzplayer.c.
References GetDefaultHitComponent(), m_HitComponentsForAI, and DayZAIHitComponentHelpers::SelectMostProbableHitComponent().
|
protected |
Referenced by ManBase::CheckForBurlap(), ManBase::CheckLiftWeapon(), ManBase::CloseInventoryMenu(), DayZPlayer::CommandHandler(), ManBase::CommandHandler(), ManBase::EOnFrame(), ManBase::EOnPostFrame(), ManBase::GetCraftingRecipeID(), ManBase::GetDebugActions(), GetDebugName(), ManBase::HideClothing(), IsServerOrLocalPlayer(), ManBase::Message(), ManBase::NeedInventoryJunctureFromServer(), ManBase::OnCommandHandlerTick(), ManBase::OnPlayerLoaded(), ManBase::OnQuickBarContinuousUseEnd(), ManBase::OnQuickBarContinuousUseStart(), ManBase::OnQuickBarSingleUse(), ManBase::OnReceivedHit(), ManBase::OnRPC(), ManBase::OnSelectPlayer(), DayZPlayer::OnSoundEvent(), ManBase::OnSpawnedFromConsole(), DayZPlayer::OnSprintEnd(), DayZPlayer::OnSprintStart(), ManBase::OnUnconsciousStart(), ManBase::OnUnconsciousStop(), ManBase::OnUnconsciousUpdate(), ManBase::ProcessHandDamage(), ManBase::ReloadWeapon(), ManBase::RequestResetADSSync(), ManBase::RequestSoundEventEx(), ManBase::RequestSoundEventStop(), ManBase::SetCraftingRecipeID(), ManBase::SetHairLevelToHide(), ManBase::SpawnEntityOnGroundPos(), StoreInputForRemotes(), ManBase::TogglePlacingLocal(), DayZPlayer::TriggerPullPlayerOutOfVehicleImpl(), ValidateHandEvent(), ValidateSwap(), and ValidateSyncMove().
|
protected |
get reason for kickoff if available (server only)
|
protected |
returns look limits for a player
|
protected |
processes melee hit
|
protected |
References NoiseParams().
|
protected |
Definition at line 371 of file dayzplayer.c.
References m_pNoiseStepCrouch, and NoiseParams().
|
protected |
Definition at line 386 of file dayzplayer.c.
References m_pNoiseLandHeavy, and NoiseParams().
|
protected |
Definition at line 381 of file dayzplayer.c.
References m_pNoiseLandLight, and NoiseParams().
|
protected |
Definition at line 376 of file dayzplayer.c.
References m_pNoiseStepProne, and NoiseParams().
|
protected |
Definition at line 401 of file dayzplayer.c.
References m_pNoiseShout, and NoiseParams().
|
protected |
Definition at line 366 of file dayzplayer.c.
References m_pNoiseStepStand, and NoiseParams().
|
protected |
Definition at line 396 of file dayzplayer.c.
References m_pNoiseTalk, and NoiseParams().
|
protected |
Definition at line 391 of file dayzplayer.c.
References m_pNoiseWhisper, and NoiseParams().
|
protected |
Definition at line 1377 of file dayzplayer.c.
References m_OnDeathStart.
|
protected |
Definition at line 139 of file dayzplayer.c.
| SoundObjectBuilder GetSoundBuilder | ( | int | eventId, |
| int | pMovement, | ||
| int | pSurfaceHash, | ||
| AnimBootsType | pBoots ) |
Definition at line 160 of file dayzplayer.c.
| SoundObjectBuilder GetSoundBuilder | ( | int | eventId, |
| string | slotName, | ||
| int | attachmentHash ) |
Definition at line 181 of file dayzplayer.c.
|
protected |
Definition at line 164 of file dayzplayer.c.
|
private |
Definition at line 9 of file dayzplayer.c.
|
protected |
Definition at line 344 of file dayzplayer.c.
References m_pSoundTable.
|
protected |
Definition at line 451 of file dayzplayer.c.
References m_animSoundEventsAttack.
|
protected |
Definition at line 314 of file dayzplayer.c.
References m_pStepSoundLookupTable.
Definition at line 507 of file dayzplayer.c.
References m_SuitableFinisherHitComponents.
|
protected |
Definition at line 361 of file dayzplayer.c.
References m_pVegetationSounds.
|
protected |
Definition at line 334 of file dayzplayer.c.
References m_pVoiceSoundLookupTable.
|
protected |
-------------— heading model ----------------------— updated each tick this can limit / extend player's heading (orientation) behaviour in game
References SDayZPlayerHeadingModel().
| override bool IsCamera3rdRaised | ( | ) |
Definition at line 117 of file dayzplayer.c.
|
protected |
|
protected |
DEPRICATED(use GetEyeZoomLevel()) returns true if player is using EyeZoom, otherwise false.
|
protected |
return true if player is trying to hold breah, otherwise false
|
protected |
return true if player is currently in 3pp, otherwise false
|
protected |
return true if player is currently performing FB gesture, otherwise false
-------------— camera additiona functions ----------------------—
returns true if player is currently in one of the stances specified by stance mask IsPlayerInStance(STANCEMASK_ERECT | STANCEMASK_CROUCH) returns true if player is standing or crouching and not raised (aimed) IsPlayerInStance(STANCEMASK_PRONE | STANCEMASK_RAISEDPRONE) returns true if player is in prone (both raised or nonraised) IsPlayerInStance(STANCEMASK_ALL) returns true always IsPlayerInStance(STANCEMASK_RAISEDERECT | STANCEMASK_RAISEDCROUCH | STANCEMASK_RAISEDPRONE) returns true if player has raised hands
Referenced by ManBase::CanRoll(), ForceStandUpForHeavyItems(), DayZPlayer::HandleView(), and ManBase::OnCommandMoveStart().
|
protected |
-------------— speaking anim ----------------------—
Check if player is using VoN to speak and return max amplitude from current samples
Referenced by DayZPlayer::CommandHandler().
|
protected |
return true if shots are fired from camere, otherwise false
|
protected |
Definition at line 406 of file dayzplayer.c.
References g_Game, and m_animSoundEventsAttack.
Referenced by DayZPlayerType().
|
protected |
Definition at line 424 of file dayzplayer.c.
References g_Game, m_pVegetationSounds, SoundObjectBuilder(), SoundParams(), and VegetationSound().
Referenced by DayZPlayerType().
| override void OnActivate | ( | DayZPlayerCamera | pPrevCamera, |
| DayZPlayerCameraResult | pPrevCameraResult ) |
virtual callback - called when camera is created
Definition at line 69 of file dayzplayer.c.
|
protected |
Definition at line 1385 of file dayzplayer.c.
References m_OnDeathStart.
|
protected |
Definition at line 1327 of file dayzplayer.c.
|
protected |
Definition at line 1328 of file dayzplayer.c.
|
protected |
Definition at line 1375 of file dayzplayer.c.
| override void OnUpdate | ( | float | pDt, |
| out DayZPlayerCameraResult | pOutResult ) |
virtual callback - called each frame
basically -> transform up vector (0,1,0) and read x coord -> and set is as roll
prev update
Definition at line 74 of file dayzplayer.c.
|
protected |
processes melee hit (uses component index)
|
protected |
processes melee hit (uses component name)
|
protected |
-------------— deterministic random numbers ---------------------—
Random number in range of <0,0xffffffff> - !!! use this only during deterministic simulation (CommandHandler)
|
protected |
Random number in range of <0,1> - !
!! use this only during deterministic simulation (CommandHandler)
Referenced by EntityAI::RandomFloat().
Random number in range of <0,pRange-1> - !
!! use this only during deterministic simulation (CommandHandler)
| pRange | upper bounds of random number |
|
protected |
Definition at line 319 of file dayzplayer.c.
References m_pAttachmentSoundLookupTable.
registers camera creator - camera type => camera type (must be descendant of DayZPlayerCamera)
registers camera on change function -
registers camera on change function - static function
|
protected |
register hit components for AI melee (used by attacking AI)
registers default hit compoent for entity
registers default hit position for entity
list of components suitable for melee finisher attacks (used in fight logic)
register hit components that are selected by probability
Definition at line 463 of file dayzplayer.c.
References m_DefaultHitComponent, m_DefaultHitPositionComponent, m_HitComponentsForAI, m_SuitableFinisherHitComponents, and DayZAIHitComponentHelpers::RegisterHitComponent().
calls DayZPlayer.OnParticleEvent();
calls DayZPlayer.OnSoundEvent();
|
protected |
Definition at line 339 of file dayzplayer.c.
References m_pSoundTable.
calls DayZPlayer.OnStepEvent();
|
protected |
Definition at line 309 of file dayzplayer.c.
References m_pStepSoundLookupTable.
|
protected |
Definition at line 329 of file dayzplayer.c.
References m_pVoiceSoundLookupTable.
|
protected |
-------------— release controls ----------------------—
|
protected |
resets camera creators
|
protected |
reset profiles
|
private |
cannot be created from script
Definition at line 1092 of file dayzplayer.c.
Referenced by DayZPlayerImplementHeading::ClampHeading(), DayZPlayer::HeadingModel(), HeadingModel(), ManBase::HeadingModel(), DayZPlayerImplementHeading::NoHeading(), DayZPlayerImplementHeading::RestrictHeading(), and DayZPlayerImplementHeading::RotateOrient().
|
protected |
m_fCamPosOffsetZ info, used to adjust near plane in DayZPlayerCameraIronsights now
Definition at line 139 of file dayzplayer.c.
|
protected |
-------------— sync stuff ----------------------—
Referenced by ManBase::ResetADSPlayerSync().
sets aim limits for a player
|
protected |
sets aim limits for a player
|
protected |
|
protected |
class that configures static data for DayZPlayer on each mission start DayZPlayerTypeCreate(DayZPlayerType pType) is called - can call methods
sets look limits for a player
|
protected |
sets vertical minimum aim limit for a player
sets aim lower limit for a player
Referenced by DayZPlayer::HandleView().
| void SpawnCameraShake | ( | float | strength = 1, |
| float | radius = 2, | ||
| float | smoothness = 5, | ||
| float | radius_decay_speed = 6 ) |
Definition at line 127 of file dayzplayer.c.
References SpawnCameraShakeProper().
| void SpawnCameraShakeProper | ( | float | strength, |
| float | radius, | ||
| float | smoothness, | ||
| float | radius_decay_speed ) |
Definition at line 345 of file dayzplayercamera_base.c.
References m_CameraShake.
Referenced by SpawnCameraShake(), and SpawnDiagCameraShake().
| void SpawnDiagCameraShake | ( | ) |
Definition at line 122 of file dayzplayer.c.
References SpawnCameraShakeProper().
|
protected |
Referenced by ProcessInputData().
Definition at line 1335 of file dayzplayer.c.
References SIMPLE_SELECTION_MELEE_MELEE, SIMPLE_SELECTION_MELEE_RIFLE, SIMPLE_SELECTION_SHOULDER_MELEE, and SIMPLE_SELECTION_SHOULDER_RIFLE.
|
private |
Definition at line 3 of file dayzplayer.c.
Referenced by LoadVegetationSounds().
|
private |
Definition at line 1 of file dayzplayer.c.
|
protected |
Definition at line 593 of file dayzplayer.c.
Referenced by GetSoundWeaponEvent(), and LoadSoundWeaponEvent().
| bool m_bOwnerTMOverride |
The world space transform of the owner to the camera.
Definition at line 78 of file dayzplayer.c.
| bool m_bUpdateEveryFrame |
Whether the camera updates the next frame or blends with next character update.
Definition at line 75 of file dayzplayer.c.
| bool m_bUpdateWhenBlendOut |
true - camera is updated when blending to new camera (Ironsights == false)
Definition at line 70 of file dayzplayer.c.
| vector m_CameraTM[4] |
transformation matrix - pos + orient of the camera
Definition at line 58 of file dayzplayer.c.
| IEntity m_CollisionIgnoreEntity |
ignore entity in 3rd person camera collision solver
Definition at line 80 of file dayzplayer.c.
|
protected |
Definition at line 588 of file dayzplayer.c.
Referenced by DeathUpdate(), GetDefaultHitComponent(), AnimalBase::RegisterHitComponentsForAI(), and RegisterHitComponentsForAI().
|
protected |
Definition at line 589 of file dayzplayer.c.
Referenced by AnimalBase(), DeathUpdate(), GetDefaultHitPositionComponent(), AnimalBase::RegisterHitComponentsForAI(), and RegisterHitComponentsForAI().
| float m_fDistance |
camera distance (external cameras only)
Definition at line 63 of file dayzplayer.c.
Referenced by DayZPlayerCamera3rdPersonCrouch(), DayZPlayerCamera3rdPersonJump(), DayZPlayerCamera3rdPersonProne(), DayZPlayerCamera3rdPersonVehicle(), and OnUpdate().
| float m_fFovAbsolute |
fov absolute value override - -1.0 default, if set - overrides absolute fov setting
Definition at line 60 of file dayzplayer.c.
Referenced by DayZPlayerCameraBase(), DayZPlayerCameraBase::HoldBreathFOVEffect(), HoldBreathFOVEffect(), and StdFovUpdate().
| float m_fFovMultiplier |
fov multiplier - 1.0 default - used for modifying fov -
Definition at line 59 of file dayzplayer.c.
|
protected |
Definition at line 1089 of file dayzplayer.c.
| float m_fIgnoreParentPitch |
1 - resets base transforms pitch
Definition at line 73 of file dayzplayer.c.
| float m_fIgnoreParentRoll |
1 - resets base transforms roll
Definition at line 72 of file dayzplayer.c.
| float m_fIgnoreParentYaw |
1 - resets base transforms yaw
Definition at line 74 of file dayzplayer.c.
| float m_fInsideCamera |
0 not used, 1 - pos, 2 - rot, 3 - pos+rot applied as a parent to m_CameraTM, 4 as 3 but cam aligned with Y
0..1 (0 normal lod, 1 inside lod), >0.7 -> inside
Definition at line 69 of file dayzplayer.c.
| float m_fNearPlane |
nearplane distance
Definition at line 61 of file dayzplayer.c.
|
protected |
Definition at line 1088 of file dayzplayer.c.
| float m_fPositionModelSpace |
0.0 position is in heading space, 1.0 position is in model space
Definition at line 62 of file dayzplayer.c.
| float m_fPredictCollisionRadius |
sphere radius used for collision prediction
Definition at line 65 of file dayzplayer.c.
Referenced by DayZPlayerCamera3rdPerson(), and DayZPlayerCamera3rdPersonJump().
| float m_fShootFromCamera |
1(default) - uses shoot from camera (+aiming sway), 0 pure weapon shoot (ironsights == 0)
Definition at line 71 of file dayzplayer.c.
Referenced by AdjustCameraParameters(), and DayZPlayerCameraOptics().
| float m_fUseHeading |
0..1 (0 uses direct dir returned, 1 uses heading from player)
Definition at line 64 of file dayzplayer.c.
|
protected |
Melee hit components (AI targeting).
Definition at line 587 of file dayzplayer.c.
Referenced by AnimalBase(), DeathUpdate(), GetArrowManager(), GetHitComponentForAI(), AnimalBase::RegisterHitComponentsForAI(), and RegisterHitComponentsForAI().
|
protected |
|
protected |
Definition at line 1087 of file dayzplayer.c.
| int m_iDirectBone |
-1 no bone, >= 0 - bone index camera is bound to, m_CameraTM is offset to the bone
Definition at line 67 of file dayzplayer.c.
| int m_iDirectBoneMode |
Definition at line 68 of file dayzplayer.c.
|
protected |
invokers
Definition at line 1166 of file dayzplayer.c.
Referenced by GetOnDeathStart(), and OnCommandDeathStart().
| vector m_OwnerTM[4] |
override automatically calculated owner transform during rendering (default - false)
Definition at line 77 of file dayzplayer.c.
|
protected |
Definition at line 569 of file dayzplayer.c.
Referenced by GetAttachmentSoundLookupTable(), and RegisterAttachmentSoundLookupTable().
|
protected |
human input
Definition at line 136 of file dayzplayer.c.
Referenced by HandleShoulderCameraOverride(), DayZPlayerCameraBase::OnUpdate(), UpdateLRAngle(), UpdateLRAngleLookAt(), UpdateLRAngleUnlocked(), UpdateUDAngle(), and UpdateUDAngleUnlocked().
|
protected |
Definition at line 577 of file dayzplayer.c.
Referenced by DayZPlayerType(), and GetNoiseParamsLandHeavy().
|
protected |
Definition at line 576 of file dayzplayer.c.
Referenced by DayZPlayerType(), and GetNoiseParamsLandLight().
|
protected |
Definition at line 582 of file dayzplayer.c.
Referenced by DayZPlayerType(), and GetNoiseParamsShout().
|
protected |
Definition at line 574 of file dayzplayer.c.
Referenced by DayZPlayerType(), and GetNoiseParamsCrouch().
|
protected |
Definition at line 575 of file dayzplayer.c.
Referenced by DayZPlayerType(), and GetNoiseParamsProne().
|
protected |
Definition at line 573 of file dayzplayer.c.
Referenced by DayZPlayerType(), and GetNoiseParamsStand().
|
protected |
Definition at line 581 of file dayzplayer.c.
Referenced by DayZPlayerType(), and GetNoiseParamsTalk().
|
protected |
Definition at line 580 of file dayzplayer.c.
Referenced by DayZPlayerType(), and GetNoiseParamsWhisper().
|
protected |
data
player camera is attached to
Definition at line 135 of file dayzplayer.c.
Referenced by DayZPlayerCameraBase(), GetMovementSpeedVisualCoef(), GetMovementStanceVisualCoef(), DayZPlayerCameraBase::HoldBreathFOVEffect(), HoldBreathFOVEffect(), Init(), Init(), InitCameraOnPlayer(), OnActivate(), DayZPlayerCamera3rdPersonErc::OnUpdate(), DayZPlayerCameraBase::OnUpdate(), OnUpdate(), ProcessNoiseComponents(), ProcessVisualComponents(), DayZPlayerCameraBase::SetCameraPP(), SetCameraPP(), SetNVPostprocess(), DayZPlayerCameraBase::SetupSightEntities(), ShowCoefsDbg(), StdFovUpdate(), and UpdateUDAngleUnlocked().
|
protected |
Definition at line 571 of file dayzplayer.c.
Referenced by GetSoundTable(), and RegisterSoundTable().
|
protected |
Definition at line 568 of file dayzplayer.c.
Referenced by GetStepSoundLookupTable(), and RegisterStepSoundLookupTable().
|
protected |
Definition at line 584 of file dayzplayer.c.
Referenced by GetVegetationSounds(), and LoadVegetationSounds().
|
protected |
Definition at line 570 of file dayzplayer.c.
Referenced by GetVoiceSoundLookupTable(), and RegisterVoiceSoundLookupTable().
|
private |
Definition at line 0 of file dayzplayer.c.
Definition at line 591 of file dayzplayer.c.
Referenced by GetSuitableFinisherHitComponents(), and RegisterHitComponentsForAI().
|
protected |
|
private |
Definition at line 1161 of file dayzplayer.c.
Referenced by UpdateDummyPlayerProxyVisibility(), and ManBase::UpdateShoulderProxyVisibility().
|
private |
Referenced by UpdateDummyPlayerProxyVisibility(), and ManBase::UpdateShoulderProxyVisibility().
|
private |
Definition at line 1163 of file dayzplayer.c.
Referenced by UpdateDummyPlayerProxyVisibility(), and ManBase::UpdateShoulderProxyVisibility().
|
private |
Definition at line 1162 of file dayzplayer.c.
Referenced by UpdateDummyPlayerProxyVisibility(), and ManBase::UpdateShoulderProxyVisibility().