View Single Post
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 06-15-2012 , 05:44   Re: Rage SubModule: ColorChat
Reply With Quote #29

Quote:
Originally Posted by ConnorMcLeod View Post
In advance of what ?
For every information you gave me, of course.
I didn't ask without purpose, so every answer may be greatly appreciated though.

By the way, I made a few conversions, maybe someone needs that:

Code:
/* ** CPP file should contain */ extern edict_t *g_eNullEdict; /* ** H file should contain */ edict_t *g_eNullEdict; /* ** At ServerActivate_Post, g_eNullEdict will be pEdictList, which is the first argument from the DLL function */ /* ** Returns edict from index */ #define INT_TO_EDICT( i ) \     ( ( edict_t * ) ( g_eNullEdict + i ) ) /* ** Returns entvar from index */ #define INT_TO_ENTVAR( i ) \     ( &( INT_TO_EDICT( i ) -> v ) ) /* ** Returns index from edict */ #define EDICT_TO_INT( i ) \     ( ( int ) ( i - g_eNullEdict ) ) /* ** Returns entvar from edict */ #define EDICT_TO_ENTVAR( i ) \     ( &( i -> v ) ) /* ** Returns index from entvar */ #define ENTVAR_TO_INT( i ) \     ( EDICT_TO_INT( i -> pContainingEntity ) ) /* ** Returns edict from entvar */ #define ENTVAR_TO_EDICT( i ) \     ( i -> pContainingEntity )
__________________

Last edited by claudiuhks; 06-15-2012 at 05:48.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks