FlaminSarge / tf2attributes

TF2Attributes SourceMod plugin
48 stars 41 forks source link

Updated offset for static attributes #13

Closed akowald closed 6 years ago

akowald commented 6 years ago

I noticed that the offset for CUtlVector\<CEconItemAttributeDefinition> from CTFItemDefinition changed. I do not use this plugin so test these changes. See image below for new memory layout. Hope this saves some time!

static_attributes

FlaminSarge commented 6 years ago

Thanks for this.

I'm noticing that the attrib list is actually at 0x1c=28, rather than 44. Have I botched something?

(Looking at CEconItemDefinition::IterateAttributes)

akowald commented 6 years ago

Oh okay, 0x1c seems to be the start of the vector. I've confirmed the values are the same at 0x1c and 0x2c (44). Guess it's up to you which you'd prefer. Edit: Changed numbers to hex and went with 0x1c. Should make checking these ez pz.