I found this in c_te_spritespray.cpp in cl_dll
PHP Code:
static inline void RecordSpriteSpray( const Vector& start, const Vector &direction,
int nModelIndex, int nSpeed, float flNoise, int nCount )
{
if ( !ToolsEnabled() )
return;
if ( clienttools->IsInRecordingMode() )
{
const model_t* pModel = (nModelIndex != 0) ? modelinfo->GetModel( nModelIndex ) : NULL;
const char *pModelName = pModel ? modelinfo->GetModelName( pModel ) : "";
KeyValues *msg = new KeyValues( "TempEntity" );
msg->SetInt( "te", TE_SPRITE_SPRAY );
msg->SetString( "name", "TE_SpriteSpray" );
msg->SetFloat( "time", gpGlobals->curtime );
msg->SetFloat( "originx", start.x );
msg->SetFloat( "originy", start.y );
msg->SetFloat( "originz", start.z );
msg->SetFloat( "directionx", direction.x );
msg->SetFloat( "directiony", direction.y );
msg->SetFloat( "directionz", direction.z );
msg->SetString( "model", pModelName );
msg->SetInt( "speed", nSpeed );
msg->SetFloat( "noise", flNoise );
msg->SetInt( "count", nCount );
ToolFramework_PostToolMessage( HTOOLHANDLE_INVALID, msg );
msg->deleteThis();
}
}
Does it help?
__________________