Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
----▓------------▓-------------▓----------------------------------▓
------▓------------▓--------▓---------------------------------------▓
--------▓----------▓------▓------------▓▓------------▓▓----------▓
----------▓------▓------▓------------▓▓▓▓--------▓▓▓▓----------▓
------▓▓▓▓▓▓▓▓▓▓▓▓▓-------------------------------------------▓
-----▓-------------------------▓-------------------▓-----------------------▓
--▓----------------------------▓--------▓-------------------▓-------------▓
▓-----------------▓▓▓▓▓▓▓----------▓---------------▓-------------▓
▓------------------------------▓------------▓▓▓▓▓▓▓▓------------▓
--▓---------------▓▓▓▓▓▓▓----------------------------------------▓
--▓--------------------------▓----------------------------------------▓
----▓▓▓▓▓▓▓▓▓▓▓▓
{
static ConVar* sv_maxupdaterate = Interfaces::CVar->FindVar("sv_maxupdaterate");
static ConVar* cl_interp_ratio = Interfaces::CVar->FindVar("cl_interp_ratio");
static ConVar* cl_interp = Interfaces::CVar->FindVar("cl_interp");
static ConVar* sv_client_min_interp_ratio = Interfaces::CVar->FindVar("sv_client_min_interp_ratio");
static ConVar* sv_client_max_interp_ratio = Interfaces::CVar->FindVar("sv_client_max_interp_ratio");
float ratio = clamp(cl_interp_ratio->GetFloat(), sv_client_min_interp_ratio->GetFloat(), sv_client_max_interp_ratio->GetFloat());
return max(cl_interp->GetFloat(), ratio / sv_maxupdaterate->GetFloat());
}