SendProp: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (categorize)
m (Robot: fixing template case.)
Line 1: Line 1:
==dt_send.h==
==dt_send.h==
===SendPropFloat===
===SendPropFloat===
{{ccexample||SendPropFloat( SENDINFO(m_flSpriteScale ), 8, SPROP_ROUNDUP, 0.0f, MAX_SPRITE_SCALE),}}
{{CCExample||SendPropFloat( SENDINFO(m_flSpriteScale ), 8, SPROP_ROUNDUP, 0.0f, MAX_SPRITE_SCALE),}}
===SendPropVector===
===SendPropVector===
{{ccexample||SendPropVector( SENDINFO( m_vInitialVelocity ),}}
{{CCExample||SendPropVector( SENDINFO( m_vInitialVelocity ),}}


{{ccexample||SendPropVector( SENDINFO( m_vecStartPosition ), 0, SPROP_NOSCALE ),}}
{{CCExample||SendPropVector( SENDINFO( m_vecStartPosition ), 0, SPROP_NOSCALE ),}}
===SendPropAngle===
===SendPropAngle===
{{ccexample||SendPropAngle( SENDINFO_VECTORELEM( m_angRotation, 0 ), 13 ),}}
{{CCExample||SendPropAngle( SENDINFO_VECTORELEM( m_angRotation, 0 ), 13 ),}}
===SendPropQAngles===
===SendPropQAngles===
{{ccexample||SendPropQAngles( SENDINFO( m_angRotation ), 10 ),}}
{{CCExample||SendPropQAngles( SENDINFO( m_angRotation ), 10 ),}}


{{ccexample||SendPropQAngles( SENDINFO( m_angRotation ), 13, SPROP_CHANGES_OFTEN, SendProxy_Angles ),}}
{{CCExample||SendPropQAngles( SENDINFO( m_angRotation ), 13, SPROP_CHANGES_OFTEN, SendProxy_Angles ),}}
===SendPropInt===
===SendPropInt===
{{ccexample||SendPropInt( SENDINFO( m_nNumBeamEnts ), 5, SPROP_UNSIGNED ),}}
{{CCExample||SendPropInt( SENDINFO( m_nNumBeamEnts ), 5, SPROP_UNSIGNED ),}}


{{ccexample||SendPropInt( SENDINFO( m_nSkin ), 10 ),}}
{{CCExample||SendPropInt( SENDINFO( m_nSkin ), 10 ),}}
===SendPropString===
===SendPropString===
{{ccexample||SendPropString( SENDINFO( m_szTeamname ) ),}}
{{CCExample||SendPropString( SENDINFO( m_szTeamname ) ),}}
===SendPropArray3===
===SendPropArray3===
{{ccexample||SendPropArray3( SENDINFO_ARRAY3( m_bAlive ), SendPropInt( SENDINFO_ARRAY(m_bAlive), 1, SPROP_UNSIGNED ) ),}}
{{CCExample||SendPropArray3( SENDINFO_ARRAY3( m_bAlive ), SendPropInt( SENDINFO_ARRAY(m_bAlive), 1, SPROP_UNSIGNED ) ),}}


{{ccexample||SendPropArray3( SENDINFO_ARRAY3( m_hMyWeapons ), SendPropEHandle( SENDINFO_ARRAY(m_hMyWeapons) ) ),}}
{{CCExample||SendPropArray3( SENDINFO_ARRAY3( m_hMyWeapons ), SendPropEHandle( SENDINFO_ARRAY(m_hMyWeapons) ) ),}}
===SendPropDataTable===
===SendPropDataTable===
{{ccexample||SendPropDataTable( SENDINFO_DT( m_Local ), &REFERENCE_SEND_TABLE(DT_Local) ),}}
{{CCExample||SendPropDataTable( SENDINFO_DT( m_Local ), &REFERENCE_SEND_TABLE(DT_Local) ),}}


{{ccexample||SendPropDataTable( SENDINFO_DT( m_HL2Local ), &REFERENCE_SEND_TABLE(DT_HL2Local), SendProxy_SendLocalDataTable ),}}
{{CCExample||SendPropDataTable( SENDINFO_DT( m_HL2Local ), &REFERENCE_SEND_TABLE(DT_HL2Local), SendProxy_SendLocalDataTable ),}}
===SendPropExclude===
===SendPropExclude===
{{ccexample||SendPropExclude( "DT_BaseAnimating", "m_flPoseParameter" ),}}
{{CCExample||SendPropExclude( "DT_BaseAnimating", "m_flPoseParameter" ),}}
==sendproxy.h==
==sendproxy.h==
===SendPropBool===
===SendPropBool===
{{ccexample||SendPropBool( SENDINFO( m_bClearReload ) ),}}
{{CCExample||SendPropBool( SENDINFO( m_bClearReload ) ),}}
===SendPropEHandle===
===SendPropEHandle===
{{ccexample||SendPropEHandle( SENDINFO( m_hPlayer ) ),}}
{{CCExample||SendPropEHandle( SENDINFO( m_hPlayer ) ),}}
===SendPropIntWithMinusOneFlag===
===SendPropIntWithMinusOneFlag===
{{ccexample||SendPropIntWithMinusOneFlag( SENDINFO( m_iClip1 ), 8 ),}}
{{CCExample||SendPropIntWithMinusOneFlag( SENDINFO( m_iClip1 ), 8 ),}}
===SendPropTime===
===SendPropTime===
{{ccexample||SendPropTime( SENDINFO( m_flStartTime ) ),}}
{{CCExample||SendPropTime( SENDINFO( m_flStartTime ) ),}}
===SendPropPredictableId===
===SendPropPredictableId===
{{ccexample||SendPropPredictableId( SENDINFO( m_PredictableID ) ),}}
{{CCExample||SendPropPredictableId( SENDINFO( m_PredictableID ) ),}}
===SendPropStringT===
===SendPropStringT===
{{note|RecvTable should use RecvPropString.}}
{{note|RecvTable should use RecvPropString.}}
{{ccexample||SendPropStringT( SENDINFO( m_SoundName ) ),}}
{{CCExample||SendPropStringT( SENDINFO( m_SoundName ) ),}}
==dt_utlvector_send.h==
==dt_utlvector_send.h==
===SendPropUtlVector===
===SendPropUtlVector===
{{ccexample||SendPropUtlVector( SENDINFO_UTLVECTOR( m_hActorList ), MAX_ACTORS_IN_SCENE, SendPropEHandle( NULL, 0 ) ),}}
{{CCExample||SendPropUtlVector( SENDINFO_UTLVECTOR( m_hActorList ), MAX_ACTORS_IN_SCENE, SendPropEHandle( NULL, 0 ) ),}}
[[Category:Programming]]
[[Category:Programming]]

Revision as of 19:17, 19 January 2009

dt_send.h

SendPropFloat

Example: SendPropFloat( SENDINFO(m_flSpriteScale ), 8, SPROP_ROUNDUP, 0.0f, MAX_SPRITE_SCALE),

SendPropVector

Example: SendPropVector( SENDINFO( m_vInitialVelocity ),


Example: SendPropVector( SENDINFO( m_vecStartPosition ), 0, SPROP_NOSCALE ),

SendPropAngle

Example: SendPropAngle( SENDINFO_VECTORELEM( m_angRotation, 0 ), 13 ),

SendPropQAngles

Example: SendPropQAngles( SENDINFO( m_angRotation ), 10 ),


Example: SendPropQAngles( SENDINFO( m_angRotation ), 13, SPROP_CHANGES_OFTEN, SendProxy_Angles ),

SendPropInt

Example: SendPropInt( SENDINFO( m_nNumBeamEnts ), 5, SPROP_UNSIGNED ),


Example: SendPropInt( SENDINFO( m_nSkin ), 10 ),

SendPropString

Example: SendPropString( SENDINFO( m_szTeamname ) ),

SendPropArray3

Example: SendPropArray3( SENDINFO_ARRAY3( m_bAlive ), SendPropInt( SENDINFO_ARRAY(m_bAlive), 1, SPROP_UNSIGNED ) ),


Example: SendPropArray3( SENDINFO_ARRAY3( m_hMyWeapons ), SendPropEHandle( SENDINFO_ARRAY(m_hMyWeapons) ) ),

SendPropDataTable

Example: SendPropDataTable( SENDINFO_DT( m_Local ), &REFERENCE_SEND_TABLE(DT_Local) ),


Example: SendPropDataTable( SENDINFO_DT( m_HL2Local ), &REFERENCE_SEND_TABLE(DT_HL2Local), SendProxy_SendLocalDataTable ),

SendPropExclude

Example: SendPropExclude( "DT_BaseAnimating", "m_flPoseParameter" ),

sendproxy.h

SendPropBool

Example: SendPropBool( SENDINFO( m_bClearReload ) ),

SendPropEHandle

Example: SendPropEHandle( SENDINFO( m_hPlayer ) ),

SendPropIntWithMinusOneFlag

Example: SendPropIntWithMinusOneFlag( SENDINFO( m_iClip1 ), 8 ),

SendPropTime

Example: SendPropTime( SENDINFO( m_flStartTime ) ),

SendPropPredictableId

Example: SendPropPredictableId( SENDINFO( m_PredictableID ) ),

SendPropStringT

Note.pngNote:RecvTable should use RecvPropString.

Example: SendPropStringT( SENDINFO( m_SoundName ) ),

dt_utlvector_send.h

SendPropUtlVector

Example: SendPropUtlVector( SENDINFO_UTLVECTOR( m_hActorList ), MAX_ACTORS_IN_SCENE, SendPropEHandle( NULL, 0 ) ),