From 0a9d9f8a8daf24672cd09489cf402a72b93535fe Mon Sep 17 00:00:00 2001 From: meatspace Date: Sat, 8 Aug 2026 16:46:36 -0500 Subject: [PATCH] add detail shapes support why not --- sp/src/game/client/detailobjectsystem.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sp/src/game/client/detailobjectsystem.cpp b/sp/src/game/client/detailobjectsystem.cpp index 726e2cd72c6..b61a0364fd4 100644 --- a/sp/src/game/client/detailobjectsystem.cpp +++ b/sp/src/game/client/detailobjectsystem.cpp @@ -26,7 +26,7 @@ #include #include "tier0/valve_minmax_on.h" -#if defined(DOD_DLL) || defined(CSTRIKE_DLL) +#if defined(DOD_DLL) || defined(CSTRIKE_DLL) || defined(MAPBASE) #define USE_DETAIL_SHAPES #endif @@ -51,10 +51,10 @@ struct model_t; ConVar cl_detaildist( "cl_detaildist", "1200", 0, "Distance at which detail props are no longer visible" ); ConVar cl_detailfade( "cl_detailfade", "400", 0, "Distance across which detail props fade in" ); #if defined( USE_DETAIL_SHAPES ) -ConVar cl_detail_max_sway( "cl_detail_max_sway", "0", FCVAR_ARCHIVE, "Amplitude of the detail prop sway" ); -ConVar cl_detail_avoid_radius( "cl_detail_avoid_radius", "0", FCVAR_ARCHIVE, "radius around detail sprite to avoid players" ); -ConVar cl_detail_avoid_force( "cl_detail_avoid_force", "0", FCVAR_ARCHIVE, "force with which to avoid players ( in units, percentage of the width of the detail sprite )" ); -ConVar cl_detail_avoid_recover_speed( "cl_detail_avoid_recover_speed", "0", FCVAR_ARCHIVE, "how fast to recover position after avoiding players" ); +ConVar cl_detail_max_sway( "cl_detail_max_sway", "1", FCVAR_ARCHIVE, "Amplitude of the detail prop sway" ); +ConVar cl_detail_avoid_radius( "cl_detail_avoid_radius", "10", FCVAR_ARCHIVE, "radius around detail sprite to avoid players" ); +ConVar cl_detail_avoid_force( "cl_detail_avoid_force", "0.4", FCVAR_ARCHIVE, "force with which to avoid players ( in units, percentage of the width of the detail sprite )" ); +ConVar cl_detail_avoid_recover_speed( "cl_detail_avoid_recover_speed", "2", FCVAR_ARCHIVE, "how fast to recover position after avoiding players" ); #endif // Per detail instance information