Quote:
Originally Posted by ConnorMcLeod
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 )
__________________