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

How can I modify the combatlog example to include maximum health for getAttackerName and getTargetName? #58

Open
el-li-neu opened this issue Jun 29, 2023 · 1 comment

Comments

@el-li-neu
Copy link

Can I extend the combatlog example so that getAttackerName and getTargetName display the maximum health at the time of the event? I want to do this to calculate health percentages, and most likely getHealthPercent() would work here too, but I don't see how it could be applied since it's not in CombatLogEntry

I'm not well versed in the subject, so I apologize in advance for the stupid question D:

@spheenik
Copy link
Member

spheenik commented Jul 4, 2023

Just some pointers:

This data might not be available in the combatlog data. In this case, you need to look into the entities that contain this data.
There are a lot of examples out there that show you part of the way.

For example, you could look at how opendota's parser extracts entity data.
If you want to see what data to expect, I recommend using clarity analyzer.

Feel free to ask further.

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

No branches or pull requests

2 participants