From 71f39a043c93346904b8454c023aa32f7de96ed4 Mon Sep 17 00:00:00 2001 From: Thomas Kain Date: Tue, 18 Nov 2025 23:32:30 -0500 Subject: [PATCH 1/3] Allow the usage of HWM models --- src/game/server/tf/tf_player.cpp | 2 -- src/game/shared/baseplayer_shared.cpp | 15 +++++++-------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/game/server/tf/tf_player.cpp b/src/game/server/tf/tf_player.cpp index fa944e35611..8e8f96aa7b2 100644 --- a/src/game/server/tf/tf_player.cpp +++ b/src/game/server/tf/tf_player.cpp @@ -2862,7 +2862,6 @@ void CTFPlayer::PrecachePlayerModels( void ) PrecacheModel( pszModel ); } -/* if ( !IsX360() ) { // Precache the hardware facial morphed models as well. @@ -2872,7 +2871,6 @@ void CTFPlayer::PrecachePlayerModels( void ) PrecacheModel( pszHWMModel ); } } -*/ } // Always precache the silly gibs. diff --git a/src/game/shared/baseplayer_shared.cpp b/src/game/shared/baseplayer_shared.cpp index abbd3196495..5a4e206bf4e 100644 --- a/src/game/shared/baseplayer_shared.cpp +++ b/src/game/shared/baseplayer_shared.cpp @@ -93,15 +93,14 @@ ConVar mp_usehwmmodels( "mp_usehwmmodels", "0", NULL, "Enable the use of the hw bool UseHWMorphModels() { -// #ifdef CLIENT_DLL -// if ( mp_usehwmmodels.GetInt() == 0 ) -// return g_pMaterialSystemHardwareConfig->HasFastVertexTextures(); -// -// return mp_usehwmmodels.GetInt() > 0; -// #else -// return false; -// #endif +#ifdef CLIENT_DLL + if ( mp_usehwmmodels.GetInt() == 0 ) + return g_pMaterialSystemHardwareConfig->HasFastVertexTextures(); + + return mp_usehwmmodels.GetInt() > 0; +#else return false; +#endif } void CopySoundNameWithModifierToken( char *pchDest, const char *pchSource, int nMaxLenInChars, const char *pchToken ) From 6e87d79c077b4d1071b41ec85778e0aadf1df70c Mon Sep 17 00:00:00 2001 From: Thomas Kain Date: Tue, 18 Nov 2025 23:32:54 -0500 Subject: [PATCH 2/3] Allow the usage of HWM VCDs --- src/game/client/c_sceneentity.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/game/client/c_sceneentity.cpp b/src/game/client/c_sceneentity.cpp index 1ee99399ff4..056b61a8188 100644 --- a/src/game/client/c_sceneentity.cpp +++ b/src/game/client/c_sceneentity.cpp @@ -83,10 +83,9 @@ char const *C_SceneEntity::GetSceneFileName() ConVar mp_usehwmvcds( "mp_usehwmvcds", "0", NULL, "Enable the use of the hw morph vcd(s). (-1 = never, 1 = always, 0 = based upon GPU)" ); // -1 = never, 0 = if hasfastvertextextures, 1 = always bool UseHWMorphVCDs() { -// if ( mp_usehwmvcds.GetInt() == 0 ) -// return g_pMaterialSystemHardwareConfig->HasFastVertexTextures(); -// return mp_usehwmvcds.GetInt() > 0; - return false; + if ( mp_usehwmvcds.GetInt() == 0 ) + return g_pMaterialSystemHardwareConfig->HasFastVertexTextures(); + return mp_usehwmvcds.GetInt() > 0; } //----------------------------------------------------------------------------- From caf70c25949ff2d8e8de334f3d03a80d2b05d228 Mon Sep 17 00:00:00 2001 From: Thomas Kain Date: Tue, 18 Nov 2025 23:33:45 -0500 Subject: [PATCH 3/3] Disable HWM models and their VCDs by default --- src/game/client/c_sceneentity.cpp | 2 +- src/game/shared/baseplayer_shared.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/c_sceneentity.cpp b/src/game/client/c_sceneentity.cpp index 056b61a8188..d6baa846a15 100644 --- a/src/game/client/c_sceneentity.cpp +++ b/src/game/client/c_sceneentity.cpp @@ -80,7 +80,7 @@ char const *C_SceneEntity::GetSceneFileName() return g_pStringTableClientSideChoreoScenes->GetString( m_nSceneStringIndex ); } -ConVar mp_usehwmvcds( "mp_usehwmvcds", "0", NULL, "Enable the use of the hw morph vcd(s). (-1 = never, 1 = always, 0 = based upon GPU)" ); // -1 = never, 0 = if hasfastvertextextures, 1 = always +ConVar mp_usehwmvcds( "mp_usehwmvcds", "-1", NULL, "Enable the use of the hw morph vcd(s). (-1 = never, 1 = always, 0 = based upon GPU)" ); // -1 = never, 0 = if hasfastvertextextures, 1 = always bool UseHWMorphVCDs() { if ( mp_usehwmvcds.GetInt() == 0 ) diff --git a/src/game/shared/baseplayer_shared.cpp b/src/game/shared/baseplayer_shared.cpp index 5a4e206bf4e..9c1e1a86e88 100644 --- a/src/game/shared/baseplayer_shared.cpp +++ b/src/game/shared/baseplayer_shared.cpp @@ -88,7 +88,7 @@ #endif #ifdef CLIENT_DLL -ConVar mp_usehwmmodels( "mp_usehwmmodels", "0", NULL, "Enable the use of the hw morph models. (-1 = never, 1 = always, 0 = based upon GPU)" ); // -1 = never, 0 = if hasfastvertextextures, 1 = always +ConVar mp_usehwmmodels( "mp_usehwmmodels", "-1", NULL, "Enable the use of the hw morph models. (-1 = never, 1 = always, 0 = based upon GPU)" ); // -1 = never, 0 = if hasfastvertextextures, 1 = always #endif bool UseHWMorphModels()