1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-20 04:26:03 +08:00

Update fieldtype_t & Add CPhysSurfacePropertiesVehicle

This commit is contained in:
GAMMACASE
2025-05-12 01:41:54 +03:00
parent 574143a0ce
commit 597349a1c4
2 changed files with 15 additions and 1 deletions

View File

@ -121,6 +121,7 @@ typedef enum _fieldtypes : uint8
FIELD_ENGINE_TICK,
FIELD_WORLD_GROUP_ID,
FIELD_GLOBALSYMBOL,
FIELD_HNMGRAPHDEFINITION,
FIELD_TYPECOUNT
} fieldtype_t;

View File

@ -95,7 +95,6 @@ public:
m_thickness = 0.1f;
m_softContactFrequency = 0.0f;
m_softContactDampingRatio = 0.0f;
m_wheelDrag = 0.0f;
}
public:
@ -105,7 +104,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
@ -176,6 +188,7 @@ public:
bool m_bHidden;
CUtlString m_description;
CPhysSurfacePropertiesPhysics m_physics;
CPhysSurfacePropertiesVehicle m_vehicleParams;
CPhysSurfacePropertiesSoundNames m_audioSounds;
CPhysSurfacePropertiesAudio m_audioParams;
};