Skip to content

Commit

Permalink
Key-binding for Computer Area Map cheat
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlaux committed May 12, 2024
1 parent 99c7c20 commit 5121966
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- **_Level Stats Format_** settings
- Removed _Kills % in Stats display_ setting in favor of them
- **Minimap zooming** (keyboard only)
- **Key-binding for Computer Area Map cheat**
- Toggle to **disable the Killough-face easter egg**
- Toggle to **make attackers face fuzzy targets straight**
- Toggle to **allow Level Stats icons**
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ All of these are CFG-Only, so their CVAR names are included.
- **_'TNTEM'_** as an alternative to _'KILLEM'_
- **_'FPS'_** as a replacement for _'SHOWFPS'_
- **Mid-air control while in noclipping mode** [p.f. Crispy Doom]
- **Key-binding for Computer Area Map cheat**
- Reenabled **_'NOMOMENTUM'_** cheat [p.f. Crispy Doom]

For more details, see the _New Nugget Doom cheats_ section of `docs/cheats.md`.
Expand Down
1 change: 1 addition & 0 deletions src/m_cheat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1812,6 +1812,7 @@ static const struct {
{ input_freeze, not_net|not_demo, {cheat_freeze}, 0 },
{ input_avj, not_net|not_demo, {cheat_avj}, 0 },
// [Nugget] ----------------------------------------------------------------
{ input_idbeholda, not_net|not_demo, {cheat_pw}, pw_allmap },
{ input_infammo, not_net|not_demo, {cheat_infammo}, 0 },
{ input_fastweaps, not_net|not_demo, {cheat_fastweaps}, 0 },
{ input_resurrect, not_net|not_demo, {cheat_resurrect}, 0 },
Expand Down
10 changes: 9 additions & 1 deletion src/m_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -2379,11 +2379,19 @@ default_t defaults[] = {
input_idbeholdl, { {0, 0} }
},

{ // [Nugget]
"input_idbeholda",
NULL, NULL,
{0}, {UL,UL}, input, ss_keys, wad_no,
"key to give computer area map",
input_idbeholda, { {0, 0} }
},

{
"input_iddt",
NULL, NULL,
{0}, {UL,UL}, input, ss_keys, wad_no,
"key to reveal map",
"key to reveal map (IDDT)", // [Nugget] Tweaked description
input_iddt, { {0, 0} }
},

Expand Down
1 change: 1 addition & 0 deletions src/m_input.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ enum
input_map_teleport, // Teleport to Automap pointer
input_map_mini, // Minimap

input_idbeholda,
input_infammo,
input_fastweaps,
input_resurrect,
Expand Down
3 changes: 2 additions & 1 deletion src/mn_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,8 @@ static setup_menu_t keys_settings6[] = {
{"Berserk", S_INPUT, CHEAT_X, M_SPC, {0}, m_scrn, input_idbeholds},
{"Partial Invisibility", S_INPUT, CHEAT_X, M_SPC, {0}, m_scrn, input_idbeholdi},
{"Radiation Suit", S_INPUT, CHEAT_X, M_SPC, {0}, m_scrn, input_idbeholdr},
{"Reveal Map", S_INPUT, CHEAT_X, M_SPC, {0}, m_scrn, input_iddt },
{"Computer Area Map", S_INPUT, CHEAT_X, M_SPC, {0}, m_scrn, input_idbeholda}, // [Nugget]
{"Reveal Map (IDDT)", S_INPUT, CHEAT_X, M_SPC, {0}, m_scrn, input_iddt }, // [Nugget] Tweaked description
{"Light Amplification", S_INPUT, CHEAT_X, M_SPC, {0}, m_scrn, input_idbeholdl},
{"No Target", S_INPUT, CHEAT_X, M_SPC, {0}, m_scrn, input_notarget },
{"Freeze", S_INPUT, CHEAT_X, M_SPC, {0}, m_scrn, input_freeze },
Expand Down

0 comments on commit 5121966

Please sign in to comment.