-
Автор темы
- #1
C++:
if ( m_should_jump )
{
if ( player->move_type( ) == 2 && player->flags( ) & 1 == 0 )
{
if ( player->unk_vfunc( ) )
{
float v7 = 1.0 * 1000.0;
float velocity_z = player->velocity( ).z( );
if ( velocity_z >= 0.0 || v7 >= 11.0 )
{
/*
i skip some checks:
v8 = (*(*dword_5D918C68 + 48))(dword_5D918C68) * *interval_per_tick * 0.5;
for ( i = a2; i > 11.0; i = i + v6 )
{
v5 = a3 - v8;
v6 = *interval_per_tick * v5;
a3 = v5 - v8;
}
return a3 <= -580.0 && i >= 9.0;
*/
new_buttons = a4->m_buttons & ~(IN_DUCK | IN_JUMP);
goto LABEL_12;
}
if ( velocity_z < -580.0 && v7 > 9.0 )
{
new_buttons = a4->m_buttons & ~(IN_DUCK | IN_JUMP);
v9->m_buttons = new_buttons
}
}
}
}