mirror of https://github.com/Nofated095/re-GTA.git
fixed CAutomobile bug
This commit is contained in:
parent
e200eb1a2f
commit
e340400875
|
@ -2930,7 +2930,7 @@ CAutomobile::BurstTyre(uint8 wheel)
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
CAutomobile::IsRoomForPedToLeaveCar(uint32 component, CVector *forcedDoorPos)
|
CAutomobile::IsRoomForPedToLeaveCar(uint32 component, CVector *doorOffset)
|
||||||
{
|
{
|
||||||
CColPoint colpoint;
|
CColPoint colpoint;
|
||||||
CEntity *ent;
|
CEntity *ent;
|
||||||
|
@ -2957,11 +2957,11 @@ CAutomobile::IsRoomForPedToLeaveCar(uint32 component, CVector *forcedDoorPos)
|
||||||
seatPos = GetMatrix() * seatPos;
|
seatPos = GetMatrix() * seatPos;
|
||||||
|
|
||||||
CVector doorPos = CPed::GetPositionToOpenCarDoor(this, component);
|
CVector doorPos = CPed::GetPositionToOpenCarDoor(this, component);
|
||||||
if(forcedDoorPos){
|
if(doorOffset){
|
||||||
doorPos = *forcedDoorPos;
|
CVector off = *doorOffset;
|
||||||
if(component == CAR_DOOR_RF || component == CAR_DOOR_RR)
|
if(component == CAR_DOOR_RF || component == CAR_DOOR_RR)
|
||||||
doorPos.x = -doorPos.x;
|
off.x = -off.x;
|
||||||
doorPos = Multiply3x3(GetMatrix(), doorPos);
|
doorPos += Multiply3x3(GetMatrix(), off);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(GetUp().z < 0.0f){
|
if(GetUp().z < 0.0f){
|
||||||
|
|
|
@ -108,7 +108,7 @@ public:
|
||||||
void BlowUpCar(CEntity *ent);
|
void BlowUpCar(CEntity *ent);
|
||||||
bool SetUpWheelColModel(CColModel *colModel);
|
bool SetUpWheelColModel(CColModel *colModel);
|
||||||
void BurstTyre(uint8 tyre);
|
void BurstTyre(uint8 tyre);
|
||||||
bool IsRoomForPedToLeaveCar(uint32 component, CVector *forcedDoorPos);
|
bool IsRoomForPedToLeaveCar(uint32 component, CVector *doorOffset);
|
||||||
float GetHeightAboveRoad(void);
|
float GetHeightAboveRoad(void);
|
||||||
void PlayCarHorn(void);
|
void PlayCarHorn(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue