DarkDracoon

Untitled

Aug 18th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.32 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. "csgo"
  15. {
  16. "Keys"
  17. {
  18. "GetWeaponPriceByteCheck" "E9"
  19. "GetWeaponPriceByteCheck_Linux" "E8"
  20. }
  21. "Offsets"
  22. {
  23. //Offset of szClassName in CCSWeaponInfo
  24. "WeaponName"
  25. {
  26. "windows" "6"
  27. "linux" "6"
  28. "mac" "6"
  29. }
  30. //Econ update doesnt check this now but for what we use it hopefully its fine.
  31. "WeaponPrice"
  32. {
  33. "windows" "2528"
  34. "linux" "2528"
  35. "mac" "2528"
  36. }
  37. //Offset into CheckRestartRound
  38. "CTTeamScoreOffset"
  39. {
  40. "windows" "98"
  41. "linux" "115"
  42. "mac" "150"
  43. }
  44. //Offset into CheckRestartRound
  45. "TTeamScoreOffset"
  46. {
  47. "windows" "125"
  48. "linux" "148"
  49. "mac" "185"
  50. }
  51. "ClanTagOffset"
  52. {
  53. "windows" "12"
  54. "linux" "29"
  55. "mac" "22"
  56. }
  57. //Offset into HandleCommand_Buy_Internal
  58. "CCSPlayerInventoryOffset"
  59. {
  60. "windows" "55"
  61. "linux" "97"
  62. "mac" "109"
  63. }
  64. "GetItemInLoadout"
  65. {
  66. "windows" "8"
  67. "linux" "9"
  68. "mac" "9"
  69. }
  70. "GetWeaponPriceFunc"
  71. {
  72. "windows" "105"
  73. "linux" "152"
  74. }
  75. //This is GetWeaponPriceFunc offset -1 (only used by GDC)
  76. "GetWeaponPriceFuncGDC"
  77. {
  78. "windows" "104"
  79. "linux" "151"
  80. }
  81. }
  82. "Signatures"
  83. {
  84. "RoundRespawn"
  85. {
  86. "library" "server"
  87. "windows" "\x55\x8B\xEC\x83\xEC\x0C\x53\x56\x8B\xF1\x8B\x0D\x2A\x2A\x2A\x2A\x57\x8B\x01"
  88. "linux" "\x55\x89\xE5\x57\x56\x53\x83\xEC\x4C\xA1\x2A\x2A\x2A\x2A\x8B\x5D\x08\x89\x04\x24"
  89. }
  90. "SwitchTeam"
  91. {
  92. "library" "server"
  93. "windows" "\x55\x8B\xEC\x83\xEC\x10\x53\x56\x8B\x75\x08\x57\x8B\xF9\x85\xF6\x0F\x88\x2A\x2A\x2A\x2A\x3B\x35"
  94. "linux" "\x55\x89\xE5\x83\xEC\x68\x89\x75\xF8\x8B\x75\x0C\x89\x5D\xF4\x8B\x5D\x08\x89\x7D\xFC\x89\x34\x24\xE8\x2A\x2A\x2A\x2A\x85\xC0"
  95. }
  96. "HandleCommand_Buy_Internal"//Wildcard first 6 bytes for getting address for weapon price.
  97. {
  98. "library" "server"
  99. "windows" "\x2A\x2A\x2A\x2A\x2A\x2A\x81\xEC\x7C\x01\x00\x00\x53\x56\x57\x6A\x00"
  100. "linux" "\x2A\x2A\x2A\x2A\x2A\x2A\x81\xEC\x9C\x01\x00\x00\x0F\xB6\x55\x14"
  101. }
  102. "CSWeaponDrop"//Wildcard first 6 bytes for CS:S DM (kept for backcompat with old SM versions)
  103. {
  104. "library" "server"
  105. "windows" "\x2A\x2A\x2A\x2A\x2A\x2A\x81\xEC\x2A\x2A\x2A\x2A\x53\x8B\x5D\x08\x56\x57\x6A\x00\x68"
  106. "linux" "\x2A\x2A\x2A\x2A\x2A\x2A\x56\x53\x81\xEC\x7C\x02\x00\x00\x8B\x5D\x0C\x8B\x75\x08\x85\xDB\x74\x2A\xC7\x44\x24\x2A\x2A\x2A\x2A\x00"
  107. }
  108. "CSWeaponDropBB" //Revert back to using CSWeaponDrop(weapon, bool, bool)
  109. {
  110. "library" "server"
  111. "windows" "\x2A\x2A\x2A\x2A\x2A\x2A\x83\xE4\xF8\x83\xC4\x04\x55\x8B\x6B\x04\x89\x6C\x24\x04\x8B\xEC\x83\xEC\x34\x56"
  112. "linux" "\x2A\x2A\x2A\x2A\x2A\x2A\x83\xEC\x7C\x8B\x5D\x08\x0F\xB6\x7D\x14"
  113. }
  114. "TerminateRound"
  115. {
  116. "library" "server"
  117. "windows" "\x55\x8B\xEC\x83\xE4\xF8\x83\xEC\x2A\x53\x8B\xD9\xF3\x0F\x2A\x2A\x2A\x2A\x56\x57\x89\x2A\x2A\x2A\x83\xBB"
  118. "linux" "\x55\x89\xE5\x57\x56\x53\x81\xEC\xDC\x00\x00\x00\x8B\x75\x08\x8B\x86"
  119. }
  120. "GetTranslatedWeaponAlias"
  121. {
  122. "library" "server"
  123. "windows" "\x56\x57\x8B\xF9\x33\xF6\x66\x66\x0F\x1F\x84\x00\x00\x00\x00\x00\x8B\x0C\xF5\x2A\x2A\x2A\x2A\x8B\xD7\xE8\x2A\x2A\x2A\x2A\x85\xC0\x74\x2A\x46\x83\xFE\x19"
  124. "linux" "\x55\x89\xE5\x56\x53\x31\xDB\x83\xEC\x10\x8B\x75\x08\xEB\x2A\x90\x83\xC3\x01\x83\xFB\x19"
  125. }
  126. "GetWeaponInfo"
  127. {
  128. "library" "server"
  129. "windows" "\x55\x8B\xEC\x83\xEC\x08\x33\xC0\x85\xC9"
  130. "linux" "\x55\x89\xE5\x56\x53\x31\xDB\x83\xEC\x10\x8B\x55\x08\x85\xD2"
  131. }
  132. //In CS:GO this is actually CCSGameRules::CheckRestartRound(void) but to keep same gamedata as cs:s.
  133. "CheckWinLimit"
  134. {
  135. "library" "server"
  136. "windows" "\x55\x8B\xEC\x83\xE4\xF8\x83\xEC\x2A\x53\x56\x57\x8B\xF9\x8B\x0D\x2A\x2A\x2A\x2A\x81\xF9"
  137. "linux" "\x55\x89\xE5\x56\x53\x83\xEC\x70\xA1\x2A\x2A\x2A\x2A\x8B\x35\x2A\x2A\x2A\x2A\x8B"
  138. }
  139. "AliasToWeaponID"
  140. {
  141. "library" "server"
  142. "windows" "\x57\x8B\xF9\x85\xFF\x75\x2A\x33\xC0\x5F\xC3\x56\x33\xF6\x66\x90\x6A\x5F"
  143. "linux" "\x55\x31\xC0\x89\xE5\x56\x53\x83\xEC\x10\x8B\x75\x08\x85\xF6\x74\x2A\x31\xDB\xEB\x2A\x8D"
  144. }
  145. "WeaponIDToAlias"
  146. {
  147. "library" "server"
  148. "windows" "\x33\xC0\x39\x0C\xC5\x2A\x2A\x2A\x2A\x74\x2A\x40\x83\xF8\x3E\x72\x2A\x33\xC0\xC3\x6A\x5F"
  149. "linux" "\x55\x89\xE5\x83\xEC\x18\x8B\x55\x08\x39\x15\x2A\x2A\x2A\x2A\x74"
  150. }
  151. "SetClanTag"
  152. {
  153. "library" "server"
  154. "windows" "\x55\x8B\xEC\x8B\x55\x08\x85\xD2\x74\x2A\x8D\x81\x5C\x29\x00\x00"
  155. "linux" "\x55\x89\xE5\x83\xEC\x18\x8B\x45\x0C\x85\xC0\x74\x2A\x89\x44\x24\x04\x8B\x45\x08\xC7\x44\x24\x08\x10\x00\x00\x00"
  156. }
  157. // Since it's not possible to make a unique signature for CCSWeaponInfo::GetWeaponInfo, this is instead a signature to a
  158. // function that calls it. The offset from the signature to the CCSWeaponInfo func offset is the GetWeaponPriceFunc offset.
  159. "GetWeaponPrice"
  160. {
  161. "library" "server"
  162. "windows" "\x55\x8B\xEC\x8B\xD1\x8B\x4D\x08\x85\xC9\x75\x2A\x83\xC8\xFF"
  163. "linux" "\x55\x89\xE5\x83\xEC\x18\x89\x5D\xF8\x8B\x5D\x10\x89\x75\xFC\x8B\x4D\x08"
  164. }
  165. "SetModelFromClass"
  166. {
  167. "library" "server"
  168. "windows" "\x53\x56\x57\x8B\xF9\x8B\x87\x00\x03\x00\x00"
  169. "linux" "\x55\x89\xE5\x83\xEC\x28\x89\x5D\xF4\x8B\x5D\x08\x89\x75\xF8\x89\x7D\xFC\x89\x1C\x24\xE8\x2A\x2A\x2A\x2A\x83\xF8\x02"
  170. }
  171. }
  172. }
  173.  
  174. "csgo"
  175. {
  176. "Keys"
  177. {
  178. "AssistsBase" "m_iFrags"
  179. }
  180.  
  181. "Offsets"
  182. {
  183. "Assists"
  184. {
  185. "windows" "4"
  186. "linux" "4"
  187. "mac" "4"
  188. }
  189. }
  190. }
  191.  
  192. "csgo"
  193. {
  194. "Keys"
  195. {
  196. "CScoreBase" "m_bIsHoldingLookAtWeapon"
  197. }
  198.  
  199. "Offsets"
  200. {
  201. "CScore"
  202. {
  203. "windows" "75"
  204. "linux" "75"
  205. "mac" "75"
  206. }
  207. }
  208. }
  209.  
  210. "csgo"
  211. {
  212. "Keys"
  213. {
  214. "MVPsBase" "m_bIsHoldingLookAtWeapon"
  215. }
  216.  
  217. "Offsets"
  218. {
  219. "MVPs"
  220. {
  221. "windows" "15"
  222. "linux" "15"
  223. "mac" "15"
  224. }
  225. }
  226. }
  227. }
Advertisement
Add Comment
Please, Sign In to add comment