gamedata/sm-cstrike.games/game.css.txt
author Asher Baker <asherkin@gmail.com>
Wed Aug 22 23:23:31 2012 +0100 (2012-08-22)
changeset 3623 3fd87cb487f8
parent 3561 34b1fca29620
child 3654 4db8a3a34a3d
permissions -rw-r--r--
Updated cstrike 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 	"cstrike"
    15 	{
    16 		"Offsets"
    17 		{
    18 			//Offset of szClassName in CCSWeaponInfo
    19 			"WeaponName"
    20 			{
    21 				"windows"		"6"
    22 				"linux"			"6"
    23 				"mac"			"6"
    24 			}
    25 			"WeaponPrice"
    26 			{
    27 				"windows"		"2308"
    28 				"linux"			"2308"
    29 				"mac"			"2308"
    30 			}
    31 			//Offset into SetClanTag to find clan tag's offset from player
    32 			"ClanTagOffset"
    33 			{
    34 				"windows"	"24"
    35 				"linux"		"42"
    36 				"mac"		"29"
    37 			}
    38 			//Offset into CheckWinLimit to find CT team score offset from gamerules. For mac this is an offset into CCSGameRules::Think
    39 			"CTTeamScoreOffset"
    40 			{
    41 				"windows"	"18"
    42 				"linux"		"46"
    43 				"mac"		"466"
    44 			}
    45 			//Offset into CheckWinLimit to find T team score offset from gamerules. For mac this is an offset into CCSGameRules::Think
    46 			"TTeamScoreOffset"
    47 			{
    48 				"windows"	"58"
    49 				"linux"		"57"
    50 				"mac"		"481"
    51 			}
    52 			//Offset into IncrementNumMVPs to find MVP count offset from player
    53 			"MVPCountOffset"
    54 			{
    55 				"windows"	"60"
    56 				"linux"		"49"
    57 				"mac"		"62"
    58 			}
    59 		}
    60 		"Signatures"
    61 		{
    62 			"RoundRespawn"
    63 			{
    64 				"library"	"server"
    65 				"windows"	"\x55\x8B\xEC\x51\x89\x2A\x2A\x8B\x2A\x2A\x8B\x10\x8B"
    66 				"linux"		"@_ZN9CCSPlayer12RoundRespawnEv"
    67 				"mac"		"@_ZN9CCSPlayer12RoundRespawnEv"
    68 			}
    69 			"SwitchTeam"
    70 			{
    71 				"library"	"server"
    72 				"windows"	"\x55\x8B\xEC\x83\xEC\x2A\x89\x4D\x2A\x8B\x45\x2A\x50\xE8\x2A\x2A\x2A\x2A\x83\xC4\x04\x85\xC0\x74"
    73 				"linux"		"@_ZN9CCSPlayer10SwitchTeamEi"
    74 				"mac"		"@_ZN9CCSPlayer10SwitchTeamEi"
    75 			}
    76 			"HandleCommand_Buy_Internal"
    77 			{
    78 				"library"		"server"
    79 				"windows"		"\x55\x8B\xEC\x83\xEC\x2A\x89\x2A\x2A\x6A\x00\x8B\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x0F\x2A\x2A\xF7\xD8"
    80 				"linux"			"@_ZN9CCSPlayer26HandleCommand_Buy_InternalEPKc"
    81 				"mac"			"@_ZN9CCSPlayer26HandleCommand_Buy_InternalEPKc"
    82 			}
    83 			"GetWeaponPrice"
    84 			{
    85 				"library"		"server"
    86 				"windows"		"\x8B\x81\x04\x09\x00\x00\xC3"
    87 				"linux"			"@_ZNK13CCSWeaponInfo14GetWeaponPriceEv"
    88 				"mac"			"@_ZNK13CCSWeaponInfo14GetWeaponPriceEv"
    89 			}
    90 			"CSWeaponDrop"//Wildcard first 6 bytes for CS:S DM
    91 			{
    92 				"library"		"server"
    93 				"windows"		"\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x89\x8D\x5C\x2A\x2A\x2A\xC6\x45\x2A\x2A\x8B\x8D\x5C\x2A\x2A\x2A\xE8"
    94 				"linux"			"@_ZN9CCSPlayer12CSWeaponDropEP17CBaseCombatWeaponbb"
    95 				"mac"			"@_ZN9CCSPlayer12CSWeaponDropEP17CBaseCombatWeaponbb"
    96 			}
    97 			"TerminateRound"
    98 			{
    99 				"library"		"server"
   100 				"windows"		"\x55\x8B\xEC\x83\xEC\x2A\x53\x8B\x2A\x2A\x56\x57\x33\xFF\x83"
   101 				"linux"			"@_ZN12CCSGameRules14TerminateRoundEfi"
   102 				"mac"			"@_ZN12CCSGameRules14TerminateRoundEfi"
   103 			}
   104 			"GetTranslatedWeaponAlias"
   105 			{
   106 				"library"		"server"
   107 				"windows"		"\x55\x8B\xEC\x56\x57\x8B\x2A\x2A\x33\xF6\x8D\x2A\x00\x00\x00\x00\x8B\x04\xF5\x2A\x2A\x2A\x2A\x57\x50\xE8\x2A\x2A\x2A\x2A\x83\xC4\x2A\x85\xC0\x74\x2A\x83\xC6\x01\x83\x2A\x1A"
   108 				"linux"			"@_Z24GetTranslatedWeaponAliasPKc"
   109 				"mac"			"@_Z24GetTranslatedWeaponAliasPKc"
   110 			}
   111 			"GetWeaponInfo"
   112 			{
   113 				"library"		"server"
   114 				"windows"		"\x55\x8B\xEC\x8B\x4D\x2A\x85\xC9\x75\x2A\x33\xC0\x5D\xC3\x83\xF9\x2A\x7C\x2A\x69\xC9\x2A\x2A\x00\x00"
   115 				"linux"			"@_Z13GetWeaponInfo10CSWeaponID"
   116 				"mac"			"@_Z13GetWeaponInfo10CSWeaponID"
   117 			}
   118 			"SetClanTag"
   119 			{
   120 				"library"	"server"
   121 				"windows"	"\x55\x8B\xEC\x51\x89\x2A\x2A\x83\x2A\x2A\x2A\x74\x2A\x6A\x2A\x8B\x2A\x2A\x50"
   122 				"linux"		"@_ZN9CCSPlayer10SetClanTagEPKc"
   123 				"mac"		"@_ZN9CCSPlayer10SetClanTagEPKc"
   124 			}
   125 			"AliasToWeaponID"
   126 			{
   127 				"library"	"server"
   128 				"windows"	"\x55\x8B\xEC\x56\x57\x8B\x2A\x2A\x85\xFF\x74\x2A\x33\xF6\x8B\xFF\x8B\x04\x2A\x2A\x2A\x2A\x2A\x57\x50"
   129 				"linux"		"@_Z15AliasToWeaponIDPKc"
   130 				"mac"		"@_Z15AliasToWeaponIDPKc"
   131 			}
   132 			
   133 			//For mac we use think since CheckWinLimit dosnt exist on mac.
   134 			"CheckWinLimit"
   135 			{
   136 				"library"	"server"
   137 				"windows"	"\xA1\x2A\x2A\x2A\x2A\x8B\x40\x2A\x85\xC0\x56\x8B\xF1\x74"
   138 				"linux"		"@_ZN12CCSGameRules13CheckWinLimitEv"
   139 				"mac"		"@_ZN12CCSGameRules5ThinkEv"
   140 			}
   141 			"IncrementNumMVPs"
   142 			{
   143 				"library"	"server"
   144 				"windows"	"\x55\x8B\xEC\x83\xEC\x2A\x89\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x8B\x48\x2A\x89\x2A\x2A\x33\xD2\x83\x7D\x2A\x00\x0F\x95\xC2\x0F\xB6\xC2\x85\xC0\x74\x2A\x68"
   145 				"linux"		"@_ZN9CCSPlayer16IncrementNumMVPsE13CSMvpReason_t"
   146 				"mac"		"@_ZN9CCSPlayer16IncrementNumMVPsE13CSMvpReason_t"
   147 			}
   148 		}
   149 	}
   150 }