GTA Zones, Positions etc

Started by Mötley, Nov 26, 2016, 12:55 AM

Previous topic - Next topic

Mötley

In Vice City and GTA III You have positions for districts,


There usage:

Name, Type, X1, Y1, Z1, X2, Y2, Z2, Level



There format

CHINA, 0, 745.421, -908.289, -21.203, 1065.42, -463.69, 129.593, 1

@Stormeus How did the two teams go about GetDistrictName, Did you use these positions? If so how?

http://www.gtamodding.com/wiki/ZONE

I would Like to see if there is a way to use these two vectors "As is" As a poly like Rockstar did.

How would I go about this?

I have tried checking if a player is a distance from a vector but it did not work..
Maybe I am dumb ;D .. >:(

Shadow

const SQChar * GetDistrictName ( float x, float y )
{
if( x > -1613.03f && y > 413.218f && x < -213.73f && y < 1677.32f )
return "Downtown Vice City";
else if( x > 163.656f && y > -351.153f && x < 1246.03f && y < 1398.85f )
return "Vice Point";
else if( x > -103.97f && y > -930.526f && x < 1246.03f && y < -351.153f )
return "Washington Beach";
else if( x > -253.206f && y > -1805.37f && x < 1254.9f && y < -930.526f )
return "Ocean Beach";
else if( x > -1888.21f && y > -1779.61f && x < -1208.21f && y < 230.39f )
return "Escobar International Airport";
else if( x > -748.206f && y > -818.266f && x < -104.505f && y < -241.467f )
return "Starfish Island";
else if( x > -213.73f && y > 797.605f && x < 163.656f && y < 1243.47f )
return "Prawn Island";
else if( x > -213.73f && y > -241.429f && x < 163.656f && y < 797.605f )
return "Leaf Links";
else if( x > -1396.76f && y > -42.9113f && x < -1208.21f && y < 230.39f )
return "Junkyard";
else if( x > -1208.21f && y > -1779.61f &&  x < -253.206f && y < -898.738f )
return "Viceport";
else if( x > -1208.21f && y > -898.738f && x < -748.206f && y < -241.467f )
return "Little Havana";
else if( x > -1208.21f && y > -241.467f && x < -578.289f && y < 412.66f )
return "Little Haiti";
else
return "Vice City";
}

It was done with a simple coordinate comparision.
QuotePS:is trash is ur home language??