re3/src/modelinfo/PedModelInfo.h

53 lines
1 KiB
C
Raw Normal View History

2019-05-15 14:52:37 +00:00
#pragma once
#include "ClumpModelInfo.h"
2020-02-16 02:15:58 +00:00
#include "PedType.h"
2020-03-17 18:03:13 +00:00
#include "PedStats.h"
2019-05-15 14:52:37 +00:00
enum PedNode {
2020-05-09 15:05:26 +00:00
PED_TORSO = 0, // has no bone!
PED_MID,
2019-05-15 14:52:37 +00:00
PED_HEAD,
PED_UPPERARML,
PED_UPPERARMR,
PED_HANDL,
PED_HANDR,
PED_UPPERLEGL,
PED_UPPERLEGR,
PED_FOOTL,
PED_FOOTR,
PED_LOWERLEGR,
2020-05-09 15:05:26 +00:00
PED_LOWERLEGL,
PED_FOREARML,
PED_FOREARMR,
PED_CLAVICLEL,
PED_CLAVICLER,
PED_NECK,
PED_NODE_MAX
2019-05-15 14:52:37 +00:00
};
class CPedModelInfo : public CClumpModelInfo
{
public:
uint32 m_animGroup;
2020-02-16 02:15:58 +00:00
ePedType m_pedType;
2020-03-17 18:03:13 +00:00
ePedStats m_pedStatType;
2019-05-15 14:52:37 +00:00
uint32 m_carsCanDrive;
CColModel *m_hitColModel;
2020-05-10 11:08:02 +00:00
int8 radio1, radio2;
2019-05-15 14:52:37 +00:00
static RwObjectNameIdAssocation m_pPedIds[PED_NODE_MAX];
2019-05-15 14:52:37 +00:00
2020-05-10 11:08:02 +00:00
CPedModelInfo(void) : CClumpModelInfo(MITYPE_PED) { m_hitColModel = nil; }
~CPedModelInfo(void) { delete m_hitColModel; }
2019-05-15 14:52:37 +00:00
void DeleteRwObject(void);
void SetClump(RpClump *);
void CreateHitColModelSkinned(RpClump *clump);
2019-06-22 23:01:21 +00:00
CColModel *GetHitColModel(void) { return m_hitColModel; }
CColModel *AnimatePedColModelSkinned(RpClump *clump);
2020-05-10 11:08:02 +00:00
CColModel *AnimatePedColModelSkinnedWorld(RpClump *clump);
2019-05-15 14:52:37 +00:00
};