Raised This Month: $51 Target: $400
 12% 

Dota 2 get players gold per minute


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CyberStars
Senior Member
Join Date: May 2013
Old 10-11-2013 , 06:46   Dota 2 get players gold per minute
Reply With Quote #1

Hello,

how can i get players gold per minute in dota 2?
It's called "m_rgGoldPerMinute" in properties list, but I cannot find its entity and class name.

p.s.
How can I find corresponding class names to get an entity and properties according to class names in a networkable list? E.g. what is the corresponding class name for "CDOTASpecGraphPlayerData" in that list? "m_rgGoldPerMinute" property is under "CDOTASpecGraphPlayerData". Is there any way, e.g. list, to find that information?

Last edited by CyberStars; 10-11-2013 at 06:48.
CyberStars is offline
psychonic

BAFFLED
Join Date: May 2008
Old 10-11-2013 , 10:10   Re: Dota 2 get players gold per minute
Reply With Quote #2

If you do a data desc dump (sm_dump_datamaps), each netclass name will also have the classname listed beside it.
Ex. "CDOTASpecGraphPlayerData - dota_spec_graph_player_data"

This also gives you the list of properties that can be access with Prop_Data, as opposed to the Prop_Send ones in the netprop dump.
psychonic is offline
CyberStars
Senior Member
Join Date: May 2013
Old 10-14-2013 , 03:59   Re: Dota 2 get players gold per minute
Reply With Quote #3

I've tried and
Code:
FindEntityByClassname(-1, "dota_spec_graph_player_data")
always returns -1.
CyberStars is offline
psychonic

BAFFLED
Join Date: May 2008
Old 10-14-2013 , 09:02   Re: Dota 2 get players gold per minute
Reply With Quote #4

Quote:
Originally Posted by CyberStars View Post
I've tried and
Code:
FindEntityByClassname(-1, "dota_spec_graph_player_data")
always returns -1.
Maybe it only gets created/used if the game is from a lobby or if there are spectators.
psychonic is offline
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 10-14-2013 , 10:13   Re: Dota 2 get players gold per minute
Reply With Quote #5

can't you get player's actual gold? if so, you could do some simple math to get player's gold per minute(gold earned/minutes).
__________________
sie sind das essen und wir sind die jäger!
Bimbo1 is offline
CyberStars
Senior Member
Join Date: May 2013
Old 10-15-2013 , 03:26   Re: Dota 2 get players gold per minute
Reply With Quote #6

I tried to get the actual gold also, but sometimes it returns correct gold amount, sometimes always returns 0. I couldn't understand why and how that happens.
CyberStars is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode