Advertisement
animeisgay

css getrange

Apr 14th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. float GetRange(int iWeaponID)
  2. {
  3. switch (iWeaponID)
  4. {
  5. case WEAPON_AK47:
  6. case WEAPON_AUG:
  7. case WEAPON_AWP:
  8. case WEAPON_FAMAS:
  9. case WEAPON_G3SG1:
  10. case WEAPON_GALIL:
  11. case WEAPON_M249:
  12. case WEAPON_M4A1:
  13. case WEAPON_SCOUT:
  14. case WEAPON_SG550:
  15. case WEAPON_SG552:
  16. return 8192.f;
  17. break;
  18. case WEAPON_DEAGLE:
  19. case WEAPON_ELITE:
  20. case WEAPON_FIVESEVEN:
  21. case WEAPON_GLOCK:
  22. case WEAPON_MAC10:
  23. case WEAPON_MP5NAVY:
  24. case WEAPON_P228:
  25. case WEAPON_P90:
  26. case WEAPON_TMP:
  27. case WEAPON_UMP45:
  28. case WEAPON_USP:
  29. return 4096.f;
  30. break;
  31. case WEAPON_M3:
  32. case WEAPON_XM1014:
  33. return 768.f;
  34. break;
  35. default:
  36. return 0.f;
  37. break;
  38. }
  39.  
  40. return 0.f;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement