2019-06-30 06:59:55 -04:00
|
|
|
#include "common.h"
|
|
|
|
#include "patcher.h"
|
|
|
|
#include "CivilianPed.h"
|
2019-07-15 08:11:40 -04:00
|
|
|
#include "Phones.h"
|
2019-06-30 06:59:55 -04:00
|
|
|
|
2019-06-30 17:50:40 -04:00
|
|
|
WRAPPER void CCivilianPed::ProcessControl(void) { EAXJMP(0x4BFFE0); }
|
|
|
|
|
|
|
|
CCivilianPed::CCivilianPed(int pedtype, int mi) : CPed(pedtype)
|
2019-06-30 06:59:55 -04:00
|
|
|
{
|
2019-07-14 05:49:03 -04:00
|
|
|
SetModelIndex(mi);
|
2019-09-16 13:32:58 -04:00
|
|
|
for (int i = 0; i < 10; i++) {
|
2019-06-30 17:50:40 -04:00
|
|
|
m_nearPeds[i] = nil;
|
|
|
|
}
|
2019-06-30 06:59:55 -04:00
|
|
|
}
|
|
|
|
|
2019-07-08 02:46:42 -04:00
|
|
|
class CCivilianPed_ : public CCivilianPed
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CCivilianPed *ctor(int pedtype, int mi) { return ::new (this) CCivilianPed(pedtype, mi); };
|
|
|
|
void dtor(void) { CCivilianPed::~CCivilianPed(); }
|
|
|
|
};
|
|
|
|
|
2019-06-30 06:59:55 -04:00
|
|
|
STARTPATCHES
|
2019-07-08 02:46:42 -04:00
|
|
|
InjectHook(0x4BFF30, &CCivilianPed_::ctor, PATCH_JUMP);
|
|
|
|
InjectHook(0x4BFFC0, &CCivilianPed_::dtor, PATCH_JUMP);
|
|
|
|
ENDPATCHES
|