DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл humanitems.c

См. исходные тексты.

Структуры данных

class  HumanItemBehaviorCfg
 

Функции

class HumanItemBehaviorCfg OnItemInHandsChanged (bool pInstant=false)
 signalization from script to engine that item in hands changed
 
void SetIK (int pStance, int pMovement, bool pAim, bool pRArm, bool pLArm)
 
void SetIKStance (int pStance, bool pAim, bool pRArm, bool pLArm)
 
void SetIKMelee (int pHitType, bool pAim, bool pRArm, bool pLArm)
 
void SetIKAll (bool pAim, bool pRArm, bool pLArm)
 
proto native void ResetWeaponInHands ()
 reset weapon anim override in case of premature death
 
proto native void HideItemInHands (bool pState)
 hides item in hands visually
 
proto native bool IsItemInHandsHidden ()
 returns if item in hands is hidden visually
 
proto native bool IsItemInHandsWeapon ()
 returns true if item in hands is a weapon
 
proto native bool WeaponGetCameraPoint (out vector pPos, out vector pRot)
 returns true if weapon is item and it has camera point - local pos, dir in weapon space
 
proto native bool WeaponGetCameraPointMSTransform (notnull EntityAI pCamEntity, vector pCamPoint, vector pCamDir, out vector pTm[4])
 returns true if weapon is item and it has camera point - model space matrix -
 
proto native bool WeaponGetCameraPointBoneRelative (notnull EntityAI pCamEntity, vector pCamPoint, vector pCamDir, int pBoneIndex, out vector pTm[4])
 returns true if weapon is item and it has camera point - model space matrix -
 
proto native bool WeaponGetAimingModelDirTm (out vector pTm[4])
 return current aiming point from aiming model (additive swaying applied - no recoil points)
 
proto native HumanItemBehaviorCfg GetItemInHandsBehaviourCfg ()
 
void HumanItemAccessor ()
 
void ~HumanItemAccessor ()
 

Переменные

static int IKSETTING_AIMING = 0x1
 bit mask of ik settings
 
static int IKSETTING_RHAND = 0x2
 
static int IKSETTING_LHAND = 0x4
 
int m_iType
 
int m_iStanceMask
 combinations of STANCEMASK_
 
int m_StanceMovements [6]
 
int m_StanceRotation [6]
 6 stances -> all has movement mask, STANCEIDX_ ... is index
 
int m_IKSettings [24]
 
int m_IKSettingsMelee [2]
 [stance][movement] mask for ik
 
int m_iPerItemCameraUserData
 [inpact type] mask for ik (0 - light/1 - heavy)
 
float m_fMoveHeadingFilterSpan
 per item camera user data - can be obtained in runtime by DayZPlayer.GetPerItemCameraUD()
 
float m_fMoveHeadingSprintFilterSpan
 default delay of alignment when moving
 
float m_fMoveHeadingProneFilterSpan
 delay of alignment when sprintinh
 
float m_fMoveHeadingFilterSpeed
 delay of alignment when moving in prone stance
 
float m_fMeleeEvadeHeadingFilterSpan
 max speed of alignment when moving
 
float m_fMeleeEvadeHeadingFilterSpeed
 delay of alignment when evading
 
bool m_bAttackLean
 max speed of alignment when evading
 
bool m_bJumpAllowed
 default false
 
bool m_bPlaceholder
 default true
 

Функции

◆ GetItemInHandsBehaviourCfg()

proto native HumanItemBehaviorCfg GetItemInHandsBehaviourCfg ( )

◆ HideItemInHands()

proto native void HideItemInHands ( bool pState)

hides item in hands visually

◆ HumanItemAccessor()

void HumanItemAccessor ( )
private

◆ IsItemInHandsHidden()

proto native bool IsItemInHandsHidden ( )

returns if item in hands is hidden visually

◆ IsItemInHandsWeapon()

proto native bool IsItemInHandsWeapon ( )

returns true if item in hands is a weapon

◆ OnItemInHandsChanged()

class HumanItemBehaviorCfg OnItemInHandsChanged ( bool pInstant = false)

signalization from script to engine that item in hands changed

Используется в ManBase::EEItemIntoHands() и ManBase::EEItemOutOfHands().

◆ ResetWeaponInHands()

proto native void ResetWeaponInHands ( )

reset weapon anim override in case of premature death

◆ SetIK()

