mirror of
https://github.com/halpz/re3.git
synced 2025-07-20 19:09:48 +00:00
Running script part 3
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
|
||||
WRAPPER void CObject::ObjectDamage(float amount) { EAXJMP(0x4BB240); }
|
||||
WRAPPER void CObject::DeleteAllTempObjectInArea(CVector, float) { EAXJMP(0x4BBED0); }
|
||||
WRAPPER void CObject::Init(void) { EAXJMP(0x4BAEC0); }
|
||||
|
||||
int16 &CObject::nNoTempObjects = *(int16*)0x95CCA2;
|
||||
int16 &CObject::nBodyCastHealth = *(int16*)0x5F7D4C; // 1000
|
||||
@ -41,6 +42,15 @@ CObject::CObject(void)
|
||||
m_pCollidingEntity = nil;
|
||||
}
|
||||
|
||||
CObject::CObject(int32 mi, bool createRW)
|
||||
{
|
||||
if (createRW)
|
||||
SetModelIndex(mi);
|
||||
else
|
||||
SetModelIndexNoCreate(mi);
|
||||
Init();
|
||||
}
|
||||
|
||||
CObject::~CObject(void)
|
||||
{
|
||||
CRadar::ClearBlipForEntity(BLIP_OBJECT, CPools::GetObjectPool()->GetIndex(this));
|
||||
|
@ -66,6 +66,7 @@ public:
|
||||
static void operator delete(void*, size_t);
|
||||
|
||||
CObject(void);
|
||||
CObject(int32, bool);
|
||||
~CObject(void);
|
||||
|
||||
void Render(void);
|
||||
@ -74,6 +75,7 @@ public:
|
||||
|
||||
void ObjectDamage(float amount);
|
||||
void RefModelInfo(int32 modelId);
|
||||
void Init(void);
|
||||
|
||||
static void DeleteAllTempObjectInArea(CVector, float);
|
||||
};
|
||||
|
Reference in New Issue
Block a user