View Full Version : some more questions :)
fretn
18th August 2002, 11:48
1-
_public.h
_local.h
what's the difference ?
2- ent->die => what actually happens at this event, is the entity unlinked ?
3- where can I store data that has to be "remembered" by the server when a new map is loaded ?
thanks again :grin:
fretn
digibob
18th August 2002, 14:28
_local.h (e.g. cg_local.h)
only referenced within this module, i.e. for cg_local.h, only stuff used by the client module
_public.h
stuff that other modules may need, but are defined not in the normal place for that module, but afaics, none of the other modules do #include them so... *shrug*
fretn
19th August 2002, 10:02
danka :smile:
bani
19th August 2002, 11:30
2- ent->die => what actually happens at this event, is the entity unlinked ?
3- where can I store data that has to be "remembered" by the server when a new map is loaded ?
2- i think its up to the individual die functions to determine whether to unlink / free the entity. there are a lot of *_die functions in g_props.c for examples.
3- you want to use trap_Cvar_Set(), look at how g_session.c does it.
fretn
19th August 2002, 18:47
thanks
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.