Advertisement
Guest User

engine csgo

a guest
Nov 18th, 2019
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.90 KB | None | 0 0
  1. /**
  2. * Do not edit this file. Any changes will be overwritten by the gamedata
  3. * updater or by upgrading your SourceMod install.
  4. *
  5. * To override data in this file, create a subdirectory named "custom" and
  6. * place your own gamedata file(s) inside of it. Such files will be parsed
  7. * after SM's own.
  8. *
  9. * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(SourceMod)
  10. */
  11.  
  12. "Games"
  13. {
  14. /* Sounds */
  15. "#default"
  16. {
  17. "Keys"
  18. {
  19. "SlapSoundCount" "3"
  20. "SlapSound1" "player/damage1.wav"
  21. "SlapSound2" "player/damage2.wav"
  22. "SlapSound2" "player/damage3.wav"
  23. }
  24. }
  25.  
  26. /* General Temp Entities */
  27. "#default"
  28. {
  29. "Offsets"
  30. {
  31. /* Offset into CBaseTempEntity signature address */
  32. "s_pTempEntities"
  33. {
  34. "windows" "4"
  35. "linux" "20"
  36. "linux64" "18"
  37. "mac64" "21"
  38. }
  39. "GetTEName"
  40. {
  41. "windows" "4"
  42. "linux" "4"
  43. "linux64" "8"
  44. "mac64" "8"
  45. }
  46. "GetTENext"
  47. {
  48. "windows" "8"
  49. "linux" "8"
  50. "linux64" "16"
  51. "mac64" "16"
  52. }
  53. "TE_GetServerClass"
  54. {
  55. "windows" "0"
  56. "linux" "0"
  57. "linux64" "0"
  58. "mac64" "0"
  59. }
  60. }
  61.  
  62. "Signatures"
  63. {
  64. "CBaseTempEntity"
  65. {
  66. "library" "server"
  67. "windows" "\x89\x41\x04\xA1\x2A\x2A\x2A\x2A\x89\x41\x08\x89\x0D\x2A\x2A\x2A\x2A\xC7"
  68. "linux" "\x55\x89\xE5\x8B\x45\x08\x8B\x55\x0C\xC7\x00\x2A\x2A\x2A\x2A\x89\x50\x04\x8B\x15\x2A\x2A\x2A\x2A"
  69. "linux64" "\x48\x8D\x05\x2A\x2A\x2A\x2A\x55\x48\x89\x07\x48\x89\xE5\x5D\x48\x8B\x05\x2A\x2A\x2A\x2A"
  70. "mac64" "\x55\x48\x89\xE5\x48\x8D\x05\x2A\x2A\x2A\x2A\x48\x89\x07\x48\x89\x77\x08\x48\x8B\x05\x2A\x2A\x2A\x2A"
  71. }
  72. }
  73. }
  74.  
  75. /* CGlobalEntityList */
  76. "#default"
  77. {
  78. "Signatures"
  79. {
  80. /* Functions in CGlobalEntityList */
  81. "FindEntityByClassname"
  82. {
  83. "library" "server"
  84. // Fallback to IServerTools method instead on Windows, lest we add custom logic since it's no longer a thiscall on Windows in CS:GO
  85. "linux" "\x55\x89\xE5\x57\x56\x53\x83\xEC\x1C\x8B\x45\x0C\x8B\x5D\x08\x8B\x7D\x10\x85\xC0\x0F\x84\x2A\x2A\x2A\x2A\x8B\x10\x89\x04\x24\xFF\x52\x0C\x8B\x10\xB8\xFF\x1F\x00\x00\x0F\xB7\xCA\x83\xFA\xFF\x0F\x45\xC1\x8D\x04\x40\x8B\x5C\xC3\x10\xEB\x2A\x90\x2A\x2A\x2A\x2A\x89"
  86. "linux64" "\x55\x48\x89\xE5\x41\x55\x49\x89\xD5\x41\x54\x53\x48\x89\xFB\x48\x83\xEC\x08\x48\x85\xF6\x0F\x84\xBC\x00\x00\x00"
  87. "mac64" "\x55\x48\x89\xE5\x41\x57\x41\x56\x41\x54\x53\x49\x89\xD7\x48\x89\xFB\x48\x85\xF6\x74\x29\x48\x8B\x06\x48\x89\xF7\xFF\x50\x18\x8B\x00\x83\xF8\xFF\x0F\xB7\xC0\xB9\xFF\x1F\x00\x00\x48\x0F\x45\xC8\x48\x8D\x04\x49\x48\xC1\xE0\x04\x48\x8D\x5C\x03\x20\xEB\x07\x48\x81\xC3\x08\x00\x06\x00\x48\x8B\x1B\x45\x31\xE4\x48\x85\xDB\x74\x58\x4C\x8D\x35\x2A\x2A\x2A\x2A\x0F"
  88. }
  89. }
  90. }
  91.  
  92. /* General GameRules */
  93. "#default"
  94. {
  95. "Keys"
  96. {
  97. "GameRulesProxy" "CCSGameRulesProxy"
  98. "GameRulesDataTable" "cs_gamerules_data"
  99. }
  100. }
  101.  
  102. /* IServer interface pointer */
  103. "#default"
  104. {
  105. "Keys"
  106. {
  107. /* Signature for the beginning of IVEngineServer::CreateFakeClient.
  108. *
  109. * The engine binary is not actually scanned in order to look for
  110. * this. SourceHook is used to used to determine the address of the
  111. * function and this signature is used to verify that it contains
  112. * the expected code. A pointer to sv (IServer interface) is used
  113. * here.
  114. */
  115. "CreateFakeClient_Windows" "\x55\x8B\xEC\x56\xFF\x2A\x2A\xB9\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x8B"
  116. "CreateFakeClient_Linux" "\x55\x89\xE5\x53\x83\xEC\x14\x8B\x45\x0C\xC7\x04\x24\x2A\x2A\x2A\x2A"
  117. "CreateFakeClient_Linux64" "\x55\x48\x89\xE5\x53\x48\x83\xEC\x08\x48\x8B\x3D\x2A\x2A\x2A\x2A\xE8"
  118. "CreateFakeClient_Mac64" "\x55\x48\x89\xE5\x53\x50\x48\x8D\x3D\x2A\x2A\x2A\x2A\x48\x8B\x07\xFF\x90\x78"
  119. }
  120.  
  121. "Offsets"
  122. {
  123. /* Offset into IVEngineServer::CreateFakeClient */
  124. "sv"
  125. {
  126. "windows" "8"
  127. "linux" "13"
  128. "linux64" "12"
  129. "mac64" "9"
  130. }
  131. }
  132.  
  133. }
  134.  
  135. /* EntityFactoryDictionary function */
  136. "#default"
  137. {
  138. "Signatures"
  139. {
  140.  
  141. "EntityFactoryFinder"
  142. {
  143. "library" "server"
  144. "windows" "\xA1\x2A\x2A\x2A\x2A\xB9\x2A\x2A\x2A\x2A\x53\xFF\x50\x2A\xC7"
  145. }
  146.  
  147. "EntityFactoryCaller"
  148. {
  149. "library" "server"
  150. "linux" "\x55\x89\xE5\x53\x83\xEC\x14\x8B\x5D\x08\xE8\x2A\x2A\x2A\x2A\x8B\x10\x89\x04\x24"
  151. "linux64" "\x55\x48\x89\xE5\x53\x48\x89\xFB\x48\x83\xEC\x08\xE8\x2A\x2A\x2A\x2A\x48\x89\xDE\x48\x8B\x10\x48\x89\xC7\xFF\x52\x08"
  152. "mac64" "\xE8\x2A\x2A\x2A\x2A\x48\x8B\x08\x48\x89\xC7\x4C\x89\xFE\xFF\x51\x08"
  153. }
  154. }
  155.  
  156. "Offsets"
  157. {
  158. "EntityFactoryOffset"
  159. {
  160. "windows" "1"
  161. }
  162. "EntityFactoryCallOffset"
  163. {
  164. "linux" "11"
  165. "linux64" "13"
  166. "mac64" "1"
  167. }
  168. }
  169. }
  170.  
  171. /* CBaseEntityOutput::FireOutput */
  172. "#default"
  173. {
  174. "Signatures"
  175. {
  176. "FireOutput"
  177. {
  178. "library" "server"
  179. "windows" "\x55\x8B\xEC\x83\x2A\x2A\x81\xEC\x2A\x2A\x2A\x2A\x8B\xC1\x53\x56\x57\x8B\x2A\x2A\x89\x2A\x2A\x2A\x33"
  180. "linux" "\x55\x89\xE5\x57\x56\x53\x81\xEC\x7C\x01\x00\x00\x8B\x55\x08\x8B\x75\x14"
  181. "linux64" "\x55\x48\x89\xE5\x41\x57\x41\x56\x49\x89\xF6\x41\x55\x41\x54\x49\x89\xCC\x53"
  182. "mac64" "\x55\x48\x89\xE5\x41\x57\x41\x56\x41\x55\x41\x54\x53\x48\x81\xEC\x88\x01\x00\x00\xF3\x0F\x11\x85\x8C\xFE\xFF\xFF"
  183. }
  184. }
  185. }
  186.  
  187. /* SetUserInfo data */
  188. "#default"
  189. {
  190. "Offsets"
  191. {
  192. /**
  193. * CBaseClient::SetUserCVar(char const*,char const*);
  194. * Linux offset straight from VTable dump.
  195. * Windows offset is crazy. Found the windows SetName function using string "(%d)%-.*s" (aD_S in IDA)
  196. * Cross referenced back to the vtable and counted manually (SetUserCvar is 1 higher, offsets start from 1)
  197. */
  198. "SetUserCvar"
  199. {
  200. /* Not 100% sure on this, why would windows change and not linux - TEST ME */
  201. "windows" "31"
  202. "linux" "69"
  203. "linux64" "69"
  204. "mac64" "69"
  205. }
  206. /**
  207. * CBaseClient::SetName(char const*);
  208. * Linux offset straight from VTable dump.
  209. * Has string "(%d)%-0.*s"
  210. */
  211. "SetClientName"
  212. {
  213. "windows" "30"
  214. "linux" "68"
  215. "linux64" "68"
  216. "mac64" "68"
  217. }
  218. /**
  219. * Offset into CBaseClient - Used by CBaseServer::UpdateUserSettings to determine when changes have been made.
  220. * Find CBaseClient::UpdateUserSettings (strings "net_maxroutable", "cl_updaterate" etc) and the offset is set to 0 near the end.
  221. * Linux: mov byte ptr [esi+0B0h], 0
  222. * Win: mov byte ptr [esi+0B0h], 0
  223. *
  224. * L4D2: This has been moved into CBaseClient::UpdateUserSettings(), rest of the details are still relevant.
  225. */
  226. "InfoChanged"
  227. {
  228. "windows" "484"
  229. "linux" "464"
  230. "linux64" "592"
  231. "mac64" "608"
  232. }
  233. }
  234. }
  235.  
  236. "#default"
  237. {
  238. "Keys"
  239. {
  240. // Netprop on the team entity for team score
  241. "m_iScore" "m_scoreTotal"
  242. }
  243. "Offsets"
  244. {
  245. "GiveNamedItem"
  246. {
  247. "windows" "457"
  248. "linux" "458"
  249. "linux64" "458"
  250. "mac64" "458"
  251. }
  252. "RemovePlayerItem"
  253. {
  254. "windows" "296"
  255. "linux" "297"
  256. "linux64" "297"
  257. "mac64" "297"
  258. }
  259. "Weapon_GetSlot"
  260. {
  261. "windows" "292"
  262. "linux" "293"
  263. "linux64" "293"
  264. "mac64" "293"
  265. }
  266. "Ignite"
  267. {
  268. "windows" "226"
  269. "linux" "227"
  270. "linux64" "227"
  271. "mac64" "227"
  272. }
  273. "Extinguish"
  274. {
  275. "windows" "229"
  276. "linux" "230"
  277. "linux64" "230"
  278. "mac64" "230"
  279. }
  280. "Teleport"
  281. {
  282. "windows" "114"
  283. "linux" "115"
  284. "linux64" "115"
  285. "mac64" "115"
  286. }
  287. "CommitSuicide"
  288. {
  289. "windows" "507"
  290. "linux" "507"
  291. "linux64" "507"
  292. "mac64" "507"
  293. }
  294. "GetVelocity"
  295. {
  296. "windows" "140"
  297. "linux" "141"
  298. "linux64" "141"
  299. "mac64" "141"
  300. }
  301. "EyeAngles"
  302. {
  303. "windows" "131"
  304. "linux" "132"
  305. "linux64" "132"
  306. "mac64" "132"
  307. }
  308. "AcceptInput"
  309. {
  310. "windows" "41"
  311. "linux" "42"
  312. "linux64" "42"
  313. "mac64" "42"
  314. }
  315. "SetEntityModel"
  316. {
  317. "windows" "27"
  318. "linux" "28"
  319. "linux64" "28"
  320. "mac64" "28"
  321. }
  322. "WeaponEquip"
  323. {
  324. "windows" "285"
  325. "linux" "286"
  326. "linux64" "286"
  327. "mac64" "286"
  328. }
  329. "Activate"
  330. {
  331. "windows" "38"
  332. "linux" "39"
  333. "linux64" "39"
  334. "mac64" "39"
  335. }
  336. "PlayerRunCmd"
  337. {
  338. "windows" "477"
  339. "linux" "478"
  340. "linux64" "478"
  341. "mac64" "478"
  342. }
  343. "GiveAmmo"
  344. {
  345. "windows" "278"
  346. "linux" "279"
  347. "linux64" "279"
  348. "mac64" "279"
  349. }
  350. }
  351. "Signatures"
  352. {
  353. /**
  354. * CNetworkStringTableContainer::WriteBaselines
  355. * "Index error writing string table baseline %s\n"
  356. */
  357. "WriteBaselines"
  358. {
  359. "library" "engine"
  360. "windows" "\x55\x8B\xEC\x83\xEC\x60\x53\x56\x8B\xF1\x8B\x0D\x2A\x2A\x2A\x2A\x57\x89\x75\xF8\x8B\x81\x2A\x2A\x2A\x2A\x89\x45\xF4\x85\xC0"
  361. "linux" "\x55\x89\xE5\x57\x56\x53\x81\xEC\x8C\x00\x00\x00\x8B\x0D\x2A\x2A\x2A\x2A\x8B\x75\x08\x8B\x5D\x0C\x8B\x7D\x10\x85\xC9"
  362. }
  363. }
  364. }
  365. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement