diff --git a/README.md b/README.md new file mode 100644 index 0000000..c834118 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +[![All Contributors](https://img.shields.io/badge/dynamic/json?color=orange&label=all%20contributors&query=%24.contributors.length&url=https%3A%2F%2Fraw.githubusercontent.com%2Fovertrack-gg%2Fovertrack-game-processing%2Fmaster%2F.all-contributorsrc&style=flat-square)](#contributors-) +[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) +[![Discord chat](https://img.shields.io/badge/chat-on_discord-008080.svg?style=flat-square&logo=discord)](https://discord.gg/JywstAB) + +# overtrack-game-processing +This Repository contains the backend, client code for [OverTrack](https://overtrack.gg)'s `Apex Legends` and `Valorant` game processing. +The Code for extracting data from gameplay footage can be found [here](https://github.com/overtrack-gg/overtrack-cv). + + diff --git a/overtrack/apex/collect/apex_game/weapons.py b/overtrack/apex/collect/apex_game/weapons.py index 29a8a75..1f1a57b 100644 --- a/overtrack/apex/collect/apex_game/weapons.py +++ b/overtrack/apex/collect/apex_game/weapons.py @@ -30,29 +30,40 @@ class Weapons: logger: ClassVar[logging.Logger] = logging.getLogger(__qualname__) WEAPON_COLOURS_SELECTED = { + #COLOR FORMAT: BGR + # TODO Only use for ammo type! + # Light - (45, 84, 125): (True, 'Light'), + (54, 84, 125): (True, 'Light'), (28, 42, 60): (False, 'Light'), - + # Heavy (89, 107, 56): (True, 'Heavy'), - (42, 51, 34): (False, 'Heavy'), - + (45, 52, 33): (False, 'Heavy'), + # Energy (40, 110, 90): (True, 'Energy'), (29, 55, 46): (False, 'Energy'), - + # Shotgun - (7, 32, 107): (True, 'Shotgun'), + (7, 32, 197): (True, 'Shotgun'), (10, 17, 48): (False, 'Shotgun'), - + # Sniper - (126, 42, 53): (True, 'Shotgun'), - (57, 20, 24): (False, 'Shotgun'), - - # Special - (17, 149, 178): (True, 'Special'), - (39, 78, 90): (False, 'Special'), + (75, 64, 143): (True, 'Sniper'), + (36, 31, 67): (False, 'Sniper'), + + # Arrows + (47, 124, 142): (True, 'Arrows'), + (36, 63, 71): (False, 'Arrows'), + + # Special (Carepackage) + (55, 1, 178): (True, 'Special'), + (31, 18, 84): (False, 'Special'), + + # Ability (Rampart) + (161, 60, 161): (True, 'Ability'), + (255, 255, 255): (False, 'Ability'), # TODO Impossible scenario! } WEAPON_COLOUR_MATCH_THRESHOLD = 30