gamedata/sm-cstrike.games/game.csgo.txt
author Ruben Gonzalez <drifter01620@gmail.com>
Thu May 22 09:49:27 2014 -0400 (2014-05-22)
changeset 4378 568f4497ef4a
parent 4347 de9fda7d5309
permissions -rw-r--r--
Update CS:GO team score gamedata.
     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 		"Offsets"
    17 		{
    18 			//Offset of szClassName in CCSWeaponInfo 
    19 			"WeaponName"
    20 			{
    21 				"windows"		"6"
    22 				"linux"			"6"
    23 				"mac"			"6"
    24 			}
    25 			//Econ update doesnt check this now but for what we use it hopefully its fine.
    26 			"WeaponPrice"
    27 			{
    28 				"windows"		"2528"
    29 				"linux"			"2528"
    30 				"mac"			"2528"
    31 			}
    32 			//Offset into CheckRestartRound
    33 			"CTTeamScoreOffset"
    34 			{
    35 				"windows"	"98"
    36 				"linux"		"127"
    37 				"mac"		"150"
    38 			}
    39 			//Offset into CheckRestartRound
    40 			"TTeamScoreOffset"
    41 			{
    42 				"windows"	"122"
    43 				"linux"		"162"
    44 				"mac"		"185"
    45 			}
    46 			"ClanTagOffset"
    47 			{
    48 				"windows"	"12"
    49 				"linux"		"41"
    50 				"mac"		"22"
    51 			}
    52 			//Offset into HandleCommand_Buy_Internal
    53 			"CCSPlayerInventoryOffset"
    54 			{
    55 				"windows"	"285"
    56 				"linux"		"87"
    57 				"mac"		"109"
    58 			}
    59 			"GetItemInLoadout"
    60 			{
    61 				"windows"	"8"
    62 				"linux"		"9"
    63 				"mac"		"9"
    64 			}
    65 		}
    66 		"Signatures"
    67 		{
    68 			"RoundRespawn"
    69 			{
    70 				"library"	"server"
    71 				"windows"	"\x55\x8B\xEC\x83\xEC\x08\x56\x8B\xF1\x8B\x0D\x2A\x2A\x2A\x2A\x57\x8B\x01\xFF\x50\x2A\x83"
    72 				"linux"		"@_ZN9CCSPlayer12RoundRespawnEv"
    73 				"mac"		"@_ZN9CCSPlayer12RoundRespawnEv"
    74 			}
    75 			"SwitchTeam"
    76 			{
    77 				"library"	"server"
    78 				"windows"	"\x55\x8B\xEC\x83\xEC\x10\x53\x56\x8B\x75\x08\x57\x8B"
    79 				"linux"		"@_ZN9CCSPlayer10SwitchTeamEi"
    80 				"mac"		"@_ZN9CCSPlayer10SwitchTeamEi"
    81 			}
    82 			"HandleCommand_Buy_Internal"//Wildcard first 6 bytes for getting address for weapon price.
    83 			{
    84 				"library"		"server"
    85 				"windows"		"\x2A\x2A\x2A\x2A\x2A\x2A\x81\xEC\x2A\x2A\x2A\x2A\x83\x3D\x2A\x2A\x2A\x2A\x00\x53\x56\x57\x8B\xF9"
    86 				"linux"			"@_ZN9CCSPlayer26HandleCommand_Buy_InternalEPKcib"
    87 				"mac"			"@_ZN9CCSPlayer26HandleCommand_Buy_InternalEPKcib"
    88 			}
    89 			"CSWeaponDrop"//Wildcard first 6 bytes for CS:S DM
    90 			{
    91 				"library"		"server"
    92 				"windows"		"\x2A\x2A\x2A\x2A\x2A\x2A\x81\xEC\x2A\x2A\x2A\x2A\x56\x8B\x75\x2A\x57\x6A\x00\x68"
    93 				"linux"			"@_ZN9CCSPlayer12CSWeaponDropEP17CBaseCombatWeaponbb"
    94 				"mac"			"@_ZN9CCSPlayer12CSWeaponDropEP17CBaseCombatWeaponbb"
    95 			}
    96 			"TerminateRound"
    97 			{
    98 				"library"		"server"
    99 				"windows"		"\x55\x8B\xEC\x83\x2A\x2A\x83\x2A\x2A\x53\x56\x8B\xF1\xF3\x0F\x2A\x2A\x2A\x2A\x57\x33\xFF\x89\x2A\x2A\x2A\xC7\x2A\x2A\x2A\x00\x00\x00\x00"
   100 				"linux"			"@_ZN12CCSGameRules14TerminateRoundEfi"
   101 				"mac"			"@_ZN12CCSGameRules14TerminateRoundEfi"
   102 			}
   103 			"GetTranslatedWeaponAlias"
   104 			{
   105 				"library"		"server"
   106 				"windows"		"\x55\x8B\xEC\x83\xEC\x08\x53\x33\xC0\x89\x4D\xF8\x56\x57\x89\x45\xFC\x33\xDB\x8B\xB3\x2A\x2A\x2A\x2A\x3B\xF1\x74\x2A\x8B\xF9\x90\x0F\xB6\x06\x0F\xB6\x17\x3B\xC2\x75\x2A\x85\xC0\x75\x2A\x8B\x45\xFC\x5F\x5E\x5B\x8B\x04\xC5\x2A\x2A\x2A\x2A\x8B\xE5\x5D\xC3\x85\xD2\x74\x2A\x8D\x48\xBF\x83\xF9\x19\x77\x2A\x83\xC0\x20\x8D\x4A\xBF\x83\xF9\x19\x77\x2A\x83\xC2\x20\x3B\xC2\x75\x2A\x0F\xB6\x46\x01\x83\xC6\x02\x0F\xB6\x57\x01\x83\xC7\x02\x3B\xC2\x75\x2A\x85\xC0\x75\x2A\x8B\x45\xFC\x5F\x5E\x5B\x8B\x04\xC5\x2A\x2A\x2A\x2A\x8B\xE5\x5D\xC3\x85\xD2\x74\x2A\x8D\x48\xBF\x83\xF9\x19\x77\x2A\x83\xC0\x20\x8D\x4A\xBF\x83\xF9\x19\x77\x2A\x83\xC2\x20\x3B\xC2\x0F\x84\x2A\x2A\x2A\x2A\x2B\xC2\x85\xC0\x74\x2A\xFF\x45\xFC\x83\xC3\x08\x8B\x4D\xF8\x81\xFB\xC0\x00\x00\x00\x0F\x82\x2A\x2A\x2A\x2A\x5F\x5E\x8B\xC1\x5B\x8B\xE5\x5D\xC3"
   107 				"linux"			"@_Z24GetTranslatedWeaponAliasPKc"
   108 				"mac"			"@_Z24GetTranslatedWeaponAliasPKc"
   109 			}
   110 			"GetWeaponInfo"
   111 			{
   112 				"library"		"server"
   113 				"windows"		"\x55\x8B\xEC\x83\xEC\x08\x33\xC0\xEB\x2A\x8D\x9B\x00\x00\x00\x00\x39\x0C\xC5\x2A\x2A\x2A\x2A\x74\x2A\x40\x83\xF8\x38\x72\x2A\x33\xC0"
   114 				"linux"			"@_Z13GetWeaponInfo10CSWeaponID"
   115 				"mac"			"@_Z13GetWeaponInfo10CSWeaponID"
   116 			}
   117 			//In CS:GO this is actually CCSGameRules::CheckRestartRound(void) but to keep same gamedata as cs:s.
   118 			"CheckWinLimit"
   119 			{
   120 				"library"	"server"
   121 				"windows"	"\x55\x8B\xEC\x83\xE4\xF8\x83\xEC\x64\x53\x56\x57\x8B\xF9\x8B\x0D\x2A\x2A\x2A\x2A\x81\xF9"
   122 				"linux"		"@_ZN12CCSGameRules17CheckRestartRoundEv"
   123 				"mac"		"@_ZN12CCSGameRules17CheckRestartRoundEv"
   124 			}
   125 			"AliasToWeaponID"
   126 			{
   127 				"library"	"server"
   128 				"windows"	"\x55\x8B\xEC\x83\xEC\x08\x57\x8B\xF9\x33\xC0"
   129 				"linux"		"@_Z15AliasToWeaponIDPKc"
   130 				"mac"		"@_Z15AliasToWeaponIDPKc"
   131 			}
   132 			"WeaponIDToAlias"
   133 			{
   134 				"library"	"server"
   135 				"windows"	"\x33\xC0\x39\x0C\xC5\x2A\x2A\x2A\x2A\x74\x2A\x40\x83\xF8\x38\x72\x2A\x33\xC0\xC3\x6A\x5F"
   136 				"linux"		"@_Z15WeaponIDToAliasi"
   137 				"mac"		"@_Z15WeaponIDToAliasi"
   138 			}
   139 			"SetClanTag"
   140 			{
   141 				"library"	"server"
   142 				"windows"	"\x55\x8B\xEC\x8B\x55\x08\x85\xD2\x74\x2A\x8D\x81\xE4\x1F\x00\x00\x56\x8D"
   143 				"linux"		"@_ZN9CCSPlayer10SetClanTagEPKc"
   144 				"mac"		"@_ZN9CCSPlayer10SetClanTagEPKc"
   145 			}
   146 			//Wild card first 6 bytes since we call it and detour it.
   147 			"GetAttributeInt"
   148 			{
   149 				"library"	"server"
   150 				"windows"	"\x2A\x2A\x2A\x2A\x2A\x2A\x83\xEC\x1C\x53\x8B\x5D\x0C\xC7\x44\x24\x04\x00\x00\x00\x00\x56\x8B\xF1\x89\x74\x24\x0C\x57\x8B\x7D\x08\x85\xDB\x74\x2A\x80\x7B\x44\x00\x74\x2A\x57\xE8\x2A\x2A\x2A\x2A\x8B\xC8\xE8\x2A\x2A\x2A\x2A\x89\x44\x24\x14\xE8\x2A\x2A\x2A\x2A\x8B\x70\x08\xE8\x2A\x2A\x2A\x2A\x3B\x70\x08\x74\x2A\x57\xE8\x2A\x2A\x2A\x2A\x8B\xC8\xE8\x2A\x2A\x2A\x2A\xEB\x2A\x8B\x44\x24\x14\x85\xC0\x74\x2A\x89\x44\x24\x1C\x8D\x4C\x24\x18\x8D\x44\x24\x0C\xC7\x44\x24\x18\x2A\x2A\x2A\x2A\x89\x44\x24\x20\x8B\x03\x51\x8B\xCB\xC6\x44\x24\x28\x00\xFF\x50\x2A\x80\x7C\x24\x24\x00\x74\x2A\x8B\x44\x24\x0C"
   151 				"linux"		"@_ZNK16FileWeaponInfo_t15GetAttributeIntEPKcPK13CEconItemView"
   152 				"mac"		"@_ZNK16FileWeaponInfo_t15GetAttributeIntEPKcPK13CEconItemView"
   153 			}
   154 			"SetModelFromClass"
   155 			{
   156 				"library"	"server"
   157 				"windows"	"\x55\x8B\xEC\x83\xEC\x08\x56\x57\x8B\xF9\xC7\x45\xFC\x2A\x2A\x2A\x2A\x8B\x87"
   158 				"linux"		"@_ZN9CCSPlayer17SetModelFromClassEv"
   159 				"mac"		"@_ZN9CCSPlayer17SetModelFromClassEv"
   160 			}
   161 		}
   162 	}
   163 	
   164 	"csgo"
   165 	{
   166 		"Keys"
   167 		{
   168 			"AssistsBase"		"m_iFrags"
   169 		}
   170 		
   171 		"Offsets"
   172 		{
   173 			"Assists"
   174 			{
   175 				"windows"	"4"
   176 				"linux"		"4"
   177 				"mac"		"4"
   178 			}
   179 		}
   180 	}
   181 	
   182 	"csgo"
   183 	{
   184 		"Keys"
   185 		{
   186 			"CScoreBase"		"m_bIsHoldingLookAtWeapon"
   187 		}
   188 		
   189 		"Offsets"
   190 		{
   191 			"CScore"
   192 			{
   193 				"windows"	"55"
   194 				"linux"		"55"
   195 				"mac"		"55"
   196 			}
   197 		}
   198 	}
   199 	
   200 	"csgo"
   201 	{
   202 		"Keys"
   203 		{
   204 			"MVPsBase"		"m_bIsLookingAtWeapon"
   205 		}
   206 		
   207 		"Offsets"
   208 		{
   209 			"MVPs"
   210 			{
   211 				"windows"	"16"
   212 				"linux"		"16"
   213 				"mac"		"16"
   214 			}
   215 		}
   216 	}
   217 }