Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Zone_Killer on Mar 03, 2017, 01:36 PM

Title: Gang territory Like San Andreas
Post by: Zone_Killer on Mar 03, 2017, 01:36 PM
How I Can Make  Gangs territorys Like San Andreas : (https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FWZPiO1S.jpg&hash=2c287cc99a1b292e9a6cade971841f58b3172f3f)
Title: Re: Gang territory Like San Andreas
Post by: Murdock on Mar 03, 2017, 01:48 PM
With 2D coordinates, then check if the player is in a defined territory using geometry.
Title: Re: Gang territory Like San Andreas
Post by: DizzasTeR on Mar 03, 2017, 02:20 PM
He probably means colored radar portions which is not possible right now
Title: Re: Gang territory Like San Andreas
Post by: KAKAN on Mar 03, 2017, 02:40 PM
Quote from: Doom_Kill3R on Mar 03, 2017, 02:20 PMHe probably means colored radar portions which is not possible right now
LCS map over VC's map. Custom radars are there. The problem is that they're static, and if you update them, players will need to download the whole map again( 64 images )
Title: Re: Gang territory Like San Andreas
Post by: Luis_Labarca on Mar 03, 2017, 07:22 PM
Quote from: KAKAN on Mar 03, 2017, 02:40 PM
Quote from: Doom_Kill3R on Mar 03, 2017, 02:20 PMHe probably means colored radar portions which is not possible right now
LCS map over VC's map. Custom radars are there. The problem is that they're static, and if you update them, players will need to download the whole map again( 64 images )

And it would be great if you could update the radars from the server with a function
Title: Re: Gang territory Like San Andreas
Post by: aXXo on Mar 03, 2017, 08:30 PM
Is there any dimension limit on custom Map Markers?
If not, you could create a big 50% Opacity colored square block and CreateMarker it anywhere. Though, I think it will probably hide player blips near it.
Title: Re: Gang territory Like San Andreas
Post by: vito on Mar 03, 2017, 09:10 PM
Quote from: aXXo on Mar 03, 2017, 08:30 PMIs there any dimension limit on custom Map Markers?
If not, you could create a big 50% Opacity colored square block and CreateMarker it anywhere. Though, I think it will probably hide player blips near it.
square blocks will rotate on the radar as any markers...
Title: Re: Gang territory Like San Andreas
Post by: Sebastian on Mar 03, 2017, 10:37 PM
Quote from: vito on Mar 03, 2017, 09:10 PMsquare blocks will rotate on the radar as any markers...

+ there is a limit for marker's size.
So it's imposible to create one big square.
Title: Re: Gang territory Like San Andreas
Post by: Zone_Killer on Feb 10, 2018, 01:57 PM
@Sebastian, Can you tell me how to increase marker size?
Title: Re: Gang territory Like San Andreas
Post by: NicusorN5 on Feb 10, 2018, 02:49 PM
Create your custom radar using GUI functions and some maths. Simple. You may want to use sprites, and 1 window, and to hide the radar.
Title: Re: Gang territory Like San Andreas
Post by: NicusorN5 on Feb 11, 2018, 01:35 PM
Quote from: vitogta on Feb 11, 2018, 06:02 AM
Quote from: Athanatos on Feb 10, 2018, 02:49 PMCreate your custom radar using GUI functions and some maths. Simple. You may want to use sprites, and 1 window, and to hide the radar.
we can't to cut/clip gui element by mask currently as i know.
so at this moment it could be as a global map only, not a radar.
Use a square window. For a sphere mask, not possible now.
Title: Re: Gang territory Like San Andreas
Post by: supergta on Apr 01, 2018, 06:11 PM
Quote from: Athanatos(^_^) on Feb 11, 2018, 01:35 PM
Quote from: vitogta on Feb 11, 2018, 06:02 AM
Quote from: Athanatos on Feb 10, 2018, 02:49 PMCreate your custom radar using GUI functions and some maths. Simple. You may want to use sprites, and 1 window, and to hide the radar.
we can't to cut/clip gui element by mask currently as i know.
so at this moment it could be as a global map only, not a radar.
Use a square window. For a sphere mask, not possible now.
How did you clipped sprite (image) in window? Show the code please, I have tried but failed.
Title: Re: Gang territory Like San Andreas
Post by: NicusorN5 on Apr 02, 2018, 07:32 PM
Quote from: vitonoob on Apr 01, 2018, 06:11 PM
Quote from: Athanatos(^_^) on Feb 11, 2018, 01:35 PM
Quote from: vitogta on Feb 11, 2018, 06:02 AM
Quote from: Athanatos on Feb 10, 2018, 02:49 PMCreate your custom radar using GUI functions and some maths. Simple. You may want to use sprites, and 1 window, and to hide the radar.
we can't to cut/clip gui element by mask currently as i know.
so at this moment it could be as a global map only, not a radar.
Use a square window. For a sphere mask, not possible now.
How did you clipped sprite (image) in window? Show the code please, I have tried but failed.

use ::<the radar window>.AddChild(sprite); to put the sprite inside the window. Then move it when the player coordinates change. This method requires some maths.
Title: Re: Gang territory Like San Andreas
Post by: supergta on Apr 02, 2018, 08:04 PM
Math is not a problem. Especially 2d. But methods.
Window is not hiding overflow. Part of image located outside window and not clipped (position of image is VectorScreen(-32,-32) for example). Can you post the code with clipping image?
Title: Re: Gang territory Like San Andreas
Post by: NicusorN5 on Apr 02, 2018, 08:08 PM
Tbh that was an idea. I don't have any code. Welp in my mind it works as I said.
Title: Re: Gang territory Like San Andreas
Post by: supergta on Apr 02, 2018, 08:24 PM
Quote from: Athanatos(^_^) on Apr 02, 2018, 08:08 PMTbh that was an idea. I don't have any code. Welp in my mind it works as I said.
Unfortunately it not works in the code.