[minimod][v0.1] Autopause

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
Post Reply
User avatar
m8f
 
 
Posts: 1445
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)
Contact:

[minimod][v0.1] Autopause

Post by m8f »

m8f - solving imaginary problems since 2018.

This is a script that automatically pauses the game if there is no player input for some time.

Some time is from 10 to 20 seconds (see how to tune).

Helps preventing situations when you are distracted and forget to pause the game, and come back to discover that a lot of nasty things happened in the game.

Download

How to use
  1. Load autopause-v*.pk3, or add it to autoloads in gzdoom.ini. Mind the version in the file name.
  2. Add this line to your autoexec.cfg:

    Code: Select all

    wait 1; ap_check
    Make sure your autoexec.cfg is loaded by checking your gzdoom.ini. Or, alternatively, type ap_check in console each time you launch GZDoom.
How to tune

Time

The time after which the pause is engaged is not configurable in the options, however, you can open this mod with Slade, go to keyconf.txt, find the line that starts with alias ap_check "wait 350;, and change 350 to whatever you like. This time is in game ticks. One second is exactly 35 tics. It takes from one to two specified time values to engage the pause.

Pause

Another option is to open main menu instead of pausing the game. To do this, open the mod with Slade, go to keyconf.txt, find the line that starts with alias ap_pause, and change pause at the end with openmenu mainmenu.

This mod was a part of m8f's toolbox.
Post Reply

Return to “Gameplay Mods”