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

Zipper

:hildaGun:
Retired Staff
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 600 FRACUNIT)

mm_hudsize: Defines the size of your hud. Can go up to 160 pixels, but like....don't do that. (20 to 160 pixels, default 60)

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

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).
 

Attachments

  • srb20122.gif
    srb20122.gif
    3.1 MB · Views: 2,279
  • srb20126.gif
    1.9 MB · Views: 1,347
  • VL_Minimap-v2.lua
    4.8 KB · Views: 2,169
Last edited:
Henlo. Can you please use (p.cmd.angleturn << 16) in place of p.mo.angle for simple control support? Thank youwu.
 
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:

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

Back
Top