Raised This Month: $ Target: $400
 0% 

Access to model struct


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 12-21-2009 , 09:55   Access to model struct
Reply With Quote #1

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            nameMAX_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          minsmaxs;
    
float           radius;

//
// brush model
//
    
int             firstmodelsurfacenummodelsurfaces;
    
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
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode