Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (cmd->buttons & IN_ATTACK) // send attack command
- {
- if (!has_zeused && m_settings.s_misc.lightning_shot)
- {
- interfaces::g_engineclient->client_cmd("lastinv", 0); // switch as we attack with the old weapon
- aimbot::has_zeused = true;
- }
- aimbot::last_fire_tick = cmd->tick_count;
- }
- else
- {
- if (cmd->tick_count - aimbot::last_fire_tick == 1) // 1 tick after we shot
- {
- if (m_settings.s_misc.lightning_shot)
- {
- cmd->buttons |= IN_ATTACK; // send attack command this tick as well, while the zeus is in hand
- aimbot::has_zeused = false;
- interfaces::g_engineclient->client_cmd("lastinv", 0); // switch back because the lightning has already shown
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement