DayZ 1.24
Loading...
Searching...
No Matches
SmptAnimMetaBase Class Reference
Collaboration diagram for SmptAnimMetaBase:
[legend]

Private Member Functions

void ~SmptAnimMetaFB ()
 
override void Init (ParamsReadContext ctx, SymptomManager manager, PlayerBase player)
 
override EAnimPlayState Play ()
 

Private Attributes

int m_StanceMask
 
float m_Duration
 

Detailed Description

Definition at line 76 of file SmptAnimMeta.c.

Constructor & Destructor Documentation

◆ ~SmptAnimMetaFB()

void SmptAnimMetaBase::~SmptAnimMetaFB ( )
inlineprivate

Definition at line 81 of file SmptAnimMeta.c.

82 {
83 if (m_Player)
84 m_Player.m_isFBsymptomPlaying = false;
85 }
PlayerBase m_Player

References DayZPlayer::m_isFBsymptomPlaying, and m_Player.

Member Function Documentation

◆ Init()

override void SmptAnimMetaBase::Init ( ParamsReadContext ctx,
SymptomManager manager,
PlayerBase player )
inlineprivate

Definition at line 87 of file SmptAnimMeta.c.

88 {
89 super.Init(ctx, manager, player);
91 }
int m_AnimID
static bool ReadPlayerSymptomFBParams(ParamsReadContext pCtx, out DayZPlayerConstants anim_id, out int stance_mask, out float duration)

References m_AnimID, m_Duration, m_StanceMask, and DayZPlayerSyncJunctures::ReadPlayerSymptomFBParams().

◆ Play()

override EAnimPlayState SmptAnimMetaBase::Play ( )
inlineprivate

Definition at line 93 of file SmptAnimMeta.c.

94 {
95 m_Canceled = false;
96
97 HumanCommandActionCallback callback = m_Player.GetCommand_Action();
98
99 if (!callback)
100 callback = m_Player.GetCommandModifier_Action();
101 if (callback)
102 {
103 callback.InternalCommand(DayZPlayerConstants.CMD_ACTIONINT_INTERRUPT);
104 m_Canceled = true;
105 }
106
107 if (!m_Canceled)
108 {
110
111 if (anim_callback)
112 {
114 m_IsPlaying = true;
115 m_Player.m_isFBsymptomPlaying = true;
116 return EAnimPlayState.OK;
117 }
118 else
119 return EAnimPlayState.FAILED;
120 }
121 return EAnimPlayState.POSTPONED;
122 }
enum eAnimFinishType m_IsPlaying
bool m_Canceled
EAnimPlayState
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References m_AnimID, m_Canceled, m_Duration, DayZPlayer::m_isFBsymptomPlaying, m_IsPlaying, m_Player, and m_StanceMask.

Referenced by PlayRequest().

Member Data Documentation

◆ m_Duration

float SmptAnimMetaBase::m_Duration
private

Definition at line 79 of file SmptAnimMeta.c.

◆ m_StanceMask

int SmptAnimMetaBase::m_StanceMask
private

Definition at line 78 of file SmptAnimMeta.c.


The documentation for this class was generated from the following file: