kraflab / dsda-doom

This is a successor of prboom+ with extra tooling for demo recording and playback, with a focus on speedrunning and quality of life.
342 stars 87 forks source link

Lineskip practice trails #496

Closed MarkJeronimus closed 4 months ago

MarkJeronimus commented 5 months ago

A toggle is added to the 'automap' section of the options menu. (No key binding is added.)

When the full automap cheat is used, this feature shows a trail of the last 350 unique coordinates of the player on the map (at least 10 seconds of movement). This can greatly aid speedrunners in finding successful lineskip set-ups.

The image below shows a successful lineskip in MAP01, southwards, if that line had a trigger: one tic your center is still above the line, next tic your entire hitbox is below the line.

image

PS. I hope the "local player" implementation is correct in case of network play (I haven't tested this)

MarkJeronimus commented 5 months ago

Thoughts:

kraflab commented 4 months ago

I've adopted the foundations of this PR here: https://github.com/kraflab/dsda-doom/commit/ec542d1837c2eee9aa4d5d9257631c49be31622f (basically the core code with some changes but not hooked up yet). I'm testing different integrations and will probably extend this to a few different modes (tracking all position checks vs checking locations where lines are checked etc). I have a video on the discord if you're curious how that looks with fences for instance. I'll hook things up soon so no need to update this PR, but I'll leave it up until the feature is available in the dev branch.

MarkJeronimus commented 4 months ago

Notes: I made a typo (style error) in trailpoint_t. I indented one space instead of two. I like to keep in the style on whatever I'm working on and because this differs from my own style it wasn't obvious to me.

If you're drawing 'Cross marking center' and 'Bounding box' in the same color, it would make more sense to draw 'Bounding box' first instead of the other way around (which was only the case so the Bounding box was drawn on top)

I'll look for the discord. [edit] I can't find it.

kraflab commented 4 months ago

Finished for now https://github.com/kraflab/dsda-doom/commit/60e9c15ed857a334fc6f779beb9628b8ace4ac25

@MarkJeronimus https://discord.gg/yxaFP8T59H

MarkJeronimus commented 4 months ago

I found that invite before, but I was searching for DSDA, not Hell on Earth.

But the invite link says I'm banned there. Since I've never been there nor known anyone from there I can only assume it's whitelisted?