Skip to content

Commit e55747a

Browse files
authored
Update Synergy Gamedata (alliedmodders#2361)
Adds some missing virtual offsets for SDKHooks and SDKTools. Updates some Windows signatures.
1 parent 351917b commit e55747a

2 files changed

Lines changed: 45 additions & 44 deletions

File tree

gamedata/sdkhooks.games/game.synergy.txt

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,131 +16,125 @@
1616
{
1717
"Offsets"
1818
{
19+
"CanBeAutobalanced"
20+
{
21+
"windows" "464"
22+
"linux" "465"
23+
}
1924
"EndTouch"
2025
{
2126
"windows" "101"
2227
"linux" "102"
23-
"mac" "102"
2428
}
2529
"FireBullets"
2630
{
2731
"windows" "113"
2832
"linux" "114"
29-
"mac" "114"
33+
}
34+
"GetMaxHealth"
35+
{
36+
"windows" "118"
37+
"linux" "119"
3038
}
3139
"GroundEntChanged"
3240
{
3341
"windows" "178"
3442
"linux" "179"
35-
"mac" "179"
3643
}
3744
"OnTakeDamage"
3845
{
3946
"windows" "62"
4047
"linux" "63"
41-
"mac" "63"
48+
}
49+
"OnTakeDamage_Alive"
50+
{
51+
"windows" "273"
52+
"linux" "274"
4253
}
4354
"PreThink"
4455
{
4556
"windows" "336"
4657
"linux" "337"
47-
"mac" "337"
4858
}
4959
"PostThink"
5060
{
5161
"windows" "337"
5262
"linux" "338"
53-
"mac" "338"
5463
}
5564
"Reload"
5665
{
5766
"windows" "271"
5867
"linux" "272"
59-
"mac" "272"
6068
}
6169
"SetTransmit"
6270
{
6371
"windows" "20"
6472
"linux" "21"
65-
"mac" "21"
6673
}
6774
"ShouldCollide"
6875
{
6976
"windows" "16"
7077
"linux" "17"
71-
"mac" "17"
7278
}
7379
"Spawn"
7480
{
7581
"windows" "22"
7682
"linux" "23"
77-
"mac" "23"
7883
}
7984
"StartTouch"
8085
{
8186
"windows" "99"
8287
"linux" "100"
83-
"mac" "100"
8488
}
8589
"Think"
8690
{
8791
"windows" "47"
8892
"linux" "48"
89-
"mac" "48"
9093
}
9194
"Touch"
9295
{
9396
"windows" "100"
9497
"linux" "101"
95-
"mac" "101"
9698
}
9799
"TraceAttack"
98100
{
99101
"windows" "60"
100102
"linux" "61"
101-
"mac" "61"
102103
}
103104
"Use"
104105
{
105106
"windows" "98"
106107
"linux" "99"
107-
"mac" "99"
108108
}
109109
"VPhysicsUpdate"
110110
{
111111
"windows" "158"
112112
"linux" "159"
113-
"mac" "159"
114113
}
115114
"Weapon_CanSwitchTo"
116115
{
117116
"windows" "267"
118117
"linux" "268"
119-
"mac" "268"
120118
}
121119
"Weapon_CanUse"
122120
{
123121
"windows" "261"
124122
"linux" "262"
125-
"mac" "262"
126123
}
127124
"Weapon_Drop"
128125
{
129126
"windows" "264"
130127
"linux" "265"
131-
"mac" "265"
132128
}
133129
"Weapon_Equip"
134130
{
135131
"windows" "262"
136132
"linux" "263"
137-
"mac" "263"
138133
}
139134
"Weapon_Switch"
140135
{
141136
"windows" "265"
142137
"linux" "266"
143-
"mac" "266"
144138
}
145139
}
146140
}

gamedata/sdktools.games/game.synergy.txt

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,16 @@
2626
{
2727
"windows" "4"
2828
"linux" "4"
29-
"mac" "4"
3029
}
3130
"GetTENext"
3231
{
3332
"windows" "8"
3433
"linux" "8"
35-
"mac" "8"
3634
}
3735
"TE_GetServerClass"
3836
{
3937
"windows" "0"
4038
"linux" "0"
41-
"mac" "0"
4239
}
4340
}
4441

