Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PoC] Map Screen
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#1
[PoC] Map Screen

I haven't gotten Doom yet (though I want to), but I was watching some Let's Plays of it. When I saw the map screen, it reminded me of the map screen that was in the Metroid Prime games, and those kinds of level maps I think are very cool. So, naturally, I decided to make one.

[Image: p9ASMan.jpg]

In contrast to some of my other HUD-altering projects that I've undertaken in the past, this one I actively tried to accomplish without any custom modules. I managed to actually get away with that, discovering the way to draw directly to the screen without relying on modules and instead using the capabilities of the map script alone.

The map screen can be panned and rotated by using the mouse and WASD keys. The screen will print a label showing you the name of the room you are looking at as well as highlighting the room itself. It also indicates where the player is standing as well as the room the player is currently in.

There were a few ways I thought of pulling the map screen functionality off, and the first was to use a camera object within a terminal screen. My issue with that, however, is that there are some effects and capabilities that I might want to use that a camera-terminal pairing wouldn't support, so instead I took the other approach - actually move the player camera itself.

Now working with a 3D map screen meant that while it's technically possible to do all the work in an OnGui function, that approach would make the entire process far more complex than necessary. Instead, I built the 3D map layout in an unvisited part of the map and positioned the camera to view that. Remember, cheating during the design process is never a bad thing. Wink

It's pretty rudimentary, but hopefully this lays out the foundation for people who want this kind of stuff in their mods. As usual, you can get it on the Steam Workshop or by downloading the mod files directly from here.
05-22-2016, 05:16 AM
Find
A.M Team Offline
Banned

Posts: 811
Threads: 63
Joined: Sep 2014
#2
RE: [PoC] Map Screen

Angel

Rep +. From what I have played this has a lot of potential to make great experiences without making I would like to say is there away to fade the players vision one or is it an in-fixable bug?

Other than that, brilliant. Big Grin
05-22-2016, 12:06 PM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#3
RE: [PoC] Map Screen

Nice.

05-22-2016, 04:35 PM
Find
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#4
RE: [PoC] Map Screen

(05-22-2016, 12:06 PM)TheDoctorPoo Wrote: Angel

Rep +. From what I have played this has a lot of potential to make great experiences without making I would like to say is there away to fade the players vision one or is it an in-fixable bug?

Other than that, brilliant. Big Grin

I'm not sure I understand the question. Are you asking if you can fade the player's vision? Effect_FadeIn and Effect_FadeOut are what you want, if so.
05-22-2016, 07:51 PM
Find
A.M Team Offline
Banned

Posts: 811
Threads: 63
Joined: Sep 2014
#5
RE: [PoC] Map Screen

(05-22-2016, 07:51 PM)Abion47 Wrote: I'm not sure I understand the question. Are you asking if you can fade the player's vision? Effect_FadeIn and Effect_FadeOut are what you want, if so.

No, I mean when you exit the map terminal you fade the screen twice. How about disabling one fade for another?
05-22-2016, 08:07 PM
Find
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#6
RE: [PoC] Map Screen

I'm not sure, I never had that happen to me really. It probably has something to do with how I handled the Terminal interaction. I'm basically hijacking/overriding the default Terminal behavior, and that has probably led to a whole lot of unintended behavior. There are probably ways to fix it, but the most straightforward way would be to override the Terminal script, which I wanted to avoid with this particular project.
05-22-2016, 09:29 PM
Find




Users browsing this thread: 2 Guest(s)