Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syberiak/csxhair
Decode, edit and encode CS:GO/CS2 crosshairs easily.
https://github.com/syberiak/csxhair
Last synced: about 2 months ago
JSON representation
Decode, edit and encode CS:GO/CS2 crosshairs easily.
- Host: GitHub
- URL: https://github.com/syberiak/csxhair
- Owner: SyberiaK
- License: mit
- Created: 2023-09-09T12:03:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-30T16:40:52.000Z (7 months ago)
- Last Synced: 2024-11-10T10:20:11.731Z (2 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CSXhair
[![PyPI release]][pypi]
[![Python supported versions]][pypi]
[![License]](./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.```python
from csxhair import Crosshairmy_crosshair = Crosshair.decode('CSGO-ZEw8O-KGXNu-4TTUU-VyXbD-SBCtG')
print(my_crosshair.gap) # -3.0my_crosshair.size += 5
my_crosshair.recoil = True # exclusive to CS2
print(my_crosshair.encode()) # CSGO-hbBNp-7jd43-34SWO-9ck6v-p4FyBprint(my_crosshair.csgo_commands) # ['cl_crosshairgap -3.0', ..., 'cl_crosshairdot 0', ...]
print(my_crosshair.cs2_commands) # ['cl_crosshairgap -3.0', ..., 'cl_crosshairdot false', ...]
```[pypi]: https://pypi.org/project/csxhair/
[PyPI Release]: https://img.shields.io/pypi/v/csxhair.svg?label=pypi&color=green
[Python supported versions]: https://img.shields.io/pypi/pyversions/csxhair.svg?label=%20&logo=python&logoColor=white
[License]: https://img.shields.io/pypi/l/csxhair.svg?style=flat&label=license*Special thanks to [Aquarius](https://github.com/aquaismissing) for making a rough implementation led to this package.*