mirror of
https://github.com/daemon32/tickrate_enabler.git
synced 2025-12-09 03:18:30 +00:00
Make the DLL force the server to 100 tick
This commit is contained in:
parent
ae95c6461c
commit
a26b9f8cce
@ -93,13 +93,7 @@ SH_DECL_HOOK0(IServerGameDLL, GetTickInterval, const, 0, float);
|
|||||||
float GetTickInterval()
|
float GetTickInterval()
|
||||||
{
|
{
|
||||||
float tickinterval = DEFAULT_TICK_INTERVAL;
|
float tickinterval = DEFAULT_TICK_INTERVAL;
|
||||||
|
tickinterval = 1.0f / 100;
|
||||||
if ( CommandLine()->CheckParm( "-tickrate" ) )
|
|
||||||
{
|
|
||||||
float tickrate = CommandLine()->ParmValue( "-tickrate", 0 );
|
|
||||||
if ( tickrate > 10 )
|
|
||||||
tickinterval = 1.0f / tickrate;
|
|
||||||
}
|
|
||||||
|
|
||||||
RETURN_META_VALUE(MRES_SUPERCEDE, tickinterval );
|
RETURN_META_VALUE(MRES_SUPERCEDE, tickinterval );
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user