some more questions :)


(fretn) #1

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) #2

_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) #3

danka :smile:


(bani) #4

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) #5

thanks