Half Life 2 Save Menu

If you liked this item, please rate it up on Steam Workshop page.

Author: Captain Applesauce

Last revision: 21 Nov, 2017 at 18:20 UTC

File size: 7.17 KB

On Steam Workshop

Description:

This addon enables anyone to access the old Source Engine save and load menus via Options -> Half-Life 2 Save Menu -> Save and Load.

The settings for this addon are also located under Options -> Half-Life 2 Save Menu -> Options.

If you have any old GMod saves from Garry’s Mod 12 (or possibly earlier), you can reload them as well.

If you would like to fix level transitions as well, you could download the "Level Transition Fix" addon (found here), or the "Basic Campaign" addon (found here).

For loading and saving options to appear in the main/pause menu, download Menu Mods from this[github.com] page. Follow the instructions inside the "README" file (the contents of which should already be displayed on the web page).

To fix sound bugs that occur in some locations on maps, follow these instructions:

1. Copy and paste the following URL in a web browser (Remove the _): https://_/mega.nz/#!bQYkAQJD!WASGqqcI63wZfd1SByDOw55F6a5ZiARtvuZlRUmB1yI
2. Download and extract the contents of the .zip file to your addons directory (C:Program Files (x86)SteamsteamappscommonGarrysModgarrysmodaddons). You may check the file for viruses if you wish.

NOTE: If you have any addons that override in-game sounds, this addon may reverse the effects of the other addon. This cannot be helped.

If you would like to play the non-episodic Half-Life 2 campaign with this addon, follow these instructions:

1. Copy and paste the following URL in a web browser (Remove the _): https://_/mega.nz/#!ud5wgBTQ!1EyZ6qcGZAg_Ve5hZ7x773JlqzHLGGz7OobO89TJuIY
2. Download and extract the contents of the .zip file to your addons directory (C:Program Files (x86)SteamsteamappscommonGarrysModgarrysmodaddons). You may check the file for viruses if you wish.

NOTE 1: You must have Half-Life 2 mounted for this addon to work properly.
NOTE 2: This addon will have the same effect on in-game sounds as the one previously mentioned.

To control which entities with certain classes are deleted upon loading, use the following functions in the "GM:Initialize()" hook. (It is not guaranteed to work when placed directly inside a file’s source code, as the code can be run before any of these functions are defined.):

HL2SaveSys.AddClassNoSave(class, key, condition) – Adds an entity class to be scheduled for deletion. The "key" argument acts as an identifier. The "condition" argument can either be a boolean (make "true" to delete the entity), or a function with one argument as an entity in question (return "true" to delete and "false" or "nil" to keep the entity).

HL2SaveSys.RemoveClassNoSave(class, key) – Attempts to remove a class blacklist with the specified classname (the "class" argument) and identifier (the "key" argument). Prints an error message if there is no such blacklist.

HL2SaveSys.ClassNoSaveExists(class, key) – Checks if a class blacklist with the specified classname and identifier exists.

HL2SaveSys.GetClassNoSave(class, key) – Attempts to retrieve the function/boolean value of a class blacklist with the specified classname and identifier. Prints an error message if there is no such blacklist.