Talk:SendProp

From Valve Developer Community
Jump to: navigation, search

Hi

What do these ints / floats mean inside the sendprops?

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

What does 0 stand for here? Did I miss something? --Mflux 06:38, 9 Jul 2008 (PDT)

If you move your cursor to the list of arguments and hit ctrl+space, Visual Studio will tell you what each one means. --TomEdwards 06:44, 9 Jul 2008 (PDT)
Hi Tom, thanks for the tip. It tells me what each one is, but not what it means. For example.. from SendPropInt
 	int offset,
 	int sizeofVar,
 	int nBits,
 	int flags,
What is offset? Offset what? How can I tell size of Var? What is it for? What are the nBits? What is it for and why would I use it? --Mflux 06:46, 12 Jul 2008 (PDT)
You don't need to worry about sizeofVar since it's filled in by the SENDINFO macro. But nBits...I don't know. I've never used the Vector prop before. Try asking on hlcoders or the forums. --TomEdwards 09:51, 12 Jul 2008 (PDT)