--
[ Picked text/plain from multipart/alternative ]
It isn't possible with the currently available proxy:
void RecvProxy_StringToString( const CRecvProxyData *pData, void *pStruct,
void *pOut )
{
char *pStrOut = (char*)pOut;
if ( pData->m_pRecvProp->m_StringBufferSize <= 0 )
{
return;
}
for ( int i=0; i < pData->m_pRecvProp->m_StringBufferSize; i++ )
{
pStrOut[i] = pData->m_Value.m_pString[i];
if(pStrOut[i] == 0)
break;
}
pStrOut[pData->m_pRecvProp->m_StringBufferSize-1] = 0;
}
what you could do is make a new proxy that creates a string based on
m_StringBufferSize...but b4 copying the data to pStrOut, delete it, so you
avoid a memory leak...this deletion should be done on entity deconstructor
too
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders