-
Notifications
You must be signed in to change notification settings - Fork 99
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
Player equipment incorrect #472
Comments
Interesting 🤔 - is #450 related? |
Just skimmed it -- that seems very likely! |
Absolutely, I'm actively sitting and debugging it right now :) |
Hmm.. For the demo I'm currently looking at, this does not seem to help. But: I'm looking at nuke from this match: https://www.hltv.org/matches/2367264/complexity-vs-faze-iem-sydney-2023 With your changes I'm only seeing the molly in his inventory. With the changes I'm currently doing myself, I'm only seeing the flash EDIT: I'm trying to implement the logic outlined in #450 |
You can give my WIP a look here: https://github.com/micvbang/demoinfocs-golang/tree/micvbang/simplify-weapon-inventory |
I've pushed another attempt - can you take another look? still not completely sure though 😓 |
but yeah, I think your solution might be more reliable long term |
Yeah - unfortunately that also doesn't work entirely. It looks like him buying the grenades works, but they don't disappear when he throws them :'( Here's a list of outputs to expect for karrigan in the demo mentioned above:
In your most recent commit, I can't see that he throws the grenades (i.e. they stay in the inventory) |
Except that I can't figure out how to determine how many flashes a player has (it seems to have changed from the old way of setting additional ammo), my branch seems to handle the above equipment for karrigan correctly. It's by no means correct for all players, but I think it's a step in the right direction |
Ok yeah I think it works - first I thought there was another bug, but I think it looks pretty good indeed, my testing was just bad. Can you open a PR? |
Give it a try now -- it's definitely starting to look like something! I'll post a PR as well |
fixed in v4.0.0 |
I'm currently investigating players having incorrect equipment reported by both
GameState().Weapons()
andGameState(),Participants().Playing() -> player.Weapons()
.I've got a few demos where this is incorrect. I've specifically looked at inferno for this match: https://www.hltv.org/matches/2367571/virtuspro-vs-ecstatic-cct-east-europe-series-3
It happens during bomb time in round 8:
Second 1183.69 "Nodios" has knife, glock, ak47, flash but
Player.Weapons()
reports it as knife, glock, ak47, smoke (incorrectly reporting smoke instead of flash)Then "Nodios" picks drops his glock and picks up a desert eagle.
Second 1185.09 "Nodios" has knife, desert eagle, ak47, flash but
Player.Weapons()
reports it as knife, desert eagle, smoke (missing ak47 and incorrectly reporting smoke instead of flash).Side note:
For some reason the demo crashes when I play it in the CS2 demo viewer, but I found it on this stream: https://www.twitch.tv/videos/1960641122?t=11h56m08s
Library version
master @ aa1b925
The text was updated successfully, but these errors were encountered: