Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. if (cmd->buttons & IN_ATTACK) // send attack command
  2. {
  3. if (!has_zeused && m_settings.s_misc.lightning_shot)
  4. {
  5. interfaces::g_engineclient->client_cmd("lastinv", 0); // switch as we attack with the old weapon
  6. aimbot::has_zeused = true;
  7. }
  8.  
  9. aimbot::last_fire_tick = cmd->tick_count;
  10. }
  11. else
  12. {
  13. if (cmd->tick_count - aimbot::last_fire_tick == 1) // 1 tick after we shot
  14. {
  15. if (m_settings.s_misc.lightning_shot)
  16. {
  17. cmd->buttons |= IN_ATTACK; // send attack command this tick as well, while the zeus is in hand
  18. aimbot::has_zeused = false;
  19. interfaces::g_engineclient->client_cmd("lastinv", 0); // switch back because the lightning has already shown
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement