Page 1 of 1

[CS:GO] Server Hibernate Fix

Posted: Mon Jan 27, 2020 4:09 pm
by Andreeas
Server Hibernate Fix
A Plugin to work-around the workshop map server hibernate problem

Description
This Plugin works around the [MM] Sending reservation request to... problem which appears if you have a workshop map loaded, all clients disconnected and the server goes into hibernation, stopping to tick and blocking new clients to join.
It achieves that by automatically changing to a "stock map" like de_dust just after all clients disconnected and before hibernation.

Personal note
I'm aware that there are plugins out there with similar functionality but I decided to write one for this specific problem with CS:GO as of a friends request. It targets admins who wanna utilize the hibernation feature without breaking connectivity.

Cvars
This plugin generates it's config file in csgo/cfg/sourcemod/shf.cfg after first load.

Code: Select all

sm_shf_version returns current plugin version
sm_shf_enabled allows the admin to enable or disable the plugin on the fly <1 = Enabled/Default, 0 = Disabled>
sm_shf_default_map defines the default map to fall back to before server hibernates <de_dust = Default>
sm_shf_ingame_clients_only defines when to trigger the map fallback action <1 = Ingame, 0 = Connected/Default>

Alternate location for binaries, sources and changelogs
Head over to Github.

Installation
Getting it to run is pretty straight forward:
You should have at least SourceMod v1.5.3
Just put shf.smx in your sourcemod/plugins directory and load it.
Adjust cfg/sourcemod/shf.cfg to your needs.


Download
Source