mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-29 04:55:39 +00:00
fixed debug teleport
This commit is contained in:
parent
b7db2a12d4
commit
915888d275
2 changed files with 5 additions and 3 deletions
|
@ -1504,7 +1504,7 @@ CRadar::ToggleTargetMarker(float x, float y)
|
||||||
ms_RadarTrace[nextBlip].m_bDim = 0;
|
ms_RadarTrace[nextBlip].m_bDim = 0;
|
||||||
ms_RadarTrace[nextBlip].m_bInUse = 1;
|
ms_RadarTrace[nextBlip].m_bInUse = 1;
|
||||||
ms_RadarTrace[nextBlip].m_Radius = 1.0f;
|
ms_RadarTrace[nextBlip].m_Radius = 1.0f;
|
||||||
CVector pos(x, y, 0.0f/*CWorld::FindGroundZForCoord(x,y)*/);
|
CVector pos(x, y, 0.0f);
|
||||||
TargetMarkerPos = pos;
|
TargetMarkerPos = pos;
|
||||||
ms_RadarTrace[nextBlip].m_vec2DPos = pos;
|
ms_RadarTrace[nextBlip].m_vec2DPos = pos;
|
||||||
ms_RadarTrace[nextBlip].m_vecPos = pos;
|
ms_RadarTrace[nextBlip].m_vecPos = pos;
|
||||||
|
|
|
@ -775,12 +775,14 @@ FixCar(void)
|
||||||
static void
|
static void
|
||||||
TeleportToWaypoint(void)
|
TeleportToWaypoint(void)
|
||||||
{
|
{
|
||||||
|
CStreaming::LoadScene(CRadar::TargetMarkerPos);
|
||||||
|
CStreaming::LoadSceneCollision(CRadar::TargetMarkerPos);
|
||||||
if (FindPlayerVehicle()) {
|
if (FindPlayerVehicle()) {
|
||||||
if (CRadar::TargetMarkerId != -1)
|
if (CRadar::TargetMarkerId != -1)
|
||||||
FindPlayerVehicle()->Teleport(CRadar::TargetMarkerPos + CVector(0.0f, 0.0f, FindPlayerVehicle()->GetColModel()->boundingSphere.center.z));
|
FindPlayerVehicle()->Teleport(CRadar::TargetMarkerPos + CVector(0.0f, 0.0f, CWorld::FindGroundZForCoord(CRadar::TargetMarkerPos.x, CRadar::TargetMarkerPos.y) + FindPlayerVehicle()->GetColModel()->boundingSphere.radius));
|
||||||
} else
|
} else
|
||||||
if(CRadar::TargetMarkerId != -1)
|
if(CRadar::TargetMarkerId != -1)
|
||||||
FindPlayerPed()->Teleport(CRadar::TargetMarkerPos + CVector(0.0f, 0.0f, FEET_OFFSET));
|
FindPlayerPed()->Teleport(CRadar::TargetMarkerPos + CVector(0.0f, 0.0f, CWorld::FindGroundZForCoord(CRadar::TargetMarkerPos.x, CRadar::TargetMarkerPos.y) + FEET_OFFSET));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue