-
Автор темы
- #1
C++:
/*
i skip some checks like it:
if ( !last_frame_stage
&& *((item_index ^ *dword_5D91863C) + weapon) == 64
&& (cmd->m_buttons & IN_RELOAD) == 0
&& !*((wait_for_no_attack ^ *off_5D9182DC) + local)
&& (!allow_untrusted() || !weapon_accuracy_nospread || !(*(*weapon_accuracy_nospread + 52))(weapon_accuracy_nospread))
&& !freeze_period()
&& !*((defusing ^ *off_5D91814C) + local) )
*/
if ( weapon->clip1( ) > 0 )
{
float v8 = TICKS_TO_TIME( local->tick_base( ) + 1 );
if ( v8 >= local->next_attack( ) )
{
if ( v8 >= weapon->next_primary_attack( )
&& weapon->activity( ) == 208
&& v8 > weapon->post_pone_fire_ready_time( ) )
{
if ( weapon->next_secondary_attack( ) <= v8 )
goto LABEL_21;
cmd->m_buttons |= IN_ATTACK2;
}
else
cmd->m_buttons |= IN_ATTACK
}
}
LABEL_21:
if ( !( weapon->clip1( ) ) && weapon->primary_reserve_ammo_count( ) > 0 )
cmd->m_buttons = cmd->m_buttons & ~(IN_RELOAD | IN_ATTACK);