--
[ Picked text/plain from multipart/alternative ]
Is this for specific types of entities?

For BG2 I was using messages to change hud data, Tjoppen used this instead

// Global list of client side team entities
CUtlVector< C_Flag * > g_Flags;

//=================================================================================================
// C_Team functionality

//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
C_Flag::C_Flag()
{
    m_sFlagName[0] = 0;    //nullterm just in case
    // Add myself to the global list of team entities
    g_Flags.AddToTail( this );
}

C_Flag::~C_Flag()
{
    g_Flags.FindAndRemove( this );
}


We can then use g_Flags anywhere we include the c_flag header.

--
Draco
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to