Skip to content
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

fix: possible invalid weapon in kill events #496

Merged
merged 1 commit into from
Jan 21, 2024
Merged

Conversation

akiver
Copy link
Collaborator

@akiver akiver commented Jan 13, 2024

Following #490.

  • It's not always a suffix - it can be a prefix.
  • The suffix/prefix is not the killer's name but the words vip or default (there may be others).
  • The team's name may also be part of the suffix/prefix

Noticed with demos coming from akiver/cs-demo-manager#727.
Example with this one https://mega.nz/file/LZFlhATB#aCO-g1hoGohndAKXJVUHzLCcbyzH-n7cGi9ZWO5UdSM.

Weapon's name from game events:

5e_vip_usp_silencer
5e_default_deagle
5e_vip_xm1014
5e_default_mp9
5e_default_galilar
5e_vip_m4a1_silencer
5e_vip_ak47

Following #490.

- It's not always a suffix - it can be a prefix.
- The suffix/prefix is not the killer's name but the words `vip` or `default` (there may be others).
- The team's name may also be part of the suffix/prefix

Noticed with demos coming from akiver/cs-demo-manager#727.
Example with this one https://mega.nz/file/LZFlhATB#aCO-g1hoGohndAKXJVUHzLCcbyzH-n7cGi9ZWO5UdSM.

Weapon's name from game events:
```
5e_vip_usp_silencer
5e_default_deagle
5e_vip_xm1014
5e_default_mp9
5e_default_galilar
5e_vip_m4a1_silencer
5e_vip_ak47
```
Copy link

codecov bot commented Jan 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (935fd38) 80.67% compared to head (d7f0779) 80.67%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #496   +/-   ##
=======================================
  Coverage   80.67%   80.67%           
=======================================
  Files          47       47           
  Lines        6338     6338           
=======================================
  Hits         5113     5113           
  Misses       1015     1015           
  Partials      210      210           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@akiver akiver requested a review from markus-wa January 14, 2024 15:15
@markus-wa markus-wa merged commit d812f4a into master Jan 21, 2024
8 checks passed
@markus-wa markus-wa deleted the weapon-names branch January 21, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants