Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: 2b2ttianxiu on May 28, 2023, 10:50 AM

Title: I want to make custom small rader map
Post by: 2b2ttianxiu on May 28, 2023, 10:50 AM
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.
Title: Re: I want to make custom small rader map
Post by: PSL on May 29, 2023, 03:40 AM
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);
Title: Re: I want to make custom small rader map
Post by: 2b2ttianxiu on May 29, 2023, 11:30 AM
at 600 * 480, where is the position
Title: Re: I want to make custom small rader map
Post by: PSL on May 30, 2023, 01:11 AM
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.
Title: Re: I want to make custom small rader map
Post by: 2b2ttianxiu on May 30, 2023, 11:55 AM
emm, I said wrong. It's the small rader map the vectorscreen is where?
Title: Re: I want to make custom small rader map
Post by: PSL on May 31, 2023, 11:55 AM
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.
Title: Re: I want to make custom small rader map
Post by: 2b2ttianxiu on May 31, 2023, 12:12 PM
How add child?
Title: Re: I want to make custom small rader map
Post by: PSL on May 31, 2023, 12:29 PM
Map.AddChild(icon);
Title: Re: I want to make custom small rader map
Post by: 2b2ttianxiu on Jun 01, 2023, 07:38 AM
The 'Map' is exists? The 'Map' whereis?
Title: Re: I want to make custom small rader map
Post by: 2b2ttianxiu on Jun 01, 2023, 08:14 AM
The 'y' is true, but 'x' is not really
Title: Re: I want to make custom small rader map
Post by: 2b2ttianxiu on Jun 01, 2023, 10:17 AM
The VectorScreen x how to calc?, 1920 is x * 0.09375, 600 is x * 0.14
Title: Re: I want to make custom small rader map
Post by: PSL on Jun 01, 2023, 03:29 PM
Map x ranges from -2350 to 1550, two numbers you can try to bring into your algorithm.
Title: Re: I want to make custom small rader map
Post by: 2b2ttianxiu on Jun 02, 2023, 11:26 AM
What means? I need calc the radar map center of x