SendProp: Difference between revisions
m (categorize) |
Thunder4ik (talk | contribs) m (clean up, added deadend tag) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Dead end|date=January 2024}} | |||
==dt_send.h== | ==dt_send.h== | ||
===SendPropFloat=== | ===SendPropFloat=== | ||
{{ | {{CCExample||SendPropFloat( SENDINFO(m_flSpriteScale ), 8, SPROP_ROUNDUP, 0.0f, MAX_SPRITE_SCALE),}} | ||
===SendPropVector=== | ===SendPropVector=== | ||
{{ | {{CCExample||SendPropVector( SENDINFO( m_vInitialVelocity ),}} | ||
{{ | {{CCExample||SendPropVector( SENDINFO( m_vecStartPosition ), 0, SPROP_NOSCALE ),}} | ||
===SendPropAngle=== | ===SendPropAngle=== | ||
{{ | {{CCExample||SendPropAngle( SENDINFO_VECTORELEM( m_angRotation, 0 ), 13 ),}} | ||
===SendPropQAngles=== | ===SendPropQAngles=== | ||
{{ | {{CCExample||SendPropQAngles( SENDINFO( m_angRotation ), 10 ),}} | ||
{{ | {{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_nSkin ), 10 ),}} | ||
===SendPropString=== | ===SendPropString=== | ||
{{ | {{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_hMyWeapons ), SendPropEHandle( SENDINFO_ARRAY(m_hMyWeapons) ) ),}} | ||
===SendPropDataTable=== | ===SendPropDataTable=== | ||
{{ | {{CCExample||SendPropDataTable( SENDINFO_DT( m_Local ), &REFERENCE_SEND_TABLE(DT_Local) ),}} | ||
{{ | {{CCExample||SendPropDataTable( SENDINFO_DT( m_HL2Local ), &REFERENCE_SEND_TABLE(DT_HL2Local), SendProxy_SendLocalDataTable ),}} | ||
===SendPropExclude=== | ===SendPropExclude=== | ||
{{ | {{CCExample||SendPropExclude( "DT_BaseAnimating", "m_flPoseParameter" ),}} | ||
==sendproxy.h== | ==sendproxy.h== | ||
===SendPropBool=== | ===SendPropBool=== | ||
{{ | {{CCExample||SendPropBool( SENDINFO( m_bClearReload ) ),}} | ||
===SendPropEHandle=== | ===SendPropEHandle=== | ||
{{ | {{CCExample||SendPropEHandle( SENDINFO( m_hPlayer ) ),}} | ||
===SendPropIntWithMinusOneFlag=== | ===SendPropIntWithMinusOneFlag=== | ||
{{ | {{CCExample||SendPropIntWithMinusOneFlag( SENDINFO( m_iClip1 ), 8 ),}} | ||
===SendPropTime=== | ===SendPropTime=== | ||
{{ | {{CCExample||SendPropTime( SENDINFO( m_flStartTime ) ),}} | ||
===SendPropPredictableId=== | ===SendPropPredictableId=== | ||
{{ | {{CCExample||SendPropPredictableId( SENDINFO( m_PredictableID ) ),}} | ||
===SendPropStringT=== | ===SendPropStringT=== | ||
{{note|RecvTable should use RecvPropString.}} | {{note|RecvTable should use RecvPropString.}} | ||
{{ | {{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 ) ),}} | ||
[[Category: | |||
[[Category:Networking]] |
Latest revision as of 10:12, 21 January 2024



January 2024
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

Example: SendPropStringT( SENDINFO( m_SoundName ) ),
dt_utlvector_send.h
SendPropUtlVector
Example: SendPropUtlVector( SENDINFO_UTLVECTOR( m_hActorList ), MAX_ACTORS_IN_SCENE, SendPropEHandle( NULL, 0 ) ),