Skip to content

Improved WeaponClass, WeaponID, WeaponType, and WeaponSlot for CS:GO/CS:S. #478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 19, 2025
Prev Previous commit
Fixed a bug in WeaponClass.parse_weapon_constants.
  • Loading branch information
CookStar committed Jun 10, 2023
commit d571bc018b21e89af36c0b3f83d94c4db356bf38
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def parse_weapon_constants(value, weapon_constants):
"""
if isinstance(value, int):
try:
return weapon_constants(_id)
return weapon_constants(value)
except ValueError:
pass
elif isinstance(value, str):
Expand Down