Is there a way to access to model struct as defined in hlsdk?
I mean to access this info
PHP Code:
typedef struct model_s
{
char name[ MAX_MODEL_NAME ];
qboolean needload; // bmodels and sprites don't cache normally
modtype_t type;
int numframes;
synctype_t synctype;
int flags;
//
// volume occupied by the model
//
vec3_t mins, maxs;
float radius;
//
// brush model
//
int firstmodelsurface, nummodelsurfaces;
int numsubmodels;
dmodel_t *submodels;
...
...
I guess it's possible via entity pdata, but I'm not sure
PHP Code:
struct cl_entity_s
qboolean player; // True if this entity is a "player"
int index; // Index into cl_entities ( should match actual slot, but not necessarily )
entity_state_t baseline; // The original state from which to delta during an uncompressed message
entity_state_t prevstate; // The state information from the penultimate message received from the server
entity_state_t curstate; // The state information from the last message received from server
...
...
...
struct model_s *model; // cl.model_precache[ curstate.modelindes ]; all visible entities have a model
struct efrag_s *efrag; // linked list of efrags
...
...
Thanks
__________________