Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. float hitchance(IClientEntity* pLocal, CBaseCombatWeapon* pWeapon)
  2. {
  3. float hitchance = 101;
  4. if (!pWeapon) return 0;
  5. if (ragebotconfig.bHitchance && ragebotconfig.flHitchanceAmt > 1)
  6. {
  7. float inaccuracy = pWeapon->GetInaccuracy();
  8. if (inaccuracy == 0) inaccuracy = 0.0000001;
  9. inaccuracy = 1 / inaccuracy;
  10. hitchance = inaccuracy;
  11. }
  12. return hitchance;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement