Changeset 75

Show
Ignore:
Timestamp:
25/11/2005 01:01:17 (5 years ago)
Author:
niluje
Message:

Update HLSDK - ClientCvarQuery2

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Mirrors/Hlsdk/multiplayer/engine/eiface.h

    r41 r75  
    22* 
    33*       Copyright (c) 1999, Valve LLC. All rights reserved. 
    4 *        
    5 *       This product contains software technology licensed from Id  
    6 *       Software, Inc. ("Id Technology").  Id Technology (c) 1996 Id Software, Inc.  
     4* 
     5*       This product contains software technology licensed from Id 
     6*       Software, Inc. ("Id Technology").  Id Technology (c) 1996 Id Software, Inc. 
    77*       All Rights Reserved. 
    88* 
     
    8686 
    8787// CD audio status 
    88 typedef struct  
     88typedef struct 
    8989{ 
    9090        int     fPlaying;// is sound playing right now? 
     
    187187        void            (*pfnClientPrintf)                      ( edict_t* pEdict, PRINT_TYPE ptype, const char *szMsg ); // JOHN: engine callbacks so game DLL can print messages to individual clients 
    188188        void            (*pfnServerPrint)                       ( const char *szMsg ); 
    189         const char *(*pfnCmd_Args)                              ( void );               // these 3 added  
    190         const char *(*pfnCmd_Argv)                              ( int argc );   // so game DLL can easily  
     189        const char *(*pfnCmd_Args)                              ( void );               // these 3 added 
     190        const char *(*pfnCmd_Argv)                              ( int argc );   // so game DLL can easily 
    191191        int                     (*pfnCmd_Argc)                          ( void );               // access client 'cmd' strings 
    192192        void            (*pfnGetAttachment)                     (const edict_t *pEdict, int iAttachment, float *rgflOrigin, float *rgflAngles ); 
     
    269269        // PSV: Added for CZ training map 
    270270//      const char *(*pfnKeyNameForBinding)                                     ( const char* pBinding ); 
    271          
     271 
    272272        sequenceEntry_s*        (*pfnSequenceGet)                               ( const char* fileName, const char* entryName ); 
    273273        sentenceEntry_s*        (*pfnSequencePickSentence)              ( const char* groupName, int pickMethod, int *picked ); 
     
    292292        void            (*pfnResetTutorMessageDecayData)                ( void ); 
    293293        void            (*pfnQueryClientCvarValue)                              ( const edict_t *player, const char *cvarName ); 
     294        void            (*pfnQueryClientCvarValue2)                             ( const edict_t *player, const char *cvarName, int requestID ); 
    294295} enginefuncs_t; 
    295296 
     
    316317#define MAX_LEVEL_CONNECTIONS   16              // These are encoded in the lower 16bits of ENTITYTABLE->flags 
    317318 
    318 typedef struct  
     319typedef struct 
    319320{ 
    320321        int                     id;                             // Ordinal ID of this entity (used for entity <--> pointer conversions) 
     
    336337 
    337338#ifdef _WIN32 
    338 typedef  
     339typedef 
    339340#endif 
    340341struct saverestore_s 
     
    360361        char            szCurrentMapName[32];   // To check global entities 
    361362 
    362 }  
     363} 
    363364#ifdef _WIN32 
    364 SAVERESTOREDATA  
     365SAVERESTOREDATA 
    365366#endif 
    366367; 
     
    404405#define FTYPEDESC_GLOBAL                        0x0001          // This field is masked for global entity save/restore 
    405406 
    406 typedef struct  
     407typedef struct 
    407408{ 
    408409        FIELDTYPE               fieldType; 
     
    415416#define ARRAYSIZE(p)            (sizeof(p)/sizeof(p[0])) 
    416417 
    417 typedef struct  
     418typedef struct 
    418419{ 
    419420        // Initialize/shutdown the game (one-time call after loading of game .dll ) 
    420         void                    (*pfnGameInit)                  ( void );                                
     421        void                    (*pfnGameInit)                  ( void ); 
    421422        int                             (*pfnSpawn)                             ( edict_t *pent ); 
    422423        void                    (*pfnThink)                             ( edict_t *pent ); 
     
    437438 
    438439        qboolean                (*pfnClientConnect)             ( edict_t *pEntity, const char *pszName, const char *pszAddress, char szRejectReason[ 128 ] ); 
    439          
     440 
    440441        void                    (*pfnClientDisconnect)  ( edict_t *pEntity ); 
    441442        void                    (*pfnClientKill)                ( edict_t *pEntity ); 
     
    455456 
    456457         // Returns string describing current .dll.  E.g., TeamFotrress 2, Half-Life 
    457         const char     *(*pfnGetGameDescription)( void );      
     458        const char     *(*pfnGetGameDescription)( void ); 
    458459 
    459460        // Notify dll about a player customization. 
    460         void            (*pfnPlayerCustomization) ( edict_t *pEntity, customization_t *pCustom );   
     461        void            (*pfnPlayerCustomization) ( edict_t *pEntity, customization_t *pCustom ); 
    461462 
    462463        // Spectator funcs 
     
    509510typedef struct 
    510511{ 
    511         // Called right before the object's memory is freed.  
     512        // Called right before the object's memory is freed. 
    512513        // Calls its destructor. 
    513514        void                    (*pfnOnFreeEntPrivateData)(edict_t *pEnt); 
     
    515516        int                             (*pfnShouldCollide)( edict_t *pentTouched, edict_t *pentOther ); 
    516517        void                    (*pfnCvarValue)( const edict_t *pEnt, const char *value ); 
     518        void                    (*pfnCvarValue2)( const edict_t *pEnt, int requestID, const char *cvarName, const char *value ); 
    517519} NEW_DLL_FUNCTIONS; 
    518520typedef int     (*NEW_DLL_FUNCTIONS_FN)( NEW_DLL_FUNCTIONS *pFunctionTable, int *interfaceVersion );