-
Notifications
You must be signed in to change notification settings - Fork 104
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
Is there any proper way to get time of every hero spawn? #118
Comments
Okay, just for descendants:
If my hero was dead and I got modifier from dota_fountain -> it's respawn moment. Got to check what would be with skeleton king ultimate >_> |
As I expected: we catch DOTA_COMBATLOG_TYPES_DOTA_COMBATLOG_DEATH as wraith king dying before reborn with his ultimate. Got to dig in that direction. |
Ok, just in case someone will need it: If you want to know exactly moment when someone was actually dead and goes to tavern then you need to find a moment when "deaths" counter increments. |
Actually can't find any proper way to get exactly hero spawn time. Not just initial spawn but respawn as well. At this moment I came to this code:
At every Entity action I'm catching m_flSpawnedAt value and remembering it. EntityOp.Entered is not about exactly spawn moment so can't filter by it.
Also I have a pretty interesting mechanics around monkey king. His m_flSpawnedAt never changed + he have about ~30 m_flSpawnedAt changes with +1 second each. I think it's kind hack to work around with ultimate since every monkey king instance in his ultimate is separated hero.
Maybe there is some special event/moment when hero is spawning and all my stuff is just mess ?
The text was updated successfully, but these errors were encountered: