View Single Post
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 06-28-2017 , 15:08   Re: Tickrate Enabler Not working
Reply With Quote #7

Quote:
Originally Posted by psychonic View Post
TF2's engine is tickless.
Are you sure? According to this page, TF2 servers run at 66 tickrate by default and cannot be changed: https://developer.valvesoftware.com/...yer_Networking

And AFAIK for it to be changeable, you need a plugin that hooks GetTickInterval(), such as this:
Code:
float GetTickInterval()
{
	float tickinterval = DEFAULT_TICK_INTERVAL;

	if ( CommandLine()->CheckParm( "-tickrate" ) )
	{
		float tickrate = CommandLine()->ParmValue( "-tickrate", 0 );
		if ( tickrate > 10 )
			tickinterval = 1.0f / tickrate;
	}

	RETURN_META_VALUE(MRES_SUPERCEDE, tickinterval );
}
(Code taken from daemon32's Tickrate Enabler.)

What would happen if you use SourceMod functions such as GetGameTime() and GetGameTickCount()?
__________________
retired

Last edited by shavit; 06-28-2017 at 15:09.
shavit is offline