Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void BackJitter(CUserCmd* pCmd)
- {
- int random = rand() % 100;
- // Small chance of starting fowards
- if (random < 98)
- // Look backwards
- pCmd->viewangles.y -= 180;
- // Some gitter
- if (random < 15)
- {
- float change = -70 + (rand() % (int)(140 + 1));
- pCmd->viewangles.y += change;
- }
- if (random == 69)
- {
- float change = -90 + (rand() % (int)(180 + 1));
- pCmd->viewangles.y += change;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement