Skip to content

This was once just a plugin to prevent game unpausing.

Notifications You must be signed in to change notification settings

InputEvelution/SourcePauseTool

 
 

Repository files navigation

SourcePauseTool

Actions Status

A plugin for all your pausing needs.

Usage

  1. Download the DLL corresponding to your game / engine:

    SDK SPT DLL
    Source SDK (Base) 2013 / SteamPipe / Latest spt-2013.dll
    Black Mesa spt-bms.dll
    Source SDK (Base) 2006 / Old Engine spt-oe.dll
    Portal 2 spt-p2.dll
    Source SDK (Base) 2007 / Source Unpack / New Engine spt.dll
  2. Place the DLL into the correct folder:

    SDK Folder
    Old Engine Topmost bin with AdminServer.dll etc.
    Old Engine mods Source SDK Base\bin
    Half-Life 2 hl2
    Half-Life 2: Episode 1 episodic
    Half-Life 2: Episode 2 ep2
    Portal portal
    Portal 2 portal2
    Black Mesa bms
  3. Launch the game.

  4. Go to Options > Keyboard > Advanced, check Enable developer console, and press OK.

  5. Press the tilde key (~) and enter plugin_load spt into the developer console.

    Add plugin_load spt to cfg/autoexec.cfg to load SourcePauseTool automatically.

    Loading SourcePauseTool more than once will crash the game!

Building

You will need Visual Studio 2019 and git.

  1. Run the following in cmd:

    git clone --recurse-submodules https://github.com/YaLTeR/SourcePauseTool.git
    
    SourcePauseTool\spt.sln
    
  2. If Windows asks which program to open spt.sln with, choose Visual Studio.

    If Visual Studio asks to retarget projects, press OK.

    Once Visual Studio is open, right click libMinHook, click Properties, change Platform Toolset to the one corresponding to your Visual Studio version, and press OK.

  3. Choose the build configuration

    SDK Configuration
    Source SDK 2007 (Source Unpack/New Engine/Orange Box) Release
    Source SDK 2013 (SteamPipe/latest) Release 2013
    Black Mesa Release BMS
    Source SDK 2006 (Old Engine) Release OE
    Portal 2 Release P2
  4. Click Build > Build Solution.

    spt*.dll will be in hl2sdk\utils\SourcePauseTool\<Build Configuration>

.srctas documentation

.srctas is the SPT TAS script format. You can find its documentation here.

About

This was once just a plugin to prevent game unpausing.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 96.7%
  • Python 3.3%