[Include] UICompass
#1

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:
Reply


Messages In This Thread
UICompass - by m1n1vv - 24.12.2017, 19:11
Re: UICompass - by rfr - 25.12.2017, 08:04
Re: UICompass - by NealPeteros - 25.12.2017, 08:18
Re: UICompass - by RogueDrifter - 25.12.2017, 08:23
Re: UICompass - by m1n1vv - 25.12.2017, 09:51
Re: UICompass - by m1n1vv - 25.12.2017, 16:01
Re: UICompass - by Barnwell - 25.12.2017, 16:25
Re: UICompass - by StrikerZ - 26.12.2017, 09:46
Re: UICompass - by cuber - 26.12.2017, 11:37
Re: UICompass - by Lovejoy - 05.01.2018, 14:47
Re: UICompass - by rfr - 05.01.2018, 14:48
Re: UICompass - by Lovejoy - 05.01.2018, 14:51
Re: UICompass - by HeLiOn_PrImE - 05.01.2018, 14:57
Re: UICompass - by Lovejoy - 05.01.2018, 15:00
Re: UICompass - by iLearner - 05.01.2018, 15:51
Re: UICompass - by Lovejoy - 05.01.2018, 16:58
Re: UICompass - by Logic_ - 05.01.2018, 17:16
Re: UICompass - by m1n1vv - 06.01.2018, 11:20
Re: UICompass - by HydraHumza - 06.01.2018, 12:06
Re: UICompass - by JaKe Elite - 10.03.2018, 10:22
Re: UICompass - by PedroRzX - 03.04.2018, 17:28
Re: UICompass - by Strikeskp - 04.04.2018, 21:48
Re: UICompass - by OliverK - 26.04.2018, 21:05
Re: UICompass - by Charisma - 14.07.2018, 11:28
Re: UICompass - by waysemir - 18.07.2018, 17:21
Re: UICompass - by CodeStyle175 - 18.07.2018, 17:37
Re: UICompass - by JustMe.77 - 01.08.2018, 00:05
Re: UICompass - by torettovn - 01.08.2018, 08:07
Re: UICompass - by DaddyZ - 15.02.2019, 17:06

Forum Jump:


Users browsing this thread: 1 Guest(s)