SA-MP Forums Archive
[Include] UICompass - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] UICompass (/showthread.php?tid=646840)

Pages: 1 2


UICompass - m1n1vv - 24.12.2017

This include designed to implement the compass in PUBG-style. It displays the current direction including the three previous directions and subsequent direstion.

All locations in a scale are multiple to the maximum step of the MAX_UICOMPASS_STEP. The direction is displayed with the interval. For example, in [41 - 47] will bring 45. Only supported with odd number of TD!

The implementation of the TD on your side.


Documentation:

RoundCompassDirection - rounds the direction to a multiple of 'round'.
PHP Code:
RoundCompassDirection(Float:angleround);
//Float:angle - the current player's direction
//round - makes the number multiply to the specified value 
CreateCompassString - creates a line with the player's direction.
PHP Code:
CreateCompassString(angleround);
//angle - the player's direction, obtained from RoundCompassDirection
//round - makes the number multiply to the specified value 
CompassHeadingNorth - determines which of the TD will be displayed "N".
PHP Code:
CompassHeadingNorth(angle);
//angle - the player's direction, obtained from RoundCompassDirection 
Video:

This is my implementation


https://youtu.be/BCsdpoDG4Xg


Defines:

DirectivesDefaultDescription
MAX_UICOMPASS_TD7The amount of TD that will be used in Your compass
MIN_UICOMPASS_STEP5The minimum step of the compass
MAX_UICOMPASS_STEP15The maximum step of the compass

GitHub:



Re: UICompass - rfr - 25.12.2017

wow good


Re: UICompass - NealPeteros - 25.12.2017

That looks a lot like PUBG's doesn't it? I'm guessing this was inspired by the game?

EDIT:
Quote:

This include designed to implement the compass in PUBG-style. It displays the current direction including the three previous directions and subsequent direstion.

Didn't see this, my apologies.

Nice one, btw. Advanced.



EDIT2: Would recommend this to TDM scripts such as CoD. Can be for Roleplay, but wouldn't be fit for me.


Re: UICompass - RogueDrifter - 25.12.2017

Unique, love how the forum getting these extraordinary releases nowadays, good job +rep.


Re: UICompass - m1n1vv - 25.12.2017

Quote:
Originally Posted by NealPeteros
View Post
Didn't see this, my apologies.
I'm working on it. That's the sketch.
Quote:

The implementation of the TD on your side.




Re: UICompass - m1n1vv - 25.12.2017

This is my implementation


https://youtu.be/BCsdpoDG4Xg


Re: UICompass - Barnwell - 25.12.2017

Great job


Re: UICompass - StrikerZ - 26.12.2017

And a similar one's in Assassin's creed origins
good job!


Re: UICompass - cuber - 26.12.2017

Damn, well done!


Re: UICompass - Lovejoy - 05.01.2018

Someone can create a Filterscript with this compass 100% functional? i'm having a lot of difficulties to do it


Re: UICompass - rfr - 05.01.2018

Quote:
Originally Posted by Lovejoy
Посмотреть сообщение
Someone can create a Filterscript with this compass 100% functional? i'm having a lot of difficulties to do it
There's an example script in the links.


Re: UICompass - Lovejoy - 05.01.2018

I'm new at this and it's hard to leave functional


Re: UICompass - HeLiOn_PrImE - 05.01.2018

Quote:
Originally Posted by Lovejoy
Посмотреть сообщение
I'm new at this and it's hard to leave functional
Maybe you can explain to OP what difficulties are you having.... Maybe he can help you with them...


Re: UICompass - Lovejoy - 05.01.2018

I need to create SetTimerEx, KillTimer and paste the example code in the gamemode, only that?


Re: UICompass - iLearner - 05.01.2018

https://github.com/m1n1vv/UICompass/issues/1

I don't know what can I do with this so far.

Can you share your implementation?


Re: UICompass - Lovejoy - 05.01.2018

https://imgur.com/Y6xJ9hO


Re: UICompass - Logic_ - 05.01.2018

Quote:
Originally Posted by iLearner
Посмотреть сообщение
https://github.com/m1n1vv/UICompass/issues/1

I don't know what can I do with this so far.

Can you share your implementation?
It's pretty easy to set it up yourself.

SPOILER: Just create the textdraws with your desired positions.


Re: UICompass - m1n1vv - 06.01.2018

Quote:
Originally Posted by iLearner
Посмотреть сообщение
https://github.com/m1n1vv/UICompass/issues/1

I don't know what can I do with this so far.

Can you share your implementation?
Fixed 11 days ago


Re: UICompass - HydraHumza - 06.01.2018

Nice work.

Quote:
Originally Posted by m1n1vv
Посмотреть сообщение
Fixed 11 days ago
That's the Example. ILearner mean to have a filterscript which can be plug n play.


Re: UICompass - JaKe Elite - 10.03.2018

I did like to use this but I am having problems figuring it out on how to use it besides the example given on the thread itself, any heads up or clues?