mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-14 21:34:09 +00:00
eSurfaceType
This commit is contained in:
parent
0b8f045d36
commit
d8528ebbbe
13 changed files with 226 additions and 227 deletions
|
@ -504,11 +504,11 @@ CCam::ProcessSpecialHeightRoutines(void)
|
|||
|
||||
switch(((CPhysical*)CamTargetEntity)->m_nSurfaceTouched)
|
||||
case SURFACE_GRASS:
|
||||
case SURFACE_DIRT:
|
||||
case SURFACE_DIRTTRACK:
|
||||
case SURFACE_STEEL:
|
||||
case SURFACE_TIRE:
|
||||
case SURFACE_STONE:
|
||||
case SURFACE_GRAVEL:
|
||||
case SURFACE_MUD_DRY:
|
||||
case SURFACE_THICK_METAL_PLATE:
|
||||
case SURFACE_RUBBER:
|
||||
case SURFACE_STEEP_CLIFF:
|
||||
OnRoad = true;
|
||||
|
||||
if(CCullZones::PlayerNoRain())
|
||||
|
@ -565,9 +565,9 @@ CCam::ProcessSpecialHeightRoutines(void)
|
|||
if(PreviouslyFailedRoadHeightCheck && m_fCloseInPedHeightOffset < 0.0001f){
|
||||
if(colPoint.surfaceB != SURFACE_TARMAC &&
|
||||
colPoint.surfaceB != SURFACE_GRASS &&
|
||||
colPoint.surfaceB != SURFACE_DIRT &&
|
||||
colPoint.surfaceB != SURFACE_DIRTTRACK &&
|
||||
colPoint.surfaceB != SURFACE_STONE){
|
||||
colPoint.surfaceB != SURFACE_GRAVEL &&
|
||||
colPoint.surfaceB != SURFACE_MUD_DRY &&
|
||||
colPoint.surfaceB != SURFACE_STEEP_CLIFF){
|
||||
if(m_fRoadOffSet > 1.4f)
|
||||
m_fRoadOffSet = 1.4f;
|
||||
}else{
|
||||
|
@ -1408,11 +1408,11 @@ CCam::Process_FollowPed(const CVector &CameraTarget, float TargetOrientation, fl
|
|||
bool foo = false;
|
||||
switch(((CPhysical*)CamTargetEntity)->m_nSurfaceTouched)
|
||||
case SURFACE_GRASS:
|
||||
case SURFACE_DIRT:
|
||||
case SURFACE_GRAVEL:
|
||||
case SURFACE_PAVEMENT:
|
||||
case SURFACE_STEEL:
|
||||
case SURFACE_TIRE:
|
||||
case SURFACE_STONE:
|
||||
case SURFACE_THICK_METAL_PLATE:
|
||||
case SURFACE_RUBBER:
|
||||
case SURFACE_STEEP_CLIFF:
|
||||
foo = true;
|
||||
if(foo)
|
||||
WellBufferMe(TargetHeight, &m_fCamBufferedHeight, &m_fCamBufferedHeightSpeed, 0.4f, 0.05f, false);
|
||||
|
@ -1750,8 +1750,8 @@ CCam::WorkOutCamHeightWeeCar(CVector &TargetCoors, float TargetOrientation)
|
|||
else
|
||||
WellBufferMe(TargetZOffSet, &RoadHeightFix, &RoadHeightFixSpeed, 0.27f, 0.1f, false);
|
||||
|
||||
if((colpoint.surfaceB == SURFACE_DEFAULT || colpoint.surfaceB >= SURFACE_METAL6) &&
|
||||
colpoint.surfaceB != SURFACE_STEEL && colpoint.surfaceB != SURFACE_STONE &&
|
||||
if((colpoint.surfaceB == SURFACE_DEFAULT || colpoint.surfaceB >= SURFACE_CAR) &&
|
||||
colpoint.surfaceB != SURFACE_THICK_METAL_PLATE && colpoint.surfaceB != SURFACE_STEEP_CLIFF &&
|
||||
RoadHeightFix > 1.4f)
|
||||
RoadHeightFix = 1.4f;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue