mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-06 11:09:58 +00:00
implemented most of vice city path system
This commit is contained in:
parent
ff4af35292
commit
702da55ec9
20 changed files with 1149 additions and 367 deletions
|
@ -267,6 +267,7 @@ void
|
|||
CPhysical::AddCollisionRecord_Treadable(CEntity *ent)
|
||||
{
|
||||
if(ent->IsBuilding() && ((CBuilding*)ent)->GetIsATreadable()){
|
||||
#ifndef MIAMI
|
||||
CTreadable *t = (CTreadable*)ent;
|
||||
if(t->m_nodeIndices[PATH_PED][0] >= 0 ||
|
||||
t->m_nodeIndices[PATH_PED][1] >= 0 ||
|
||||
|
@ -278,6 +279,7 @@ CPhysical::AddCollisionRecord_Treadable(CEntity *ent)
|
|||
t->m_nodeIndices[PATH_CAR][2] >= 0 ||
|
||||
t->m_nodeIndices[PATH_CAR][3] >= 0)
|
||||
m_treadable[PATH_CAR] = t;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -8,8 +8,12 @@ public:
|
|||
static void *operator new(size_t);
|
||||
static void operator delete(void*, size_t);
|
||||
|
||||
#ifndef MIAMI
|
||||
int16 m_nodeIndices[2][12]; // first car, then ped
|
||||
#endif
|
||||
|
||||
bool GetIsATreadable(void) { return true; }
|
||||
};
|
||||
#ifndef MIAMI
|
||||
static_assert(sizeof(CTreadable) == 0x94, "CTreadable: error");
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue