View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-14-2012 , 15:37   Re: Rage SubModule: ColorChat
Reply With Quote #24

They are 2 different structs.
But one member of edict_s is entvars_s v, that's all, no conversion, use the more convenient one.
As rage offers index_to_entvars (basically if you have CBaseEntity*pEntity it retrieved pEntity->pev), i felt easier to use that one.


See last member :
Code:
struct edict_s
{
	qboolean	free;
	int			serialnumber;
	link_t		area;				// linked to a division node or leaf
	
	int			headnode;			// -1 to use normal leaf check
	int			num_leafs;
	short		leafnums[MAX_ENT_LEAFS];

	float		freetime;			// sv.time when the object was freed

	void*		pvPrivateData;		// Alloced and freed by engine, used by DLLs

	entvars_t	v;					// C exported fields from progs

	// other fields from progs come immediately after
};
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 06-14-2012 at 15:39.
ConnorMcLeod is offline