gamedata/sm-cstrike.games/game.csgo.txt
author Drifter <rgr_02@comcast.net>
Sun May 27 19:07:44 2012 -0400 (2012-05-27)
changeset 3530 c7421e302b11
parent 3519 a116c415c73e
child 3534 25d1266f1ed5
permissions -rw-r--r--
Added natives for changing team score and mvp stars on CSS/CSGO (bug 5295, r=psychonic).
rgr_02@3519
     1
/**
rgr_02@3519
     2
 * Do not edit this file.  Any changes will be overwritten by the gamedata
rgr_02@3519
     3
 * updater or by upgrading your SourceMod install.
rgr_02@3519
     4
 *
rgr_02@3519
     5
 * To override data in this file, create a subdirectory named "custom" and
rgr_02@3519
     6
 * place your own gamedata file(s) inside of it.  Such files will be parsed
rgr_02@3519
     7
 * after SM's own.
rgr_02@3519
     8
 *
rgr_02@3519
     9
 * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(SourceMod)
rgr_02@3519
    10
 */
rgr_02@3519
    11
rgr_02@3519
    12
"Games"
rgr_02@3519
    13
{
rgr_02@3519
    14
	//No mac binary yet so no mac gamedata
rgr_02@3519
    15
	"csgo"
rgr_02@3519
    16
	{
rgr_02@3519
    17
		"Offsets"
rgr_02@3519
    18
		{
rgr_02@3519
    19
			//Offset of szClassName in CCSWeaponInfo 
rgr_02@3519
    20
			"WeaponName"
rgr_02@3519
    21
			{
rgr_02@3519
    22
				"windows"		"6"
rgr_02@3519
    23
				"linux"			"6"
rgr_02@3519
    24
			}
rgr_02@3519
    25
			"WeaponPrice"
rgr_02@3519
    26
			{
rgr_02@3519
    27
				"windows"		"2700"
rgr_02@3519
    28
				"linux"			"2700"
rgr_02@3519
    29
			}
rgr_02@3530
    30
			//Offset into CheckRestartRound
rgr_02@3530
    31
			//Only Windows/Linux for now.
rgr_02@3530
    32
			"CTTeamScoreOffset"
rgr_02@3530
    33
			{
rgr_02@3530
    34
				"windows"	"82"
rgr_02@3530
    35
				"linux"		"117"
rgr_02@3530
    36
			}
rgr_02@3530
    37
			//Offset into CheckRestartRound
rgr_02@3530
    38
			//Only Windows/Linux for now.
rgr_02@3530
    39
			"TTeamScoreOffset"
rgr_02@3530
    40
			{
rgr_02@3530
    41
				"windows"	"107"
rgr_02@3530
    42
				"linux"		"152"
rgr_02@3530
    43
			}
rgr_02@3530
    44
			//Offset into IncrementNumMVPs to find MVP count offset from player
rgr_02@3530
    45
			//Only Windows/Linux for now.
rgr_02@3530
    46
			"MVPCountOffset"
rgr_02@3530
    47
			{
rgr_02@3530
    48
				"windows"	"42"
rgr_02@3530
    49
				"linux"		"46"
rgr_02@3530
    50
			}
rgr_02@3519
    51
		}
rgr_02@3519
    52
		"Signatures"
rgr_02@3519
    53
		{
rgr_02@3519
    54
			"RoundRespawn"
rgr_02@3519
    55
			{
rgr_02@3519
    56
				"library"	"server"
rgr_02@3519
    57
				"windows"	"\x55\x8B\xEC\x83\xEC\x2A\x56\x8B\xF1\x8B\x0D\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x84\xC0\x75"
rgr_02@3519
    58
				"linux"		"@_ZN9CCSPlayer12RoundRespawnEv"
rgr_02@3519
    59
			}
rgr_02@3519
    60
			"SwitchTeam"
rgr_02@3519
    61
			{
rgr_02@3519
    62
				"library"	"server"
rgr_02@3519
    63
				"windows"	"\x55\x8B\xEC\x83\xEC\x2A\x56\x57\x8B\x7D\x2A\x57\x8B\xF1\xE8\x2A\x2A\x2A\x2A\x83\xC4"
rgr_02@3519
    64
				"linux"		"@_ZN9CCSPlayer10SwitchTeamEi"
rgr_02@3519
    65
			}
rgr_02@3519
    66
			"HandleCommand_Buy_Internal"
rgr_02@3519
    67
			{
rgr_02@3519
    68
				"library"		"server"
rgr_02@3519
    69
				"windows"		"\x55\x8B\xEC\x81\xEC\x2A\x2A\x00\x00\x53\x56\x8B\xF1\x80\xBE\x2A\x2A\x00\x00\x00"
rgr_02@3519
    70
				"linux"			"@_ZN9CCSPlayer26HandleCommand_Buy_InternalEPKc"
rgr_02@3519
    71
			}
rgr_02@3519
    72
			"CSWeaponDrop"//Wildcard first 6 bytes for CS:S DM
rgr_02@3519
    73
			{
rgr_02@3519
    74
				"library"		"server"
rgr_02@3519
    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"
rgr_02@3519
    76
				"linux"			"@_ZN9CCSPlayer12CSWeaponDropEP17CBaseCombatWeaponbb"
rgr_02@3519
    77
			}
rgr_02@3519
    78
			"TerminateRound"
rgr_02@3519
    79
			{
rgr_02@3519
    80
				"library"		"server"
rgr_02@3519
    81
				"windows"		"\x55\x8B\xEC\x83\xEC\x2A\x53\x8B\x2A\x2A\x56\x57\x33\xFF"
rgr_02@3519
    82
				"linux"			"@_ZN12CCSGameRules14TerminateRoundEfi"
rgr_02@3519
    83
			}
rgr_02@3519
    84
			"GetTranslatedWeaponAlias"
rgr_02@3519
    85
			{
rgr_02@3519
    86
				"library"		"server"
rgr_02@3519
    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"
rgr_02@3519
    88
				"linux"			"@_Z24GetTranslatedWeaponAliasPKc"
rgr_02@3519
    89
			}
rgr_02@3519
    90
			"GetWeaponInfo"
rgr_02@3519
    91
			{
rgr_02@3519
    92
				"library"		"server"
rgr_02@3519
    93
				"windows"		"\x55\x8B\xEC\x8B\x4D\x2A\x33\xC0\x85\xC9\x74"
rgr_02@3519
    94
				"linux"			"@_Z13GetWeaponInfo10CSWeaponID"
rgr_02@3519
    95
			}
rgr_02@3530
    96
			//In CS:GO this is actually CCSGameRules::CheckRestartRound(void) but to keep same gamedata as cs:s.
rgr_02@3530
    97
			"CheckWinLimit"
rgr_02@3530
    98
			{
rgr_02@3530
    99
				"library"	"server"
rgr_02@3530
   100
				"windows"	"\x55\x8B\xEC\xA1\x2A\x2A\x2A\x2A\x83\xEC\x2A\x57\x8B\xF9\x85\xC0\x0F\x84\x2A\x2A\x00\x00"
rgr_02@3530
   101
				"linux"		"@_ZN12CCSGameRules17CheckRestartRoundEv"
rgr_02@3530
   102
			}
rgr_02@3530
   103
			"IncrementNumMVPs"
rgr_02@3530
   104
			{
rgr_02@3530
   105
				"library"	"server"
rgr_02@3530
   106
				"windows"	"\x55\x8B\xEC\xA1\x2A\x2A\x2A\x2A\x57\x8B\xF9\x85\x2A\x74\x2A\x83\x2A\x2A\x00\x74\x2A\x68\x50"
rgr_02@3530
   107
				"linux"		"@_ZN9CCSPlayer16IncrementNumMVPsE13CSMvpReason_t"
rgr_02@3530
   108
			}
rgr_02@3519
   109
			"AliasToWeaponID"
rgr_02@3519
   110
			{
rgr_02@3519
   111
				"library"	"server"
rgr_02@3519
   112
				"windows"	"\x55\x8B\xEC\x56\x57\x8B\x2A\x2A\x85\xFF\x74\x2A\x33\xF6\x8B\xFF"
rgr_02@3519
   113
				"linux"		"@_Z15AliasToWeaponIDPKc"
rgr_02@3519
   114
			}
rgr_02@3519
   115
		}
rgr_02@3519
   116
	}
rgr_02@3519
   117
}