We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Failed to get equipment value at specified round(round 12), and the program crashes.
To Reproduce demo url: https://pvp-demo-hz.oss-cn-hangzhou.aliyuncs.com/demo/normal/9205806215538562956_0.dem?response-content-disposition=attachment%3Bfilename%3D9205806215538562956_0.dem.zip&OSSAccessKeyId=LTAI4FdozZjF98JnnYvJRUeQ&Expires=1699328617&Signature=L09sAXWFLY3RlcszNOZsjHlTcXc%3D
Code: parser.RegisterEventHandler(func(e events.WeaponFire) { a.HandleWeaponFired(parser, e) })
func (a *Analyzer) HandleWeaponFired(parser dem.Parser, e events.WeaponFire) { equipmentValueCt := int(0) equipmentValueT := int(0) for _, participant := range parser.GameState().Participants().All() { if participant.Team == common.TeamCounterTerrorists { equipmentValueCt += participant.EquipmentValueFreezeTimeEnd() } else if participant.Team == common.TeamTerrorists { equipmentValueT += participant.EquipmentValueFreezeTimeEnd() } } }
Expected behavior Player.EquipmentValueFreezeTimeEnd() returns correct equipment value.
Library version v4.0.0-beta.2
The text was updated successfully, but these errors were encountered:
thanks - I will try to look into it when I find some time
Sorry, something went wrong.
Hi guys, is there a chance to look into this issue ?
No branches or pull requests
Describe the bug
Failed to get equipment value at specified round(round 12), and the program crashes.
To Reproduce
demo url: https://pvp-demo-hz.oss-cn-hangzhou.aliyuncs.com/demo/normal/9205806215538562956_0.dem?response-content-disposition=attachment%3Bfilename%3D9205806215538562956_0.dem.zip&OSSAccessKeyId=LTAI4FdozZjF98JnnYvJRUeQ&Expires=1699328617&Signature=L09sAXWFLY3RlcszNOZsjHlTcXc%3D
Code:
parser.RegisterEventHandler(func(e events.WeaponFire) {
a.HandleWeaponFired(parser, e)
})
Expected behavior
Player.EquipmentValueFreezeTimeEnd() returns correct equipment value.
Library version
v4.0.0-beta.2
The text was updated successfully, but these errors were encountered: