-
Автор темы
- #1
Rapid Fire code:
Credits: lsamplel
Credits: lsamplel
Rapid fire:
if (F::RAGE::rage->rage_data.rapid_fire) {
if (rage->sub_tick_data.command == impl::command_msg::rapid_fire) {
// override angles just to prevent
Input->m_view_angles = Vector_t(rage->sub_tick_data.best_point.x, rage->sub_tick_data.best_point.y, range->sub_tick_data.best_point.z);
Input->m_view_angles.clamp();
InputHistoryEntry->m_pViewCmd->m_andValue = range->sub_tick_data.best_point;
InputHistoryEntry->m_pViewCmd->m_angValue.Clamp();
// override tickcount
Input History Entry->m_n Player TickCount = 0;
Input->m_player_tick_count = 0;
// perform shooting
SDK::Cmd->m_buttons.m_n Value |= IN_ATTACK;
}
else
SDK::Cmd->m_buttons.m_n Value &= ~IN_ATTACK;
}