summaryrefslogtreecommitdiffstats
path: root/src/peds/CivilianPed.cpp
blob: a4881e71687a26eb1cc6a792744851a6cede05ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "common.h"
#include "patcher.h"
#include "CivilianPed.h"

WRAPPER void CCivilianPed::ProcessControl(void) { EAXJMP(0x4BFFE0); }

CCivilianPed::CCivilianPed(int pedtype, int mi) : CPed(pedtype)
{
	CPed::SetModelIndex(mi);
	for (int i = 0; i < 10; i++)
	{
		m_nearPeds[i] = nil;
	}
}

STARTPATCHES
	InjectHook(0x4BFF30, &CCivilianPed::ctor, PATCH_JUMP);
	InjectHook(0x4BFFC0, &CCivilianPed::dtor, PATCH_JUMP);
ENDPATCHES