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 to distinguish the ward is destroyed by which hero? #109

Closed
MFamilys opened this issue Sep 23, 2016 · 3 comments
Closed

How to distinguish the ward is destroyed by which hero? #109

MFamilys opened this issue Sep 23, 2016 · 3 comments

Comments

@MFamilys
Copy link

MFamilys commented Sep 23, 2016

Hi,boys.I want to distinguish the wards is be destroyed by which hero.

Here i use is the DOTA_COMBATLOG_DEATH to get the name of the hero and the OnEntityLeft to get the location of the wards.But i can't combinate this two info.

Q1: Firstly,the time of the ward be destroyed is different with the time of the ward Entity left.That seem have some random delays of it.Have any other way to overcome it?

**Q2:**Second,The location is effective mark of ward and I see the DOTA_COMBATLOG_DEATH event have a field names of "eventlocation" in the range between 0-16.Maybe i can use it?

Thanks a lot,Code for fun! :)

@MFamilys
Copy link
Author

MFamilys commented Sep 27, 2016

Oh,buddy.I meet the other question that how to get the item pickup event?And It seem the DOTA_COMBATLOG_RUNE_PICKUP is not work?Thank you very much.

@spheenik
Copy link
Member

Q1: A ward dies at least 8 seconds before it leaves. It would be much better to look at m_lifeState of the ward. It dies in the moment this changes from 0 to 1. You can then try to correlate that with the combat log. See a recent yasp change for discussion and code related to the topic.

Q2: idk

Q3: idk

@MFamilys
Copy link
Author

MFamilys commented Sep 29, 2016

OK.It works! The m_lifeState is very useful!Now i can identify the ward is be destroyed by witch hero.Thanks of lot.:)

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