From abde2771829d4172269104f538d4b2e6dd6de6d7 Mon Sep 17 00:00:00 2001 From: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com> Date: Mon, 12 May 2025 01:41:54 +0300 Subject: [PATCH] Update fieldtype_t & Add CPhysSurfacePropertiesVehicle --- public/datamap.h | 1 + public/gametrace.h | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/public/datamap.h b/public/datamap.h index e4a236a9..f6edf18c 100644 --- a/public/datamap.h +++ b/public/datamap.h @@ -121,6 +121,7 @@ typedef enum _fieldtypes : uint8 FIELD_ENGINE_TICK, FIELD_WORLD_GROUP_ID, FIELD_GLOBALSYMBOL, + FIELD_HNMGRAPHDEFINITION, FIELD_TYPECOUNT } fieldtype_t; diff --git a/public/gametrace.h b/public/gametrace.h index 35cfc544..85ba4212 100644 --- a/public/gametrace.h +++ b/public/gametrace.h @@ -87,7 +87,6 @@ public: m_thickness = 0.1f; m_softContactFrequency = 0.0f; m_softContactDampingRatio = 0.0f; - m_wheelDrag = 0.0f; } public: @@ -97,7 +96,20 @@ public: float m_thickness; float m_softContactFrequency; float m_softContactDampingRatio; +}; + +class CPhysSurfacePropertiesVehicle +{ +public: + CPhysSurfacePropertiesVehicle() + { + m_wheelDrag = 0.0f; + m_wheelFrictionScale = 0.0f; + } + +public: float m_wheelDrag; + float m_wheelFrictionScale; }; class CPhysSurfacePropertiesSoundNames @@ -168,6 +180,7 @@ public: bool m_bHidden; CUtlString m_description; CPhysSurfacePropertiesPhysics m_physics; + CPhysSurfacePropertiesVehicle m_vehicleParams; CPhysSurfacePropertiesSoundNames m_audioSounds; CPhysSurfacePropertiesAudio m_audioParams; };