lethal-guitar / RigelEngine

A modern re-implementation of the classic DOS game Duke Nukem II
GNU General Public License v2.0
920 stars 60 forks source link

Have the God (Tec) mode cheat #821

Closed Doorhenge closed 9 months ago

Doorhenge commented 2 years ago

On King Duke's webpage you can patch the exe to enable the god mode cheat.

Could this delightful version have it as well?

I love the smooth scrolling.

lethal-guitar commented 2 years ago

Thanks, happy to hear you enjoy the smooth scrolling! Sure why not, I'm happy to look into adding that cheat, thanks for the suggestion.

I should also mention that there's already a god mode for development/testing purposes in the engine, which you could use in the meantime. Run the exe with the command line option -d to enable debugging features, and then press F10 while in a level to toggle god mode on or off.

Doorhenge commented 2 years ago

oh sorry, thanks.

lethal-guitar commented 2 years ago

@Doorhenge ah no worries, it's all good. I'm always happy for suggestions 🙂

lethal-guitar commented 2 years ago

So I was wondering about what key combo to use for this cheat. K1n9_Duk3's patch uses G-O-D because the original exe already has code to check for that key combo in order to show the "Praying won't help you" message, so it's easy to hook into that with the patch. But in RigelEngine, any key combo is possible. Since it's called "Tec mode", maybe T-E-C?