Skip to main content

Decode, edit and encode CS:GO/CS2 crosshairs easily.

Project description

CSXhair

PyPI release Python supported versions License

CSXhair is a simple package for decoding/encoding CS:GO (and CS2!) crosshairs using game share codes.
All share codes are fully compatible with CS:GO/CS2.

from csxhair import Crosshair

my_crosshair = Crosshair.decode('CSGO-ZEw8O-KGXNu-4TTUU-VyXbD-SBCtG')
print(my_crosshair.gap)  # -3.0

my_crosshair.size += 5
my_crosshair.recoil = True  # exclusive to CS2
print(my_crosshair.encode())  # CSGO-hbBNp-7jd43-34SWO-9ck6v-p4FyB

print(my_crosshair.csgo_commands)  # ['cl_crosshairgap -3.0', ..., 'cl_crosshairdot 0', ...]
print(my_crosshair.cs2_commands)  # ['cl_crosshairgap -3.0', ..., 'cl_crosshairdot false', ...]

Special thanks to Aquarius for making a rough implementation led to this package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

csxhair-1.0.1.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

csxhair-1.0.1-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page