Garry's Mod

Garry's Mod

mCompass
正在显示第 1 - 9 项,共 9 项条目
更新于:2020 年 5 月 12 日 上午 5:33

- Flipped compass direction to how it should have been, and this in turn fixed incorrect heading display. Not sure how this one slipped passed me, but oh well 🤷‍♂️

更新于:2020 年 5 月 5 日 上午 12:17

I decided to rewrite mCompass and found out a lot of the code I wrote two years ago didn't make sense in some places and was pretty unreadable in others. Also I discovered some pretty significant bugs which was surprising given that it has been out for about two years.

The following has been fixed:
- Setting mcompass width breaks completely.
- Offset didn't work properly. (It instead made adjustments to compass's x position, lol)
- Ratio for the font sizes behaved sort of wierd, so I changed the calculation for the size and it seems better.
- Exo fonts that I was shipping with mCompass weren't actually being loaded.

The following has been updated/changed:
- The x calculation for the compass made no sense to me at all and I am not sure how it was even working. I deleted much of the compass positioning code and rewrote it into what it should have been initially.
- `mCompass_AddMarker` parameters have changed and it has also been split up into `mCompass_AddEntityMarker`. `mCompass_AddMarker` now uses the players team to know which players to show the markers too. You can still pass your own table like before if you want. It's still a bit confusing, but definitely better than before I think.
- mCompass no longer requires game reload for when editing settings.
- Code was reformatted in many places for easier readability.
- Many variables were removed where possible and many more renamed for the sake of readability.
- `Multiplier` in config was renamed to `Spacing`

更新于:2019 年 11 月 17 日 下午 3:38

Fixed some weird flickering from towards the ends of the compass.

更新于:2019 年 3 月 27 日 上午 3:36

- Forgot to remove print statement :/

更新于:2019 年 3 月 26 日 下午 1:48

- Slight change to server-side command to add markers.

Credit to Phoenixf129 https://psteamcommunity.yuanyoumao.com/profiles/76561198039440140/ for the recommendation.

更新于:2018 年 8 月 2 日 上午 8:22

- Added in options menu for easier use. (Q-menu)
- Ratio cvar now updates live.
- Added spot duration var for server config.

更新于:2018 年 7 月 26 日 上午 6:58

更新于:2018 年 7 月 26 日 上午 6:57

更新于:2018 年 7 月 25 日 下午 2:11