Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float hitchance(IClientEntity* pLocal, CBaseCombatWeapon* pWeapon)
- {
- float hitchance = 101;
- if (!pWeapon) return 0;
- if (ragebotconfig.bHitchance && ragebotconfig.flHitchanceAmt > 1)
- {
- float inaccuracy = pWeapon->GetInaccuracy();
- if (inaccuracy == 0) inaccuracy = 0.0000001;
- inaccuracy = 1 / inaccuracy;
- hitchance = inaccuracy;
- }
- return hitchance;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement