mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-09 03:10:35 +00:00
CEntity and friends
This commit is contained in:
parent
8a90e32f1b
commit
bdbe5d1080
26 changed files with 581 additions and 650 deletions
|
@ -2192,6 +2192,7 @@ CAutomobile::ProcessEntityCollision(CEntity *ent, CColPoint *colpoints)
|
|||
phys->RegisterReference((CEntity**)&m_aGroundPhysical[i]);
|
||||
m_aGroundOffset[i] = m_aWheelColPoints[i].point - phys->GetPosition();
|
||||
|
||||
#if 0
|
||||
if(phys->GetModelIndex() == MI_BODYCAST && GetStatus() == STATUS_PLAYER){
|
||||
// damage body cast
|
||||
float speed = m_vecMoveSpeed.MagnitudeSqr();
|
||||
|
@ -2208,6 +2209,7 @@ CAutomobile::ProcessEntityCollision(CEntity *ent, CColPoint *colpoints)
|
|||
phys->AddToMovingList();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
m_nSurfaceTouched = m_aWheelColPoints[i].surfaceB;
|
||||
|
|
|
@ -88,6 +88,7 @@ void CCranes::AddThisOneCrane(CEntity* pEntity)
|
|||
if (pCrane->m_nAudioEntity >= 0)
|
||||
DMAudio.SetEntityStatus(pCrane->m_nAudioEntity, 1);
|
||||
pCrane->m_bIsTop = (MODELID_CRANE_1 != pEntity->GetModelIndex());
|
||||
#if 0
|
||||
// Is this used to avoid military crane?
|
||||
if (pCrane->m_bIsTop || pEntity->GetPosition().y > 0.0f) {
|
||||
CObject* pHook = new CObject(MI_MAGNET, false);
|
||||
|
@ -100,6 +101,7 @@ void CCranes::AddThisOneCrane(CEntity* pEntity)
|
|||
pCrane->SetHookMatrix();
|
||||
}
|
||||
else
|
||||
#endif
|
||||
pCrane->m_pHook = nil;
|
||||
NumCranes++;
|
||||
}
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
#include "FileMgr.h"
|
||||
#include "HandlingMgr.h"
|
||||
|
||||
//--MIAMI: done
|
||||
|
||||
cHandlingDataMgr mod_HandlingManager;
|
||||
|
||||
const char *HandlingFilename = "HANDLING.CFG";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue