skadistats / clarity-examples

Example code for clarity
BSD 3-Clause "New" or "Revised" License
113 stars 37 forks source link

Item and ability names #46

Closed vbashiri closed 4 years ago

vbashiri commented 4 years ago

Hi there, I want to get hero abilities and items, but some of them don't have proper name. like -> "class: CDOTA_Item". I don't mind if it is name or unique id as long as it is unique between different replays, too. I couldn't find any corresponding id or something.

this is an item entity: dotaItem

spheenik commented 4 years ago

This should help.

vbashiri commented 4 years ago

Thank you very much. m_pEntity.m_nameStringableIndex did the trick for me. I have another question tho. Is there any way to extract player role from the .dem file. I know the role search is not added to game very long ago but is there anyway I can get selected role by any player?

spheenik commented 4 years ago

I have no idea.

vbashiri commented 4 years ago

Thanks anyway. <3