mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-14 16:49:16 +00:00
27 lines
644 B
C++
27 lines
644 B
C++
#include "common.h"
|
|
#include "patcher.h"
|
|
#include "CivilianPed.h"
|
|
#include "Phones.h"
|
|
|
|
WRAPPER void CCivilianPed::ProcessControl(void) { EAXJMP(0x4BFFE0); }
|
|
|
|
CCivilianPed::CCivilianPed(int pedtype, int mi) : CPed(pedtype)
|
|
{
|
|
SetModelIndex(mi);
|
|
for (int i = 0; i < 10; i++) {
|
|
m_nearPeds[i] = nil;
|
|
}
|
|
}
|
|
|
|
class CCivilianPed_ : public CCivilianPed
|
|
{
|
|
public:
|
|
CCivilianPed *ctor(int pedtype, int mi) { return ::new (this) CCivilianPed(pedtype, mi); };
|
|
void dtor(void) { CCivilianPed::~CCivilianPed(); }
|
|
};
|
|
|
|
STARTPATCHES
|
|
InjectHook(0x4BFF30, &CCivilianPed_::ctor, PATCH_JUMP);
|
|
InjectHook(0x4BFFC0, &CCivilianPed_::dtor, PATCH_JUMP);
|
|
ENDPATCHES
|