2019-06-18 07:50:26 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-06-19 16:35:51 +00:00
|
|
|
class CObject;
|
|
|
|
|
|
|
|
class CObjectInfo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
float m_fMass;
|
|
|
|
float m_fTurnMass;
|
|
|
|
float m_fAirResistance;
|
|
|
|
float m_fElasticity;
|
|
|
|
float m_fBuoyancy;
|
|
|
|
float m_fUprootLimit;
|
|
|
|
float m_fCollisionDamageMultiplier;
|
|
|
|
uint8 m_nCollisionDamageEffect;
|
|
|
|
uint8 m_nSpecialCollisionResponseCases;
|
|
|
|
bool m_bCameraToAvoidThisObject;
|
|
|
|
};
|
2020-05-10 15:49:33 +00:00
|
|
|
VALIDATE_SIZE(CObjectInfo, 0x20);
|
2019-06-19 16:35:51 +00:00
|
|
|
|
2019-06-18 07:50:26 +00:00
|
|
|
class CObjectData
|
|
|
|
{
|
2019-06-19 16:35:51 +00:00
|
|
|
static CObjectInfo ms_aObjectInfo[NUMOBJECTINFO];
|
2019-06-18 07:50:26 +00:00
|
|
|
public:
|
|
|
|
static void Initialise(const char *filename);
|
2019-06-19 16:35:51 +00:00
|
|
|
static void SetObjectData(int32 modelId, CObject &object);
|
2019-06-18 07:50:26 +00:00
|
|
|
};
|