Need to find the as exact as possible edges coordinates of this object
#1

I need to find this square shaped map object edges coordinates (only x and y of each edge)
I have tried placing small objects (tear gas, couldn't find any smaller) on each edge using jernejl's editor but the results were far from being satisfactory, I need a high precision (by at least 4 units) because i'm calculating the scale between the real sa map and that map (which is units sensitive), then using that calculation to locate players on this area 51 map. Results were inprecise and locations were wrong (it's a values problem not a calculation one, im sure of the calculations and the positions are only a bit far from where they should be)


Reply
#2

I'm not sure if the collision mesh is exact, but you could try ColAndreas for this (getting the Model Boundaries). Or find this object in the Prineside Dev Tools, which shows the actual model's size.

Easiest way would be though to use another object (eg the 5mx5mx5m cube which has a known and exact size of 5m) and texture it with this map (or another one from SAMP's objects - see samaps.txd in the SAMP directory, it includes the map from above in higher quality).

If none of this works, go ingame and spawn 2 Laser Pointers (facing down) and move them to the edges as exact as possible using the Object Edit functions. That's how I did something similar before knowing about ColAndreas, and the result was perfect. But I'm pretty sure that the object's edges are not the 3000m Bounds, you can see that when you look at the northern edge of Las Venturas.
Reply
#3

Try and use this object to calculate it, seems like 4x of this will fill the original object almost perfectly.
http://files.prineside.com/gtasa_sam...te/19164_w.jpg
Reply
#4

Figured this out a long time ago.

https://sampforum.blast.hk/showthread.php?tid=550990

Код:
// Map scale is 2000:1
#define         MAP_RESCALE         2000.0
Reply
#5

I had this working in my aviation server - the air traffic control would be able to see where people are flying in the sky, to divert them, etc. Great script.
Reply
#6

Quote:
Originally Posted by Pottus
Посмотреть сообщение
Figured this out a long time ago.

https://sampforum.blast.hk/showthread.php?tid=550990

Код:
// Map scale is 2000:1
#define         MAP_RESCALE         2000.0
Much appreciated, it works fine now!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)