gamedata/sdktools.games/engine.ep2valve.txt
author Paul Clothier <wazzled08@gmail.com>
Tue Apr 17 21:17:09 2012 -0400 (2012-04-17)
changeset 3479 00b8abeda63e
parent 3407 a4e5ac36e2f5
child 3480 64d8134f0a9b
permissions -rw-r--r--
Updated ep2v and TF2 gamedata.
pred@2768
     1
/**
pred@2768
     2
 * Do not edit this file.  Any changes will be overwritten by the gamedata
pred@2768
     3
 * updater or by upgrading your SourceMod install.
pred@2768
     4
 *
pred@2768
     5
 * To override data in this file, create a subdirectory named "custom" and
pred@2768
     6
 * place your own gamedata file(s) inside of it.  Such files will be parsed
pred@2768
     7
 * after SM's own.
pred@2768
     8
 *
pred@2768
     9
 * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(SourceMod)
pred@2768
    10
 */
pred@2768
    11
pred@2768
    12
"Games"
pred@2768
    13
{
pred@2768
    14
	/* General Temp Entities */
pred@2768
    15
	"#default"
pred@2768
    16
	{
pred@2768
    17
		"#supported"
pred@2768
    18
		{
pred@2768
    19
			"game"		"dod"
pred@2768
    20
			"game"		"tf"
skamonkey@2985
    21
			"game"		"cstrike"
skamonkey@3064
    22
			"game"		"garrysmod"
skamonkey@3124
    23
			"game"		"hl2mp"
pred@2768
    24
		}
pred@2768
    25
pred@2768
    26
		"Offsets"
pred@2768
    27
		{
pred@2768
    28
			/* Offset into CBaseTempEntity constructor */
pred@2768
    29
			"s_pTempEntities"
pred@2768
    30
			{
wazzled08@3479
    31
				"windows"	"10"
pred@2768
    32
			}
pred@2768
    33
			"GetTEName"
pred@2768
    34
			{
pred@2768
    35
				"windows"	"4"
pred@2768
    36
				"linux"		"4"
ds@3030
    37
				"mac"		"4"
pred@2768
    38
			}
pred@2768
    39
			"GetTENext"
pred@2768
    40
			{
pred@2768
    41
				"windows"	"8"
pred@2768
    42
				"linux"		"8"
ds@3030
    43
				"mac"		"8"
pred@2768
    44
			}
pred@2768
    45
			"TE_GetServerClass"
pred@2768
    46
			{
pred@2768
    47
				"windows"	"0"
pred@2768
    48
				"linux"		"0"
ds@3030
    49
				"mac"		"0"
pred@2768
    50
			}
pred@2768
    51
		}
pred@2768
    52
pred@2768
    53
		"Signatures"
pred@2768
    54
		{
pred@2768
    55
			"CBaseTempEntity"
pred@2768
    56
			{
pred@2768
    57
				"library"	"server"
wazzled08@3479
    58
				"windows"	"\x55\x8B\xEC\x8B\xC1\x8B\x4D\x2A\xC7\x00\x2A\x2A\x2A\x2A\x89\x48"
pred@2768
    59
			}
pred@2768
    60
			"s_pTempEntities"
pred@2768
    61
			{
pred@2768
    62
				"library"	"server"
pred@2768
    63
				"linux"		"@_ZN15CBaseTempEntity15s_pTempEntitiesE"
ds@3030
    64
				"mac"		"@_ZN15CBaseTempEntity15s_pTempEntitiesE"
pred@2768
    65
			}
pred@2768
    66
		}
pred@2768
    67
	}
pred@2768
    68
skamonkey@3353
    69
	/* CGlobalEntityList */
skamonkey@3353
    70
	"#default"
skamonkey@3353
    71
	{
skamonkey@3353
    72
		"#supported"
skamonkey@3353
    73
		{
skamonkey@3353
    74
			"game"		"dod"
skamonkey@3353
    75
			"game"		"tf"
skamonkey@3353
    76
			"game"		"cstrike"
skamonkey@3353
    77
			"game"		"hl2mp"
skamonkey@3353
    78
		}
skamonkey@3353
    79
		
skamonkey@3353
    80
		"Signatures"
skamonkey@3353
    81
		{
skamonkey@3353
    82
			/* Functions in CGlobalEntityList */
skamonkey@3353
    83
			"FindEntityByClassname"
skamonkey@3353
    84
			{
skamonkey@3353
    85
				"library"	"server"
wazzled08@3479
    86
				"windows"	"\x55\x8B\xEC\x53\x56\x8B\xF1\x8B\x4D\x2A\x85\xC9\x57\x74\x2A\x8B\x01\x8B\x50\x2A\xFF\xD2\x8B\x00\x25\x2A\x2A\x2A\x2A\x83\xC0\x2A\xC1\xE0\x04\x8B\x3C\x30\xEB\x2A\x8B\xBE\x2A\x2A\x2A\x2A\x85\xFF\x74\x2A\x8B\x5D\x2A\x8B\x37\x85\xF6\x75\x2A\x68\x2A\x2A\x2A\x2A\xFF\x15\x2A\x2A\x2A\x2A\x83\xC4\x2A\xEB\x2A\x39"
skamonkey@3353
    87
				"linux"		"@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc"
skamonkey@3353
    88
				"mac"		"@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc"
skamonkey@3353
    89
			}
skamonkey@3353
    90
		}
skamonkey@3353
    91
	}
skamonkey@3353
    92
pred@2768
    93
	/* General GameRules */
pred@2768
    94
	"#default"
pred@2768
    95
	{
pred@2768
    96
		"#supported"
pred@2768
    97
		{
pred@2768
    98
			"game"		"dod"
pred@2768
    99
			"game"		"tf"
skamonkey@2985
   100
			"game"		"cstrike"
skamonkey@3064
   101
			"game"		"garrysmod"
skamonkey@3124
   102
			"game"		"hl2mp"
pred@2768
   103
		}
pred@2768
   104
		
pred@2768
   105
		"Offsets"
pred@2768
   106
		{
pred@2768
   107
			/* Offset into CreateGameRulesObject */
pred@2768
   108
			"g_pGameRules"
pred@2768
   109
			{
pred@2768
   110
				"windows"	"2"
pred@2768
   111
			}
pred@2768
   112
		}
pred@2768
   113
		
pred@2768
   114
		"Signatures"
pred@2768
   115
		{
pred@2768
   116
			/* This signature sometimes has multiple matches, but this
pred@2768
   117
			 * does not matter as g_pGameRules is involved in all of them.
pred@2768
   118
			 * The same g_pGameRules offset applies to each match.
pred@2768
   119
			 *
pred@2768
   120
			 * Sometimes this block of bytes is at the beginning of the static
pred@2768
   121
			 * CreateGameRulesObject function and sometimes it is in the middle
pred@2768
   122
			 * of an entirely different function. This depends on the game.
pred@2768
   123
			 */
pred@2768
   124
			"CreateGameRulesObject"
pred@2768
   125
			{
pred@2768
   126
				"library"	"server"
pred@2768
   127
				"windows"	"\x8B\x0D\x2A\x2A\x2A\x2A\x85\xC9\x74\x2A\x8B\x01\x8B\x50\x2A\x6A\x01\xFF\xD2"
pred@2768
   128
			}
pred@2768
   129
			"g_pGameRules"
pred@2768
   130
			{
pred@2768
   131
				"library"	"server"
pred@2768
   132
				"linux"		"@g_pGameRules"
ds@3030
   133
				"mac"		"@g_pGameRules"
pred@2768
   134
			}
pred@2768
   135
		}
pred@2768
   136
	}
pred@2768
   137
pred@2768
   138
	/* IServer interface pointer */
pred@2768
   139
	"#default"
pred@2768
   140
	{
pred@2768
   141
		"Keys"
pred@2768
   142
		{
pred@2768
   143
			/* Signature for the beginning of IVEngineServer::CreateFakeClient.
pred@2768
   144
			 *
pred@2768
   145
			 * The engine binary is not actually scanned in order to look for
pred@2768
   146
			 * this. SourceHook is used to used to determine the address of the
pred@2768
   147
			 * function and this signature is used to verify that it contains
pred@2768
   148
			 * the expected code. A pointer to sv (IServer interface) is used
pred@2768
   149
			 * here.
pred@2768
   150
			 */
pred@2768
   151
			"CreateFakeClient_Windows"	"\x8B\x44\x24\x2A\x50\xB9\x2A\x2A\x2A\x2A\xE8"
pred@2768
   152
		}
pred@2768
   153
		
pred@2768
   154
		"Offsets"
pred@2768
   155
		{
pred@2768
   156
			/* Offset into IVEngineServer::CreateFakeClient */
pred@2768
   157
			"sv"
pred@2768
   158
			{
pred@2768
   159
				"windows"	"6"
pred@2768
   160
			}
pred@2768
   161
		}
pred@2768
   162
pred@2768
   163
		"Signatures"
pred@2768
   164
		{
pred@2768
   165
			/* CBaseServer object for IServer interface */
pred@2768
   166
			"sv"
pred@2768
   167
			{
pred@2768
   168
				"library"	"engine"
pred@2768
   169
				"linux"		"@sv"
ds@3030
   170
				"mac"		"@sv"
pred@2768
   171
			}
pred@2768
   172
		}
pred@2768
   173
	}
pred@2768
   174
	
pred@2768
   175
	/* EntityFactoryDictionary function */
pred@2768
   176
	"#default"
pred@2768
   177
	{
pred@2768
   178
		"Signatures"
pred@2768
   179
		{
pred@2768
   180
			"EntityFactory"
pred@2768
   181
			{
pred@2768
   182
				"library"	"server"
pred@2768
   183
				"windows"	"\xB8\x01\x00\x00\x00\x84\x2A\x2A\x2A\x2A\x2A\x75\x1D\x09\x2A\x2A\x2A\x2A\x2A\xB9\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x68\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x83\xC4\x04\xB8\x2A\x2A\x2A\x2A\xC3"
pred@2768
   184
				"linux"		"@_Z23EntityFactoryDictionaryv"
ds@3030
   185
				"mac"		"@_Z23EntityFactoryDictionaryv"
pred@2768
   186
			}
pred@2768
   187
		}
pred@2768
   188
	}
pred@2768
   189
pred@2768
   190
	/* CBaseEntityOutput::FireOutput */
pred@2768
   191
	"#default"
pred@2768
   192
	{
pred@2768
   193
		"#supported"
pred@2768
   194
		{
pred@2768
   195
			"game"		"dod"
pred@2768
   196
			"game"		"tf"
skamonkey@2985
   197
			"game"		"cstrike"
skamonkey@3124
   198
			"game"		"hl2mp"
pred@2768
   199
		}
pred@2768
   200
		"Signatures"
pred@2768
   201
		{
pred@2768
   202
			"FireOutput"
pred@2768
   203
			{
pred@2768
   204
				"library"	"server"
wazzled08@3479
   205
				"windows"	"\x55\x8B\xEC\x81\xEC\x2A\x2A\x2A\x2A\x53\x56\x8B\x71\x2A\x85\xF6"
pred@2768
   206
				"linux"		"@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
ds@3030
   207
				"mac"		"@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
pred@2768
   208
			}
pred@2768
   209
		}
pred@2768
   210
	}
pred@2768
   211
	
pred@2768
   212
	/* SetUserInfo data */
pred@2768
   213
	"#default"
pred@2768
   214
	{
pred@2768
   215
		"Offsets"
pred@2768
   216
		{
pred@2768
   217
			/**
pred@2768
   218
			 * CBaseClient::SetUserCVar(char  const*,char  const*);
pred@2768
   219
			 * Linux offset straight from VTable dump.
pred@2768
   220
			 * Windows offset is crazy. Found the windows SetName function using string "(%d)%-0.*s"
pred@2768
   221
			 * Cross referenced back to the vtable and counted manually (SetUserCvar is 1 higher, offsets start from 1)
pred@2768
   222
			 */
pred@2768
   223
			"SetUserCvar"
pred@2768
   224
			{
pred@2768
   225
				"windows"	"17"
strontiumdog@3268
   226
				"linux"		"57"
strontiumdog@3268
   227
				"mac"		"57"
pred@2768
   228
			}
pred@2768
   229
			/**
pred@2768
   230
			 * Offset into CBaseClient - Used by CBaseServer::UpdateUserSettings to determine when changes have been made.
pred@2768
   231
			 * Find CBaseClient::UpdateUserSettings (strings "net_maxroutable", "cl_updaterate" etc) and the offset is set to 0 near the end.
pred@2768
   232
			 * Linux: 	mov     byte ptr [esi+98h], 0
pred@2768
   233
			 * Win:	mov     byte ptr [esi+0A4h], 0
pred@2768
   234
			 */
pred@2768
   235
			"InfoChanged"
pred@2768
   236
			{
pred@2768
   237
				"windows"	"140"
pred@2768
   238
				"linux"		"140"
ds@3030
   239
				"mac"		"140"
pred@2768
   240
			}
pred@2768
   241
		}
pred@2768
   242
	}
pred@2768
   243
}