2019-06-30 12:59:55 +02:00
|
|
|
#include "common.h"
|
|
|
|
#include "patcher.h"
|
|
|
|
#include "CivilianPed.h"
|
|
|
|
|
2019-06-30 23:50:40 +02:00
|
|
|
WRAPPER void CCivilianPed::ProcessControl(void) { EAXJMP(0x4BFFE0); }
|
|
|
|
|
|
|
|
CCivilianPed::CCivilianPed(int pedtype, int mi) : CPed(pedtype)
|
2019-06-30 12:59:55 +02:00
|
|
|
{
|
2019-06-30 23:50:40 +02:00
|
|
|
CPed::SetModelIndex(mi);
|
|
|
|
for (int i = 0; i < 10; i++)
|
|
|
|
{
|
|
|
|
m_nearPeds[i] = nil;
|
|
|
|
}
|
2019-06-30 12:59:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
STARTPATCHES
|
2019-06-30 23:50:40 +02:00
|
|
|
InjectHook(0x4BFF30, &CCivilianPed::ctor, PATCH_JUMP);
|
2019-06-30 12:59:55 +02:00
|
|
|
InjectHook(0x4BFFC0, &CCivilianPed::dtor, PATCH_JUMP);
|
|
|
|
ENDPATCHES
|