-
Автор темы
- #1
C++:
if (m_pCSPlayer->GetFlags() & FL_ONGROUND)
{
float velocitymodifier = m_pCSPlayer->GetVelocityModifier();
if (velocitymodifier < 1.0f)
{
float newvelocitymodifier = velocitymodifier + (Interfaces::Globals->frametime * 0.4f);
if (newvelocitymodifier >= 0.0f)
newvelocitymodifier = fminf(newvelocitymodifier, 1.0f);
if (velocitymodifier != newvelocitymodifier)
m_pCSPlayer->SetVelocityModifier(velocitymodifier);
}
}