@@ -53,7 +50,7 @@
5350
"s_pTempEntities"
5451
{
5552
"library" "server"
56-
"mac" "@_ZN15CBaseTempEntity15s_pTempEntitiesE"
53+
"linux" "@_ZN15CBaseTempEntity15s_pTempEntitiesE"
5754
}
5855
}
5956
}
@@ -64,12 +61,12 @@
6461
"Signatures"
6562
{
6663
/* Functions in CGlobalEntityList */
64+
/* Search any functions with the "CAI_StandoffBehavior::PrescheduleThink" string, FindEntityByClassname is called with "ai_battle_line" string as a parameter */
6765
"FindEntityByClassname"
6866
{
6967
"library" "server"
70-
"windows" "\x55\x89\xE5\x53\x57\x56\x83\xEC\x08\x8B\x45\x08\x85\xC0\x0F\x85\x2A\x2A\x2A\x2A"
68+
"windows" "\x55\x89\xE5\x53\x57\x56\x83\xEC\x08\x8B\x45\x2A\x85\xC0\x0F\x85"
7169
"linux" "@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc"
72-
"mac" "@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc"
7370
}
7471
}
7572
}
@@ -82,9 +79,19 @@
8279
"FireOutput"
8380
{
8481
"library" "server"
85-
"windows" "\x55\x89\xE5\x53\x57\x56\x81\xEC\x10\x01\x00\x00\x8B\x71\x14"
82+
"windows" "\x55\x89\xE5\x53\x57\x56\x81\xEC\x10\x01\x00\x00\x8B\x71"
8683
"linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
87-
"mac" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
84+
}
85+
"LookupAttachment"
86+
{
87+
/* CBaseAnimating::LookupAttachment */
88+
/* Called in a function that has the "zipline" and "cable/cable.vmt" strings.
89+
* Inside this function, search for a function call that passes the "zipline" string as the only parameter.
90+
* That function is CBaseAnimating::LookupAttachment.
91+
*/
92+
"library" "server"
93+
"windows" "\x31\xC0\x80\xB9\x2A\x2A\x2A\x2A\x00\x0F\x85"
94+
"linux" "@_ZN14CBaseAnimating16LookupAttachmentEPKc"
8895
}
8996
}
9097
}
@@ -93,96 +100,96 @@
93100
{
94101
"Offsets"
95102
{
103+
"SetOwnerEntity"
104+
{
105+
"windows" "17"
106+
"linux" "18"
107+
}
96108
/* CBasePlayer */
97109
"GiveNamedItem"
98110
{
99111
"windows" "408"
100112
"linux" "409"
101-
"mac" "409"
102113
}
103114
"RemovePlayerItem"
104115
{
105116
"windows" "271"
106117
"linux" "272"
107-
"mac" "272"
108118
}
109119
"Weapon_GetSlot"
110120
{
111121
"windows" "269"
112122
"linux" "270"
113-
"mac" "270"
114123
}
115124
"Ignite"
116125
{
117126
"windows" "210"
118127
"linux" "211"
119-
"mac" "211"
120128
}
121129
"Extinguish"
122130
{
123131
"windows" "214"
124132
"linux" "215"
125-
"mac" "215"
126133
}
127134
"Teleport"
128135
{
129136
"windows" "109"
130137
"linux" "110"
131-
"mac" "110"
132138
}
133139
"CommitSuicide"
134140
{
135141
"windows" "446"
136142
"linux" "447"
137-
"mac" "447"
138143
}
139144
"GetVelocity"
140145
{
141146
"windows" "141"
142147
"linux" "142"
143-
"mac" "142"
144148
}
145149
"EyeAngles"
146150
{
147151
"windows" "132"
148152
"linux" "133"
149-
"mac" "133"
150153
}
151154
"AcceptInput"
152155
{
153156
"windows" "36"
154157
"linux" "37"
155-
"mac" "37"
156158
}
157159
"SetEntityModel"
158160
{
159161
"windows" "24"
160162
"linux" "25"
161-
"mac" "25"
162163
}
163164
"WeaponEquip"
164165
{
165166
"windows" "262"
166167
"linux" "263"
167-
"mac" "263"
168168
}
169169
"Activate"
170170
{
171171
"windows" "33"
172172
"linux" "34"
173-
"mac" "34"
174173
}
175174
"RemoveAllItems"
176175
{
177176
"windows" "349"
178177
"linux" "350"
179-
"mac" "350"
180178
}
181179
"PlayerRunCmd"
182180
{
183181
"windows" "426"
184182
"linux" "427"
185-
"mac" "427"
183+
}
184+
"GiveAmmo"
185+
{
186+
"windows" "253"
187+
"linux" "254"
188+
}
189+
"GetAttachment"
190+
{
191+
"windows" "206"
192+
"linux" "207"
186193
}
187194
}
188195

0 commit comments

Comments
 (0)