forked from FlaminSarge/tf2attributes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tf2.attributes.txt
156 lines (156 loc) · 7.47 KB
/
tf2.attributes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
"Games"
{
/* Team Fortress 2 */
"tf"
{
"Offsets"
{
"CAttributeManager::OnAttributeValuesChanged" //use instead of ClearCache/NotifyManagerOfAttributeValueChanges
{
"windows" "13"
"linux" "14"
"mac" "14"
}
"CEconItemView::GetItemDefinition"
{
"windows" "8"
"linux" "9"
"mac" "9"
}
}
"Signatures"
{
"CEconItemSchema::GetItemDefinition"
{
"library" "server"
"windows" "\x55\x8B\xEC\x56\x8B\xF1\x8D\x45\x08\x57\x50\x8D\x8E\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x85\xC0"
"linux" "@_ZN15CEconItemSchema17GetItemDefinitionEi"
"mac" "@_ZN15CEconItemSchema17GetItemDefinitionEi"
}
"CEconItemView::GetSOCData"
{
"library" "server"
"windows" "\x56\x8B\xF1\x8B\x46\x2A\x85\xC0\x75\x2A\xE8\x2A\x2A\x2A\x2A\xFF\x76\x20\x8B\xC8\x8B\x10\xFF\x52\x44\x85\xC0\x74\x2A\xFF\x76\x14\x8B\xC8\xFF\x76\x10\xE8\x2A\x2A\x2A\x2A\x5E"
"linux" "@_ZNK13CEconItemView10GetSOCDataEv"
"mac" "@_ZNK13CEconItemView10GetSOCDataEv"
}
"CEconItem::SetCustomName"
{
"library" "server"
"windows" "\x55\x8B\xEC\xA1\x2A\x2A\x2A\x2A\x83\xEC\x14\x53\x8B\xD9\x56\x57\xA8\x01\x75\x2A\x83\xC8\x01\xC7\x05\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x68\x2A\x2A\x2A\x2A\xA3\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x8B\xC8\xE8\x2A\x2A\x2A\x2A\xA3\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x8B\x40\x04\xA3\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x8B\x78\x04\x39\x3D\x2A\x2A\x2A\x2A\x74\x2A\xFF\x35\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x8B\xC8\xE8\x2A\x2A\x2A\x2A\x8B\xF0\x89\x3D\x2A\x2A\x2A\x2A\x89\x35\x2A\x2A\x2A\x2A\xEB\x2A\x8B\x35\x2A\x2A\x2A\x2A\x85\xF6\x74\x2A\x8B\x7D\x08\x85\xFF\x74\x2A\x80\x3F\x00\x74\x2A\x8D\x4D\xEC\xE8\x2A\x2A\x2A\x2A\x57\x8D\x4D\xEC\xE8\x2A\x2A\x2A\x2A\x8D\x45\xEC\x8B\xCB\x50\x56\xE8\x2A\x2A\x2A\x2A\x8D\x4D\xEC\xE8\x2A\x2A\x2A\x2A\x5F\x5E\x5B\x8B\xE5\x5D\xC2\x04\x00\x56\x8B\xCB\xE8\x2A\x2A\x2A\x2A\x5F\x5E\x5B\x8B\xE5\x5D\xC2\x04\x00"
"linux" "@_ZN9CEconItem13SetCustomNameEPKc"
"mac" "@_ZN9CEconItem13SetCustomNameEPKc"
}
"GEconItemSchema"
{
"library" "server"
"windows" "\xE8\x2A\x2A\x2A\x2A\x83\xC0\x04\xC3"
"linux" "@_Z15GEconItemSchemav"
"mac" "@_Z15GEconItemSchemav"
}
"CEconItemSchema::GetAttributeDefinition" //int, returns CEconItemAttributeDefinition
{
"library" "server"
"windows" "\x55\x8B\xEC\x83\xEC\x2A\x53\x56\x8B\xD9\x8D\x2A\x2A\x57"
"linux" "@_ZN15CEconItemSchema22GetAttributeDefinitionEi"
"mac" "@_ZN15CEconItemSchema22GetAttributeDefinitionEi"
}
"CEconItemSchema::GetAttributeDefinitionByName" //const char*, returns CEconItemAttributeDefinition
{
"library" "server"
"windows" "\x55\x8B\xEC\x83\xEC\x18\x83\x7D\x08\x00\x53\x56\x57\x8B\xD9\x75\x2A\x33\xC0\x5F"
"linux" "@_ZN15CEconItemSchema28GetAttributeDefinitionByNameEPKc"
"mac" "@_ZN15CEconItemSchema28GetAttributeDefinitionByNameEPKc"
}
"CAttributeList::RemoveAttribute" //CEconItemAttributeDefinition*, returns CEconItemAttributeDefinition
{
"library" "server"
"windows" "\x55\x8B\xEC\x51\x53\x8B\xD9\x56\x33\xF6\x8B\x43\x10\x89\x45\xFC\x85\xC0\x7E\x2A\x57\x33\xFF"
"linux" "@_ZN14CAttributeList15RemoveAttributeEPK28CEconItemAttributeDefinition"
"mac" "@_ZN14CAttributeList15RemoveAttributeEPK28CEconItemAttributeDefinition"
}
"CAttributeList::SetRuntimeAttributeValue" //CEconItemAttributeDefinition*, float, returns void but somehow SetReturnInfo makes it return some nonzero client-based integer if success
{
"library" "server"
"windows" "\x55\x8B\xEC\x83\xEC\x2A\x33\x2A\x53\x8B\xD9\x56\x57\x8B\x2A\x2A\x8B\x2A\x2A"
"linux" "@_ZN14CAttributeList24SetRuntimeAttributeValueEPK28CEconItemAttributeDefinitionf"
"mac" "@_ZN14CAttributeList24SetRuntimeAttributeValueEPK28CEconItemAttributeDefinitionf"
}
"CAttributeList::GetAttributeByID" //int, returns CEconAttribute address
{
"library" "server"
"windows" "\x55\x8B\xEC\x51\x8B\xC1\x53\x56\x33\xF6\x89\x45\xFC\x8B\x58\x10"
"linux" "@_ZNK14CAttributeList16GetAttributeByIDEi"
"mac" "@_ZNK14CAttributeList16GetAttributeByIDEi"
}
"CAttributeList::DestroyAllAttributes" //this, returns int
{
"library" "server"
"windows" "\x56\x8B\xF1\x83\x7E\x10\x00\x74\x2A\xC7\x46\x10\x00\x00\x00\x00"
"linux" "@_ZN14CAttributeList20DestroyAllAttributesEv"
"mac" "@_ZN14CAttributeList20DestroyAllAttributesEv"
}
// Found this to be unused, commented out because of that
// "CAttributeList::NotifyManagerOfAttributeValueChanges" //this, presumably returns CAttributeManager
// {
// "library" "server"
// "windows" "\x56\x8B\xF1\x83\x7E\x10\x00\x74\x2A"
// "linux" "@_ZN14CAttributeList36NotifyManagerOfAttributeValueChangesEv"
// "mac" "@_ZN14CAttributeList36NotifyManagerOfAttributeValueChangesEv"
// }
//This apparently still works, and is called by the above
"CAttributeManager::ClearCache" //returns void
{
"library" "server"
"windows" "\x55\x8B\xEC\x51\x56\x8B\xF1\x80\x73\x3C\x00\x0F\x85\x1A\x01\x00\x00"
"linux" "@_ZN17CAttributeManager10ClearCacheEv"
"mac" "@_ZN17CAttributeManager10ClearCacheEv"
}
//The following are old, broken, and generally unusable as of July 10, 2013
// "CAttributeList::GetAttributeByID" //int, returns CEconAttribute address
// {
// "library" "server"
// "windows" "\x55\x8B\xEC\x51\x53\x8B\xD9\x8B\x43\x10"
// "linux" "@_ZN14CAttributeList16GetAttributeByIDEi"
// "mac" "@_ZN14CAttributeList16GetAttributeByIDEi"
// }
// "CAttributeList::GetAttributeByName" //const char*, returns CEconAttribute address
// {
// "library" "server"
// "windows" "\x55\x8B\xEC\x51\x8B\x45\x08\x53\x50\x8B\xD9"
// "linux" "@_ZNK14CAttributeList18GetAttributeByNameEPKc"
// "mac" "@_ZNK14CAttributeList18GetAttributeByNameEPKc"
// }
// "CAttributeList::SetOrAddAttributeValueByName" //const char*, float, returns void but somehow SetReturnInfo makes it return some nonzero client-based integer if success
// {
// "library" "server"
// "windows" "\x55\x8B\xEC\x8B\x45\x08\x83\xEC\x18\x57"
// "linux" "@_ZN14CAttributeList28SetOrAddAttributeValueByNameEPKcf"
// "mac" "@_ZN14CAttributeList28SetOrAddAttributeValueByNameEPKcf"
// }
// "CAttributeList::RemoveAttribute" //const char*, returns void
// {
// "library" "server"
// "windows" "\x55\x8B\xEC\x51\x56\x8B\xF1\x8B\x46\x10"
// "linux" "@_ZN14CAttributeList15RemoveAttributeEPKc"
// "mac" "@_ZN14CAttributeList15RemoveAttributeEPKc"
// }
//The following aren't used since the above work for any entity with attributes and the below work only for CTFPlayer
//These are in every other regard identical to CAttributeList::SetOrAddAttributeValueByName and CAttributeList::RemoveAttribute
// "CTFPlayer::SetOrAddAttributeValueByName" //const char*, float, returns returns void but somehow SetReturnInfo makes it return some nonzero client-based integer if success
// {
// "library" "server"
// "windows" "\x55\x8B\xEC\x8B\x45\x08\x85\xC0\x74\x2A\x50\x81\xC1\x04\x0A\x00\x00"
// "linux" "@_ZN9CTFPlayer28SetOrAddAttributeValueByNameEPKcf"
// "mac" "@_ZN9CTFPlayer28SetOrAddAttributeValueByNameEPKcf"
// }
// "CTFPlayer::RemovePlayerAttribute" //const char*, returns void
// {
// "library" "server"
// "windows" "\x55\x8B\xEC\x8B\x45\x08\x85\xC0\x74\x2A\x80\x38\x00"
// "linux" "@_ZN9CTFPlayer21RemovePlayerAttributeEPKc"
// "mac" "@_ZN9CTFPlayer21RemovePlayerAttributeEPKc"
// }
}
}
}