re3/src/modelinfo/PedModelInfo.h
2020-05-17 15:16:12 +02:00

52 lines
1 KiB
C++

#pragma once
#include "ClumpModelInfo.h"
#include "PedType.h"
#include "PedStats.h"
enum PedNode {
PED_TORSO = 0, // has no bone!
PED_MID,
PED_HEAD,
PED_UPPERARML,
PED_UPPERARMR,
PED_HANDL,
PED_HANDR,
PED_UPPERLEGL,
PED_UPPERLEGR,
PED_FOOTL,
PED_FOOTR,
PED_LOWERLEGR,
PED_LOWERLEGL,
PED_FOREARML,
PED_FOREARMR,
PED_CLAVICLEL,
PED_CLAVICLER,
PED_NECK,
PED_NODE_MAX
};
class CPedModelInfo : public CClumpModelInfo
{
public:
uint32 m_animGroup;
ePedType m_pedType;
ePedStats m_pedStatType;
uint32 m_carsCanDrive;
CColModel *m_hitColModel;
int8 radio1, radio2;
static RwObjectNameIdAssocation m_pPedIds[PED_NODE_MAX];
CPedModelInfo(void) : CClumpModelInfo(MITYPE_PED) { m_hitColModel = nil; }
~CPedModelInfo(void) { delete m_hitColModel; }
void DeleteRwObject(void);
void SetClump(RpClump *);
void CreateHitColModelSkinned(RpClump *clump);
CColModel *GetHitColModel(void) { return m_hitColModel; }
CColModel *AnimatePedColModelSkinned(RpClump *clump);
CColModel *AnimatePedColModelSkinnedWorld(RpClump *clump);
};