实体

模型信息 CModelInfo

按 id 查模型信息与车型判断

CModelInfo.h

按模型 id 查 CBaseModelInfo*;换皮 / 判断车型常用。

按 id 取模型信息

GetModelInfo / ms_modelInfoPtrs
static CBaseModelInfo* GetModelInfo(int modelId);
static CBaseModelInfo** ms_modelInfoPtrs;
static const int& ms_modelInfoCount;

按名字取模型

GetModelInfo(name) / GetModelInfoFromHashKey
static CBaseModelInfo* GetModelInfo(const char* name, int* modelId);
static CBaseModelInfo* GetModelInfo(const char* name, int minModelId, int maxModelId);
static CBaseModelInfo* GetModelInfoUInt16(const char* name, int* modelId);
static CBaseModelInfo* GetModelInfoFromHashKey(unsigned int arg0, int* modelId);

判断行人 / 载具

IsPedModel / IsVehicleModel
static bool IsPedModel(int modelId);
static bool IsVehicleModel(int modelId);

判断载具子类

GetVehicleModelType / IsCarModel / IsHeliModel
static eVehicleType GetVehicleModelType(int modelId);
static bool IsBikeModel(int modelId);
static bool IsBmxModel(int modelId);
static bool IsBoatModel(int modelId);
static bool IsCarModel(int modelId);
static bool IsHeliModel(int modelId);
static bool IsMonsterTruckModel(int modelId);
static bool IsPlaneModel(int modelId);
static bool IsQuadBikeModel(int modelId);
static bool IsTrailerModel(int modelId);
static bool IsTrainModel(int modelId);

遍历同类型模型

FindNextModel
static int FindNextModel(eModelInfoType type, int startModelId, bool searchForward = true, bool warpAround = true);

On this page