mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
Update fieldtype_t & Add CPhysSurfacePropertiesVehicle
This commit is contained in:
@ -121,6 +121,7 @@ typedef enum _fieldtypes : uint8
|
|||||||
FIELD_ENGINE_TICK,
|
FIELD_ENGINE_TICK,
|
||||||
FIELD_WORLD_GROUP_ID,
|
FIELD_WORLD_GROUP_ID,
|
||||||
FIELD_GLOBALSYMBOL,
|
FIELD_GLOBALSYMBOL,
|
||||||
|
FIELD_HNMGRAPHDEFINITION,
|
||||||
|
|
||||||
FIELD_TYPECOUNT
|
FIELD_TYPECOUNT
|
||||||
} fieldtype_t;
|
} fieldtype_t;
|
||||||
|
@ -95,7 +95,6 @@ public:
|
|||||||
m_thickness = 0.1f;
|
m_thickness = 0.1f;
|
||||||
m_softContactFrequency = 0.0f;
|
m_softContactFrequency = 0.0f;
|
||||||
m_softContactDampingRatio = 0.0f;
|
m_softContactDampingRatio = 0.0f;
|
||||||
m_wheelDrag = 0.0f;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -105,7 +104,20 @@ public:
|
|||||||
float m_thickness;
|
float m_thickness;
|
||||||
float m_softContactFrequency;
|
float m_softContactFrequency;
|
||||||
float m_softContactDampingRatio;
|
float m_softContactDampingRatio;
|
||||||
|
};
|
||||||
|
|
||||||
|
class CPhysSurfacePropertiesVehicle
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CPhysSurfacePropertiesVehicle()
|
||||||
|
{
|
||||||
|
m_wheelDrag = 0.0f;
|
||||||
|
m_wheelFrictionScale = 0.0f;
|
||||||
|
}
|
||||||
|
|
||||||
|
public:
|
||||||
float m_wheelDrag;
|
float m_wheelDrag;
|
||||||
|
float m_wheelFrictionScale;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CPhysSurfacePropertiesSoundNames
|
class CPhysSurfacePropertiesSoundNames
|
||||||
@ -176,6 +188,7 @@ public:
|
|||||||
bool m_bHidden;
|
bool m_bHidden;
|
||||||
CUtlString m_description;
|
CUtlString m_description;
|
||||||
CPhysSurfacePropertiesPhysics m_physics;
|
CPhysSurfacePropertiesPhysics m_physics;
|
||||||
|
CPhysSurfacePropertiesVehicle m_vehicleParams;
|
||||||
CPhysSurfacePropertiesSoundNames m_audioSounds;
|
CPhysSurfacePropertiesSoundNames m_audioSounds;
|
||||||
CPhysSurfacePropertiesAudio m_audioParams;
|
CPhysSurfacePropertiesAudio m_audioParams;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user