void SetIK ( int pStance,
int pMovement,
bool pAim,
bool pRArm,
bool pLArm )
private
45 {
46 int val = 0;
50
Definition EntityAI.c:95
static int IKSETTING_AIMING
bit mask of ik settings
Definition humanitems.c:4
static int IKSETTING_RHAND
Definition humanitems.c:5
static int IKSETTING_LHAND
Definition humanitems.c:6

◆ SetIKAll()

void SetIKAll ( bool pAim,
bool pRArm,
bool pLArm )
private
85 {
86 int val = 0;
90
91 int i;
92 for (i = 0; i < 24; i++)
93 {
int m_IKSettings[24]
Definition humanitems.c:13

◆ SetIKMelee()

void SetIKMelee ( int pHitType,
bool pAim,
bool pRArm,
bool pLArm )
private
69 {
71 }
72 }
73
74 void SetIKMelee(int pHitType, bool pAim, bool pRArm, bool pLArm)
75 {
void SetIKMelee(int pHitType, bool pAim, bool pRArm, bool pLArm)
Definition humanitems.c:67

Перекрестные ссылки HumanItemBehaviorCfg::m_IKSettings.

◆ SetIKStance()

void SetIKStance ( int pStance,
bool pAim,
bool pRArm,
bool pLArm )
private
60 {
61 int val = 0;
65

◆ WeaponGetAimingModelDirTm()

proto native bool WeaponGetAimingModelDirTm ( out vector pTm[4])

return current aiming point from aiming model (additive swaying applied - no recoil points)

◆ WeaponGetCameraPoint()

proto native bool WeaponGetCameraPoint ( out vector pPos,
out vector pRot )

returns true if weapon is item and it has camera point - local pos, dir in weapon space

◆ WeaponGetCameraPointBoneRelative()

proto native bool WeaponGetCameraPointBoneRelative ( notnull EntityAI pCamEntity,
vector pCamPoint,
vector pCamDir,
int pBoneIndex,
out vector pTm[4] )

returns true if weapon is item and it has camera point - model space matrix -

◆ WeaponGetCameraPointMSTransform()

proto native bool WeaponGetCameraPointMSTransform ( notnull EntityAI pCamEntity,
vector pCamPoint,
vector pCamDir,
out vector pTm[4] )

returns true if weapon is item and it has camera point - model space matrix -

◆ ~HumanItemAccessor()

void ~HumanItemAccessor ( )
private
146 {
147 }

Переменные

◆ IKSETTING_AIMING

int IKSETTING_AIMING = 0x1
static

bit mask of ik settings

◆ IKSETTING_LHAND

int IKSETTING_LHAND = 0x4
static

◆ IKSETTING_RHAND

int IKSETTING_RHAND = 0x2
static

◆ m_bAttackLean

◆ m_bJumpAllowed

bool m_bJumpAllowed

default false

per weapon lean forward

Используется в HumanItemBehaviorCfg::SetHeavyItems().

◆ m_bPlaceholder

bool m_bPlaceholder
private

default true

◆ m_fMeleeEvadeHeadingFilterSpan

float m_fMeleeEvadeHeadingFilterSpan

max speed of alignment when moving

evade caps

◆ m_fMeleeEvadeHeadingFilterSpeed

float m_fMeleeEvadeHeadingFilterSpeed

delay of alignment when evading

◆ m_fMoveHeadingFilterSpan

float m_fMoveHeadingFilterSpan

per item camera user data - can be obtained in runtime by DayZPlayer.GetPerItemCameraUD()

movement caps

◆ m_fMoveHeadingFilterSpeed

float m_fMoveHeadingFilterSpeed

delay of alignment when moving in prone stance

◆ m_fMoveHeadingProneFilterSpan

float m_fMoveHeadingProneFilterSpan

delay of alignment when sprintinh

◆ m_fMoveHeadingSprintFilterSpan

float m_fMoveHeadingSprintFilterSpan

default delay of alignment when moving

◆ m_IKSettings

int m_IKSettings[24]

◆ m_IKSettingsMelee

int m_IKSettingsMelee[2]

[stance][movement] mask for ik

◆ m_iPerItemCameraUserData

◆ m_iStanceMask

◆ m_iType

◆ m_StanceMovements

◆ m_StanceRotation

int m_StanceRotation[6]

6 stances -> all has movement mask, STANCEIDX_ ... is index

Используется в HumanItemBehaviorCfg::DayzPlayerItemBehaviorCfg(), HumanItemBehaviorCfg::SetRestrained() и HumanItemBehaviorCfg::SetSurrender().