gamedata/sm-cstrike.games/game.csgo.txt
author Asher Baker <asherkin@gmail.com>
Wed Aug 22 23:23:31 2012 +0100 (2012-08-22)
changeset 3623 3fd87cb487f8
parent 3602 1b0eeb2823ad
child 3628 d2ab961b0f75
child 3631 0a420925da0b
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 	//No mac binary yet so no mac gamedata
    15 	"csgo"
    16 	{
    17 		"Offsets"
    18 		{
    19 			//Offset of szClassName in CCSWeaponInfo 
    20 			"WeaponName"
    21 			{
    22 				"windows"		"6"
    23 				"linux"			"6"
    24 			}
    25 			"WeaponPrice"
    26 			{
    27 				"windows"		"2700"
    28 				"linux"			"2700"
    29 			}
    30 			//Offset into CheckRestartRound
    31 			//Only Windows/Linux for now.
    32 			"CTTeamScoreOffset"
    33 			{
    34 				"windows"	"97"
    35 				"linux"		"124"
    36 			}
    37 			//Offset into CheckRestartRound
    38 			//Only Windows/Linux for now.
    39 			"TTeamScoreOffset"
    40 			{
    41 				"windows"	"119"
    42 				"linux"		"159"
    43 			}
    44 			//Offset into IncrementNumMVPs to find MVP count offset from player
    45 			//Only Windows/Linux for now.
    46 			"MVPCountOffset"
    47 			{
    48 				"windows"	"46"
    49 				"linux"		"47"
    50 			}
    51 		}
    52 		"Signatures"
    53 		{
    54 			"RoundRespawn"
    55 			{
    56 				"library"	"server"
    57 				"windows"	"\x55\x8B\xEC\x83\xEC\x2A\x56\x8B\xF1\x8B\x0D\x2A\x2A\x2A\x2A\x57\xE8\x2A\x2A\x2A\x2A\x84\xC0\x75"
    58 				"linux"		"@_ZN9CCSPlayer12RoundRespawnEv"
    59 			}
    60 			"SwitchTeam"
    61 			{
    62 				"library"	"server"
    63 				"windows"	"\x55\x8B\xEC\x83\xEC\x2A\x56\x57\x8B\x7D\x2A\x57\x8B\xF1\xE8\x2A\x2A\x2A\x2A\x83\xC4"
    64 				"linux"		"@_ZN9CCSPlayer10SwitchTeamEi"
    65 			}
    66 			"HandleCommand_Buy_Internal"
    67 			{
    68 				"library"		"server"
    69 				"windows"		"\x55\x8B\xEC\x81\xEC\x2A\x2A\x00\x00\x53\x56\x8B\xF1\x80\xBE\x2A\x2A\x00\x00\x00"
    70 				"linux"			"@_ZN9CCSPlayer26HandleCommand_Buy_InternalEPKc"
    71 			}
    72 			"CSWeaponDrop"//Wildcard first 6 bytes for CS:S DM
    73 			{
    74 				"library"		"server"
    75 				"windows"		"\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x53\x56\x8B\x2A\x2A\x32\xDB\x57\x8B\xF9\x85\xF6\x0F\x84"
    76 				"linux"			"@_ZN9CCSPlayer12CSWeaponDropEP17CBaseCombatWeaponbb"
    77 			}
    78 			"TerminateRound"
    79 			{
    80 				"library"		"server"
    81 				"windows"		"\x55\x8B\xEC\x83\xEC\x2A\x53\x8B\x2A\x2A\x56\x57\x33\xFF"
    82 				"linux"			"@_ZN12CCSGameRules14TerminateRoundEfi"
    83 			}
    84 			"GetTranslatedWeaponAlias"
    85 			{
    86 				"library"		"server"
    87 				"windows"		"\x55\x8B\xEC\x56\x57\x8B\x2A\x2A\x33\xF6\x8D\x9B\x2A\x2A\x2A\x2A\x8B\x04\xF5\x2A\x2A\x2A\x2A\x57\x50\xE8\x2A\x2A\x2A\x2A\x83\xC4\x2A\x85\xC0\x74\x2A\x46\x83\xFE\x2A\x72\x2A\x8B\xC7\x5F\x5E\x5D\xC3"
    88 				"linux"			"@_Z24GetTranslatedWeaponAliasPKc"
    89 			}
    90 			"GetWeaponInfo"
    91 			{
    92 				"library"		"server"
    93 				"windows"		"\x55\x8B\xEC\x8B\x4D\x2A\x33\xC0\x85\xC9\x74"
    94 				"linux"			"@_Z13GetWeaponInfo10CSWeaponID"
    95 			}
    96 			//In CS:GO this is actually CCSGameRules::CheckRestartRound(void) but to keep same gamedata as cs:s.
    97 			"CheckWinLimit"
    98 			{
    99 				"library"	"server"
   100 				"windows"	"\x55\x8B\xEC\x83\xEC\x2A\x56\x57\x8B\xF9\x8B\x0D\x2A\x2A\x2A\x2A\x81\xF9\x2A\x2A\x2A\x2A\x75\x2A\x8B"
   101 				"linux"		"@_ZN12CCSGameRules17CheckRestartRoundEv"
   102 			}
   103 			"IncrementNumMVPs"
   104 			{
   105 				"library"	"server"
   106 				"windows"	"\x55\x8B\xEC\xA1\x2A\x2A\x2A\x2A\x8B\x50\x2A\x57\x8B\xF9\xB9\x2A\x2A\x2A\x2A\xFF\xD2\x85\xC0\x74\x2A\x68"
   107 				"linux"		"@_ZN9CCSPlayer16IncrementNumMVPsE13CSMvpReason_t"
   108 			}
   109 			"AliasToWeaponID"
   110 			{
   111 				"library"	"server"
   112 				"windows"	"\x55\x8B\xEC\x56\x57\x8B\x2A\x2A\x85\xFF\x74\x2A\x33\xF6\x8B\xFF"
   113 				"linux"		"@_Z15AliasToWeaponIDPKc"
   114 			}
   115 		}
   116 	}
   117 }