Resource icon
This content may be freely modified and/or maintained by anyone.

Zipper

:hildaGun:
Retired Staff
2015 Contest Winner 2014 Contest Winner
If you've ever played Doom, or typed "devmode" in the console while playing SRB2, you know there is a way to display the map of the level. This script allows you to skip the middleman and have a permanent minimap at the top right of your screen telling you where you are.

Features:

-Impassable / passable linedefs are colored exactly like they are in Zone Builder, so it should be immediately familiar to anyone who has used it.

-Other players also show up on your minimap (upon request), so I suppose it's good for ringslinger gametypes?

Commands:

mm_radius: Defines how much of the level you want drawn in your minimap. Larger values mean bigger chunks, and may cause performance issues. (200 to 1600 FRACUNITs, default 1000 FRACUNIT)

mm_hudsize: Defines the size of your hud. Can go up to 160 pixels. (10 to 160 pixels, default 40)

mm_drawcount: Defines how many pixels should be spent to draw a linedef. Set this to lower values if you're having performance issues. (5 to 80, default 20)

mm_fixed: Defines whether the map should stay fixed or not. 0 means it rotates with the player, 1 (or any number value, really) disables rotation. (Default 0).

mm_corner: Aligns the minimap to a corner. Options are "tr", "tl", "br" and "bl". (Top Right, Top Left, Bottom Right, Bottom Left)

mm_offset: How much the hud should be aligned AWAY from the corners. Takes two numbers. Always enter positive numbers for this one. (e.g. mm_offset 10 0 will shift it 10 pixels away from the right side.

mm_enable: Enables / disables the hud. Dunno why it took me 5.5 years to add this one.
 

Attachments

  • srb20122.gif
    srb20122.gif
    3.1 MB · Views: 2,446
  • srb20126.gif
    1.9 MB · Views: 1,398
  • VL_Minimap-v2.lua
    4.8 KB · Views: 2,288
  • L_Minimap-v3.lua
    7.4 KB · Views: 34
Last edited:
Henlo. Can you please use (p.cmd.angleturn << 16) in place of p.mo.angle for simple control support? Thank youwu.
 
Updated to v2, with both of those suggestions added.
 
Pretty nice, although it covers up the Ring counter in the multiplayer special stages. Is it possible for you to make it movable, like move it to any corner of the screen?
 
How can I change the position of the map?
Post automatically merged:

Forget about it. I already knew how. You only have to change two variables.

Position Variables:
local bwidth = p.hudsize
local bstx = 310 - bwidth --Horizontal align
local bsty = 10 --Vertical align

Also, if somebody is reading this, I want to tell you that you can also modify the default values of the addon changing the values of the following method: local function automapInfo(p).
 
Last edited:
How do I download it? I REALLY need it cuz' I'm searching all the emblems (oh nevermind XD)
 
Last edited:
Oh my god an update after FIVE YEARS?!?!??!!

I forgot this thread is ancient and the download link is in this page, NOT the actual addon page, so I thought the link was permanently lost, so I re-wrote the entire thing in 2 hours. Funny.

Added options to :

-Align the map to a corner
-Offset it away from sides
-Disable it entirely
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top