Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.
/ autopause Public archive

Script that automatically pauses the game if there is no player input for some time.

License

Notifications You must be signed in to change notification settings

mmaulwurff/autopause

Repository files navigation

Autopause

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.

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:
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.

Info

Author: m8f

License: GPLv3

This mod is a part of m8f's toolbox.

About

Script that automatically pauses the game if there is no player input for some time.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages