mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 12:06:07 +08:00
Update fieldtype_t & Add CPhysSurfacePropertiesVehicle
This commit is contained in:
@ -121,6 +121,7 @@ typedef enum _fieldtypes : uint8
|
||||
FIELD_ENGINE_TICK,
|
||||
FIELD_WORLD_GROUP_ID,
|
||||
FIELD_GLOBALSYMBOL,
|
||||
FIELD_HNMGRAPHDEFINITION,
|
||||
|
||||
FIELD_TYPECOUNT
|
||||
} fieldtype_t;
|
||||
|
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user