1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-03 16:13:22 +08:00

Fixed classes for latest csgo update 30/03/2018

Valve added static prop scaling and therefore they added new virtual functiongs to get the VCollide with a scale.
This commit is contained in:
Sen66 2018-03-30 21:53:30 +02:00
parent 1bea3d3b1e
commit 1bd7589916
2 changed files with 4 additions and 1 deletions

View File

@ -132,6 +132,7 @@ public:
// Gets at the various data associated with a MDL
virtual studiohdr_t *GetStudioHdr( MDLHandle_t handle ) = 0;
virtual studiohwdata_t *GetHardwareData( MDLHandle_t handle ) = 0;
virtual vcollide_t *GetVCollideScaled( MDLHandle_t handle, float flScale ) = 0;
virtual vcollide_t *GetVCollide( MDLHandle_t handle ) = 0;
virtual unsigned char *GetAnimBlock( MDLHandle_t handle, int nBlock ) = 0;

View File

@ -65,8 +65,10 @@ public:
// Returns name of model
virtual const char *GetModelName( const model_t *model ) const = 0;
virtual vcollide_t *GetVCollide( const model_t *model ) const = 0;
virtual vcollide_t *GetVCollideScaled( int modelindex, float flScale ) const = 0;
virtual vcollide_t *GetVCollideScaled( const model_t *model, float flScale ) const = 0;
virtual vcollide_t *GetVCollide( int modelindex ) const = 0;
virtual vcollide_t *GetVCollide( const model_t *model ) const = 0;
virtual void GetModelBounds( const model_t *model, Vector& mins, Vector& maxs ) const = 0;
virtual void GetModelRenderBounds( const model_t *model, Vector& mins, Vector& maxs ) const = 0;
virtual int GetModelFrameCount( const model_t *model ) const = 0;