mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-14 06:00:34 +00:00
more CAutomobile
This commit is contained in:
parent
b26e83fc6e
commit
74fcbc8c0a
17 changed files with 395 additions and 36 deletions
|
@ -92,7 +92,7 @@ CVehicle::RemoveLighting(bool reset)
|
|||
float
|
||||
CVehicle::GetHeightAboveRoad(void)
|
||||
{
|
||||
return -1.0f * CModelInfo::GetModelInfo(GetModelIndex())->GetColModel()->boundingBox.min.z;
|
||||
return -1.0f * GetColModel()->boundingBox.min.z;
|
||||
}
|
||||
|
||||
|
||||
|
@ -442,7 +442,7 @@ CVehicle::IsSphereTouchingVehicle(float sx, float sy, float sz, float radius)
|
|||
float x, y, z;
|
||||
// sphere relative to vehicle
|
||||
CVector sph = CVector(sx, sy, sz) - GetPosition();
|
||||
CColModel *colmodel = CModelInfo::GetModelInfo(GetModelIndex())->GetColModel();
|
||||
CColModel *colmodel = GetColModel();
|
||||
|
||||
x = DotProduct(sph, GetRight());
|
||||
if(colmodel->boundingBox.min.x - radius > x ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue