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

Protected Member Functions

void SynchSkinnedState ()
 

Private Member Functions

void ComponentBodyStaging ()
 
void ~ComponentBodyStaging ()
 
void SetAsSkinned ()
 
bool IsSkinned ()
 
void SetAsSkinnedClient ()
 
- Private Member Functions inherited from Component
void Event_OnFrame (IEntity other, float timeSlice)
 
Shape DebugBBoxDraw ()
 
void DebugBBoxSetColor (int color)
 
void DebugBBoxDelete ()
 
Shape DebugDirectionDraw (float distance=1)
 
void DebugDirectionSetColor (int color)
 
void DebugDirectionDelete ()
 
void SetParentEntityAI (EntityAI e)
 
void Event_OnAwake ()
 
void Event_OnInit ()
 
void LogThis (string msg, string fnc_name="n/a")
 
void LogThisWarning (string msg, string fnc_name="n/a")
 
void LogThisError (string msg, string fnc_name="n/a")
 
string GetCompName ()
 
int GetCompType ()
 
void Event_OnItemAttached (EntityAI item, string slot_name)
 
void Event_OnItemDetached (EntityAI item, string slot_name)
 
override Shape DebugBBoxDraw ()
 
override void DebugBBoxSetColor (int color)
 
override void DebugBBoxDelete ()
 
override Shape DebugDirectionDraw (float distance=1)
 
override void DebugDirectionDelete ()
 
void OnDrawing ()
 

Private Attributes

bool m_IsSkinned
 
- Private Attributes inherited from Component
EntityAI m_ThisEntityAI
 
Shape m_DebugShapeBBox
 
Shape m_DebugShapeDirection
 
float m_DebugShapeDirectionDist
 

Additional Inherited Members

- Static Private Member Functions inherited from Component
static void Init ()
 
static string GetNameByType (int comp_type)
 
static bool IsTypeExist (int comp_type)
 
static void LogErrorBadCompType (int comp_type, string fnc_name)
 
static void LogWarningAlredyExist (int comp_type, string fnc_name)
 

Detailed Description

Definition at line 9 of file BodyStaging.c.

Constructor & Destructor Documentation

◆ ComponentBodyStaging()

void ComponentBodyStaging::ComponentBodyStaging ( )
inlineprivate

Definition at line 13 of file BodyStaging.c.

14 {
15 m_IsSkinned = false;
16 }

References m_IsSkinned.

◆ ~ComponentBodyStaging()

void ComponentBodyStaging::~ComponentBodyStaging ( )
inlineprivate

Definition at line 18 of file BodyStaging.c.

19 {
20
21 }

Member Function Documentation

◆ IsSkinned()

bool ComponentBodyStaging::IsSkinned ( )
inlineprivate

Definition at line 44 of file BodyStaging.c.

45 {
46 return m_IsSkinned;
47 }

References m_IsSkinned.

Referenced by SynchSkinnedState().

◆ SetAsSkinned()

void ComponentBodyStaging::SetAsSkinned ( )
inlineprivate

Definition at line 23 of file BodyStaging.c.

24 {
25 m_IsSkinned = true;
26
27 // Temporal! Body is moved into ground so we can see if it was already skinned or not until necesarry assets are developed.
28 /*
29 if ( !m_ThisEntityAI.IsKindOf("Animal_GallusGallusDomesticus") && !m_ThisEntityAI.IsKindOf("Animal_GallusGallusDomesticusF") )
30 {
31 vector body_new_pos = m_ThisEntityAI.GetPosition() - "0 0.2 0";
32 m_ThisEntityAI.SetPosition(body_new_pos);
33 }
34 else
35 {
36 vector body_new_pos2 = m_ThisEntityAI.GetPosition() - "0 0.08 0";
37 m_ThisEntityAI.SetPosition(body_new_pos2);
38 }
39 */
40
42 }

References m_IsSkinned, and SynchSkinnedState().

◆ SetAsSkinnedClient()

void ComponentBodyStaging::SetAsSkinnedClient ( )
inlineprivate

Definition at line 49 of file BodyStaging.c.

50 {
51 m_IsSkinned = true;
52 }

References m_IsSkinned.

◆ SynchSkinnedState()

void ComponentBodyStaging::SynchSkinnedState ( )
inlineprotected

Definition at line 59 of file BodyStaging.c.

60 {
61 if (GetGame().IsServer())
62 {
64 GetGame().RPCSingleParam(m_ThisEntityAI, ERPCs.RPC_BS_SKINNED_STATE, p, true);
65 }
66 }
ERPCs
Definition ERPCs.c:2
EntityAI m_ThisEntityAI
Definition Component.c:24
proto native CGame GetGame()

References GetGame(), IsSkinned(), and Component::m_ThisEntityAI.

Referenced by SetAsSkinned().

Member Data Documentation

◆ m_IsSkinned

bool ComponentBodyStaging::m_IsSkinned
private

Definition at line 11 of file BodyStaging.c.

Referenced by ComponentBodyStaging(), IsSkinned(), SetAsSkinned(), and SetAsSkinnedClient().


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