[ACS] In-game minimap and rotating compass

Sprites, textures, sounds, code, and other resources belong here. Share and share-alike!
Forum rules
Before posting your Resource, please make sure you can answer YES to any of the following questions:
  • Is the resource ENTIRELY my own work?
  • If no to the previous one, do I have permission from the original author?
  • If no to the previous one, did I put a reasonable amount of work into the resource myself, such that the changes are noticeably different from the source that I could take credit for them?
If you answered no to all three, maybe you should consider taking your stuff somewhere other than the Resources forum.

Consult the Resource/Request Posting Guidelines for more information.

Please don't put requests here! They have their own forum --> here. Thank you!
Post Reply
User avatar
kodi
 
 
Posts: 1355
Joined: Mon May 06, 2013 8:02 am

[ACS] In-game minimap and rotating compass

Post by kodi »

This is a small bit of ACS that allows you to print a minimap to the player's hud. It requires you to supply the image file yourself (doom2 map01 is included as an example though) and to find out a couple of values, all of which is hopefully explained clear enough in the comments. Note: Needs a (G)Zdoom version with the recent SetHudClipRect fix to work in widescreen.

Following is a guide on how to get a clean textured image of your map. If you don't need textures you can also use the "save map image" function in Slade3.
Spoiler:
Image

Download minimap pk3

Edit: and heres a smoothly rotating compass. It uses a cameratexture and an off-map downward facing camera that spins with the player. Could be used used instead of the midpoint marker of the minimap.
Download compass pk3
User avatar
juizzysquirt
Posts: 126
Joined: Sun Jan 04, 2009 3:29 pm
Location: Knee-Deep in L.A. Meltdown

Re: [ACS] In-game minimap and rotating compass

Post by juizzysquirt »

I think compass should always point to north, instead of rotating along with player. Reversing the values should fix this? Nice work otherwise. :)
User avatar
kodi
 
 
Posts: 1355
Joined: Mon May 06, 2013 8:02 am

Re: [ACS] In-game minimap and rotating compass

Post by kodi »

You're absolutely right. I had the minimap on while making the compass, resulting in a player direction arrow rather than a compass. Must have momentarily forgotten how to brain..
Will add an actual compass function to the compass pk3 and reupload when I get the time.
User avatar
camper
Posts: 103
Joined: Sun Feb 25, 2018 10:53 am
Location: Tatarstan

Re: [ACS] In-game minimap and rotating compass

Post by camper »

File was deleted from server.
sorrow...
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: [ACS] In-game minimap and rotating compass

Post by wildweasel »

camper wrote:File was deleted from server.
sorrow...
Thread is from 2016.
Try this thread instead: viewtopic.php?t=28589
User avatar
camper
Posts: 103
Joined: Sun Feb 25, 2018 10:53 am
Location: Tatarstan

Re: [ACS] In-game minimap and rotating compass

Post by camper »

wildweasel wrote:
camper wrote:File was deleted from server.
sorrow...
Thread is from 2016.
Try this thread instead:
Thanks, I'll take a look.
There is also a compass in Hellscape Navigator (v0.2.1). It works well with other addons.
Post Reply

Return to “Resources”