Skip to content

Comments

[added] can travel tunnel by key#2486

Open
mugg91 wants to merge 1 commit intotranshumandesign:masterfrom
mugg91:mugg91-travel-menu-by-key
Open

[added] can travel tunnel by key#2486
mugg91 wants to merge 1 commit intotranshumandesign:masterfrom
mugg91:mugg91-travel-menu-by-key

Conversation

@mugg91
Copy link
Contributor

@mugg91 mugg91 commented Dec 6, 2025

Description

This lets you select a tunnel in the tunnel travel menu by num key, similar to how you can do it in shops.

The keys are 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, from left to right for both teams.
The originating tunnel that says "You are here" is omitted.

I didn't find a way to put a small number on the CGridButtons to quickly see the number to press to travel there.
It would be nice. Otherwise let me know how to implement it or how to otherwise improve this.

Tested in offline, works.

Test

Place at least 3 tunnels.
Open tunnel travel menu:

  • Assuming you start from the middle tunnel, you can press 1 to go to the left tunnel or 3 to go to the right tunnel.
  • Assuming you start from the left tunnel, you can press 2 to go to the middle tunnel or 3 to go to the right tunnel.
  • Assuming you start from the right tunnel, you can press 1 to go to the left tunnel or 2 to go to the middle tunnel.

Related PR

#2369

TerminalHash added a commit to TerminalHash/Gruhsha-CTF that referenced this pull request Dec 6, 2025
@Vam-Jam Vam-Jam added kind: Feature A pitch for a new feature or mechanic status: Testing needed An issue or PR needs to receive testing to verify the change or check for newly introduced bugs labels Dec 6, 2025
@mugg91
Copy link
Contributor Author

mugg91 commented Dec 6, 2025

Note: Right team can just spam 1 to go to the leftmost tunnel, while Left team needs to find the correct key first...
Perhaps the keys should be mirrored depending on team. As said, having numbers on the buttons would be nice.

@mugg91
Copy link
Contributor Author

mugg91 commented Dec 7, 2025

Perhaps tunnels should get assigned a number on creation, regardless of the order they appear in in the travel menu.
That way players can figure out a tunnel's number and will remember which tunnel is which number.
It would be same behavior for both teams as well, solving the above-mentioned problem.

But I think numbers on buttons is a must.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: Feature A pitch for a new feature or mechanic status: Testing needed An issue or PR needs to receive testing to verify the change or check for newly introduced bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants