I was looking at that code actually. Ideally I'd like a solution that let me query any kind of entity but I could probably live with specific ones.
Quoting Jason Houston <[EMAIL PROTECTED]>: > -- > [ 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 > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders