Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!(iFlags & FL_ONGROUND))
- {
- if (tabs1.findbutton("Auto Strafer")->on&&!tele)
- {
- auto flYawBhop = 0.f;
- if (pLocalEntity->GetVelocity().Length() > 50.f)
- {
- auto x = 30.f, y = pLocalEntity->GetVelocity().Length(), z = 0.f, a = 0.f;
- z = x / y;
- z = fabsf(z);
- a = x * z;
- flYawBhop = a;
- }
- if (fakestrafeb)
- {
- if (!(pCmd->mousedx > 0))
- fakeangle.y += flYawBhop;
- pCmd->sidemove = 250;
- }
- else
- {
- if (!(pCmd->mousedx < 0))
- fakeangle.y -= flYawBhop;
- pCmd->sidemove = -250;
- }
- fakestrafeb = !fakestrafeb;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement