CBaseFlex: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(-added clientside class hierarchy)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{warning|It is not advised to leave this class as-is for Co-op mods, since each NPC takes up over 256 bytes of data to update. That amounts to 5 kb for 20 NPCs!}}
{{CD|CBaseFlex|base=CBaseAnimatingOverlay|file1=1}}
{{CD|C_BaseFlex|base=C_BaseAnimatingOverlay|client=1|file1=1}}
'''Purpose:''' CBaseFlex contains and manages data for a model's [[flex controller]]s. The data is not modified, therefore does not take bandwidth for NPCs without faces (i.e. [[npc_combine_s|Combine Soldiers]]).
 
{{Linked entities|funCBaseFlex}}
 
== Fields ==
 
{{DEFINE_ARRAY|m_flexWeight|FIELD_FLOAT|96}} <!-- |MAXSTUDIOFLEXCTRL ), -->
{{DEFINE_FIELD|m_viewtarget|FIELD_POSITION_VECTOR|desc todo}}
{{DEFINE_FIELD|m_flAllowResponsesEndTime|FIELD_TIME|desc todo}}
{{DEFINE_FIELD|m_LocalToGlobal|CUtlRBTree < FS_LocalToGlobal_t , unsigned short >|desc todo}}
{{DEFINE_FIELD|m_flLastFlexAnimationTime|FIELD_TIME|desc todo}}
 
=== in {{Half-Life 2 series|4}} ===
<!-- //DEFINE_FIELD( m_vecPrevOrigin, FIELD_POSITION_VECTOR ),
//DEFINE_FIELD( m_vecPrevVelocity, FIELD_VECTOR ), -->
 
{{DEFINE_FIELD|m_vecLean|FIELD_VECTOR}}
{{DEFINE_FIELD|m_vecShift|FIELD_VECTOR}}
 
== See Also ==
{{See also netprops}}
 
 
[[Category:Classes]]
[[Category:Classes]]

Latest revision as of 10:17, 20 March 2025