CPopulation done, CCopPed and fixes

This commit is contained in:
eray orçunus
2020-03-07 22:22:43 +03:00
parent 19488323ea
commit 934e9db4fc
20 changed files with 588 additions and 151 deletions

View File

@ -16,8 +16,12 @@ class CDummyObject_ : public CDummyObject
{
public:
void dtor(void) { CDummyObject::~CDummyObject(); }
CDummyObject *ctor(void) { return ::new (this) CDummyObject(); }
CDummyObject *ctor(CObject *obj) { return ::new (this) CDummyObject(obj); }
};
STARTPATCHES
InjectHook(0x4BAAF0, (CDummyObject* (CDummyObject::*)(void)) &CDummyObject_::ctor, PATCH_JUMP);
InjectHook(0x4BAB10, (CDummyObject* (CDummyObject::*)(CObject*)) &CDummyObject_::ctor, PATCH_JUMP);
InjectHook(0x4BAB70, &CDummyObject_::dtor, PATCH_JUMP);
ENDPATCHES
ENDPATCHES

View File

@ -52,7 +52,7 @@ public:
int8 field_17D;
int8 field_17E;
int8 field_17F;
int32 m_nEndOfLifeTime;
uint32 m_nEndOfLifeTime;
int16 m_nRefModelIndex;
int8 field_186;
int8 field_187;