View Single Post
Re: Hi I'm new and have some question !
Old
  (#25)
cruft
Guest
 
Status:
Posts: n/a
Default Re: Hi I'm new and have some question ! - 15-03-2004

Quote:
Originally Posted by Pierre-Marie Baty
I think if the guy who did the JoeBot port for metamod missed this out then there must be plenty of things missing as well. If there's indeed a compile-time option for metamod then the correct code will look like this:

Code:
#ifdef METAMOD
CALL_GAME_ENTITY (PLID, "player", &pBotEdict->v);
#else
player (&pBotEdict->v);
#endif
I'm sure there are other problems like this one.
Well, it kinda looks like that but it's more like:

Code:
#ifndef USE_METAMOD
#define CALL_GAME_ENTITY(plid, entStr, pev) UTIL_CallGameEntity(entStr, pev)
#endif /* USE_METAMOD */
plid is ignored when compiling a standard dll. The code at sourceforge compiles both a metamod and standard dll based on the USE_METAMOD define. The entire codebase is free to look at in context at sourceforge which will make more sense then posted code snippets.
  
Reply With Quote