Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- auto weapon = G::LocalPlayer->GetWeapon();
- float server_time = G::LocalPlayer->GetTickBase() * I::Globals->interval_per_tick;
- float next_shot = weapon->GetNextPrimaryAttack() - server_time;
- bool can_shoot = true;
- if (next_shot > 0)
- can_shoot = false;
- if (can_shoot)
- G::UserCmd->buttons |= IN_ATTACK;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement