2019-05-15 10:52:37 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ClumpModelInfo.h"
|
2020-02-15 21:15:58 -05:00
|
|
|
#include "PedType.h"
|
2020-03-17 14:03:13 -04:00
|
|
|
#include "PedStats.h"
|
2019-05-15 10:52:37 -04:00
|
|
|
|
|
|
|
enum PedNode {
|
2019-07-17 22:26:46 -04:00
|
|
|
PED_TORSO,
|
|
|
|
PED_MID, // Smid on PS2/PC, Storso on mobile/xbox
|
2019-05-15 10:52:37 -04:00
|
|
|
PED_HEAD,
|
|
|
|
PED_UPPERARML,
|
|
|
|
PED_UPPERARMR,
|
|
|
|
PED_HANDL,
|
|
|
|
PED_HANDR,
|
|
|
|
PED_UPPERLEGL,
|
|
|
|
PED_UPPERLEGR,
|
|
|
|
PED_FOOTL,
|
|
|
|
PED_FOOTR,
|
|
|
|
PED_LOWERLEGR,
|
2019-06-14 10:14:22 -04:00
|
|
|
PED_NODE_MAX// Not valid: PED_LOWERLEGL
|
2019-05-15 10:52:37 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
class CPedModelInfo : public CClumpModelInfo
|
|
|
|
{
|
|
|
|
public:
|
2019-07-03 12:34:42 -04:00
|
|
|
uint32 m_animGroup;
|
2020-02-15 21:15:58 -05:00
|
|
|
ePedType m_pedType;
|
2020-03-17 14:03:13 -04:00
|
|
|
ePedStats m_pedStatType;
|
2019-05-15 10:52:37 -04:00
|
|
|
uint32 m_carsCanDrive;
|
|
|
|
CColModel *m_hitColModel;
|
|
|
|
RpAtomic *m_head;
|
|
|
|
RpAtomic *m_lhand;
|
|
|
|
RpAtomic *m_rhand;
|
|
|
|
|
|
|
|
static RwObjectNameIdAssocation m_pPedIds[12];
|
|
|
|
|
|
|
|
CPedModelInfo(void) : CClumpModelInfo(MITYPE_PED) { }
|
|
|
|
void DeleteRwObject(void);
|
|
|
|
void SetClump(RpClump *);
|
|
|
|
|
|
|
|
void SetLowDetailClump(RpClump*);
|
|
|
|
void CreateHitColModel(void);
|
2019-06-22 19:01:21 -04:00
|
|
|
CColModel *GetHitColModel(void) { return m_hitColModel; }
|
2019-08-17 15:03:57 -04:00
|
|
|
static CColModel *AnimatePedColModel(CColModel* colmodel, RwFrame* frame);
|
2019-05-15 10:52:37 -04:00
|
|
|
};
|
|
|
|
static_assert(sizeof(CPedModelInfo) == 0x54, "CPedModelInfo: error");
|