From 1bd7589916fc7e49f3f3a2449842d2c558d45f6b Mon Sep 17 00:00:00 2001 From: Sen66 Date: Fri, 30 Mar 2018 21:53:30 +0200 Subject: [PATCH] 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. --- public/datacache/imdlcache.h | 1 + public/engine/ivmodelinfo.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/datacache/imdlcache.h b/public/datacache/imdlcache.h index 9511a2a8..ba7fcc66 100644 --- a/public/datacache/imdlcache.h +++ b/public/datacache/imdlcache.h @@ -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; diff --git a/public/engine/ivmodelinfo.h b/public/engine/ivmodelinfo.h index 11b918dd..2ba2e542 100644 --- a/public/engine/ivmodelinfo.h +++ b/public/engine/ivmodelinfo.h @@ -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;