I want to make custom small rader map

Started by 2b2ttianxiu, May 28, 2023, 10:50 AM

Previous topic - Next topic

2b2ttianxiu

I have a picture size of 2048*2048, i want to auto size to vanila rader pos. I don't want to use maps rader to custom. I have more worlds.

PSL

Hide the original radar (Hud.RemoveFlags(HUD_FLAG_RADAR);) and recreate it.
At 1920x1080 resolution, the center position of the map radar is VectorScreen(180,895);

2b2ttianxiu

#2
at 600 * 480, where is the position

PSL

The algorithm should be coordinates plus 1,950 times the size of the map divided by 3,900 plus the location of the map.
When the player is at 0,0, the position on the map should be 320,240.

2b2ttianxiu

emm, I said wrong. It's the small rader map the vectorscreen is where?

PSL

The bottom left and right can be shown, and it can be anywhere.You may need to addchild to add player icons to the map.

2b2ttianxiu


PSL


2b2ttianxiu

The 'Map' is exists? The 'Map' whereis?

2b2ttianxiu

The 'y' is true, but 'x' is not really

2b2ttianxiu

The VectorScreen x how to calc?, 1920 is x * 0.09375, 600 is x * 0.14

PSL

Map x ranges from -2350 to 1550, two numbers you can try to bring into your algorithm.

2b2ttianxiu

What means? I need calc the radar map center of x