Written for Hidden:Source Beta 4b.
It adjusts the rate at which Hidden players gain or lose stamina according to your desired tickrate. You can boost a
-tickrate 33'd server to regenerate or drain (while clinging) as if the server was
-tickrate 100'd. Similarly you can reduce a
-tickrate 100's server to regenerate or drain as if it were
-tickrate 33'd if you want to keep the network properties but give the Hiddens something else to worry about.
Code:
/*
* Hidden:SourceMod - Fake Rate
*
* Description:
* Adjusts the Hidden's stamina regeneration and cling-drain rates to match desired tickrate.
*
* Convars:
* hsm_fr_tick [rate] : The effective tickrate the Hidden's stamina flows at. Defaults to server's tickrate.
* hdn_staminadrain [factor] : The rate at which to drain stamin while clinging to the wall. Default: -0.095.
*
* Changelog:
* v1.0.1
* Added drain state for +aura. -Thx Darkhand.
* v1.0.0
* Initial release.
*
* Known issues:
* Regeneration & drain rates are approximate as I don't know the hard-coded rates. They seem to be:
* 0.3 regeneration per tick on-ground.
* 0.1 drain per tick in aura.
* hdn_staminadrain drain per tick while clinging.
*
* Contact:
* Paegus: [email protected]
* SourceMod: http://www.sourcemod.net > Community > Forums > SourceMod
* Hidden:Source: http://www.hidden-source.com > Forums > Server Admins
*/