gamedata/sdktools.games/engine.ep2valve.txt
author Nicholas Hastings <skamonkey@gmail.com>
Tue May 11 20:40:14 2010 -0400 (2010-05-11)
changeset 2985 3e11d608254b
parent 2972 53231097e559
child 3030 b932396e9535
permissions -rw-r--r--
Updated gamedata for ep2v cstrike(_beta) (bug 4399, r=fyren)
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@2985
    22
			"game"		"cstrike_beta"
pred@2768
    23
		}
pred@2768
    24
pred@2768
    25
		"Offsets"
pred@2768
    26
		{
pred@2768
    27
			/* Offset into CBaseTempEntity constructor */
pred@2768
    28
			"s_pTempEntities"
pred@2768
    29
			{
pred@2768
    30
				"windows"	"17"
pred@2768
    31
			}
pred@2768
    32
			"GetTEName"
pred@2768
    33
			{
pred@2768
    34
				"windows"	"4"
pred@2768
    35
				"linux"		"4"
pred@2768
    36
			}
pred@2768
    37
			"GetTENext"
pred@2768
    38
			{
pred@2768
    39
				"windows"	"8"
pred@2768
    40
				"linux"		"8"
pred@2768
    41
			}
pred@2768
    42
			"TE_GetServerClass"
pred@2768
    43
			{
pred@2768
    44
				"windows"	"0"
pred@2768
    45
				"linux"		"0"
pred@2768
    46
			}
pred@2768
    47
		}
pred@2768
    48
pred@2768
    49
		"Signatures"
pred@2768
    50
		{
pred@2768
    51
			"CBaseTempEntity"
pred@2768
    52
			{
pred@2768
    53
				"library"	"server"
pred@2768
    54
				"windows"	"\x8B\xC1\x8B\x4C\x24\x04\xC7\x00\x2A\x2A\x2A\x2A\x89\x48\x04\x8B\x15\x2A\x2A\x2A\x2A\x89\x50\x08\xA3\x2A\x2A\x2A\x2A\xC2\x04\x00"
pred@2768
    55
			}
pred@2768
    56
			"s_pTempEntities"
pred@2768
    57
			{
pred@2768
    58
				"library"	"server"
pred@2768
    59
				"linux"		"@_ZN15CBaseTempEntity15s_pTempEntitiesE"
pred@2768
    60
			}
pred@2768
    61
		}
pred@2768
    62
	}
pred@2768
    63
	
pred@2768
    64
	/* Create Entity Signatures */
pred@2768
    65
	"#default"
pred@2768
    66
	{
pred@2768
    67
		"#supported"
pred@2768
    68
		{
pred@2768
    69
			"game"		"dod"
pred@2768
    70
			"game"		"tf"
skamonkey@2985
    71
			"game"		"cstrike"
skamonkey@2985
    72
			"game"		"cstrike_beta"
pred@2768
    73
		}
pred@2768
    74
pred@2768
    75
		"Signatures"
pred@2768
    76
		{
pred@2768
    77
			"DispatchSpawn"
pred@2768
    78
			{
pred@2768
    79
				"library"	"server"
pred@2768
    80
				"linux"		"@_Z13DispatchSpawnP11CBaseEntity"
pred@2768
    81
				"windows"	"\x53\x55\x56\x8B\x74\x24\x10\x85\xF6\x57\x0F\x84\x2A\x2A\x2A\x2A\x8B\x1D\x2A\x2A\x2A\x2A\x8B\x03\x8B\x50\x64\x8B\xCB"
pred@2768
    82
			}
pred@2768
    83
			"CreateEntityByName"
pred@2768
    84
			{
pred@2768
    85
				"library"	"server"
pred@2768
    86
				"linux"		"@_Z18CreateEntityByNamePKci"
pred@2768
    87
				"windows"	"\x56\x8B\x74\x24\x0C\x83\xFE\xFF\x57\x8B\x7C\x24\x0C\x74\x27\x8B\x0D\x2A\x2A\x2A\x2A\x8B\x01\x8B\x50\x54\x56\xFF\xD2"
pred@2768
    88
			}
pred@2768
    89
		}
pred@2768
    90
	}
pred@2768
    91
pred@2768
    92
	/* CGlobalEntityList */
pred@2768
    93
	"#default"
pred@2768
    94
	{
pred@2768
    95
		"#supported"
pred@2768
    96
		{
pred@2768
    97
			"game"		"dod"
pred@2768
    98
			"game"		"tf"
skamonkey@2985
    99
			"game"		"cstrike"
skamonkey@2985
   100
			"game"		"cstrike_beta"
pred@2768
   101
		}
pred@2768
   102
		
pred@2768
   103
		"Signatures"
pred@2768
   104
		{
pred@2768
   105
			/* Functions in CGlobalEntityList */
pred@2768
   106
			"FindEntityByClassname"
pred@2768
   107
			{
pred@2768
   108
				"library"	"server"
pred@2768
   109
				"windows"	"\x53\x55\x56\x8B\xF1\x8B\x4C\x24\x10\x85\xC9\x57\x74\x19\x8B\x01\x8B\x50\x08\xFF\xD2\x8B\x00\x25\xFF\x0F\x00\x00\x83\xC0\x01\xC1\xE0\x04\x8B\x3C\x30\xEB\x06\x8B\xBE\x2A\x2A\x2A\x2A\x85\xFF\x74\x39\x8B\x5C\x24\x18\x8B\x2D\x2A\x2A\x2A\x2A\xEB\x03"
pred@2768
   110
				"linux"		"@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc"
pred@2768
   111
			}
pred@2768
   112
		}
pred@2768
   113
	}
pred@2768
   114
pred@2768
   115
	/* General GameRules */
pred@2768
   116
	"#default"
pred@2768
   117
	{
pred@2768
   118
		"#supported"
pred@2768
   119
		{
pred@2768
   120
			"game"		"dod"
pred@2768
   121
			"game"		"tf"
skamonkey@2985
   122
			"game"		"cstrike"
skamonkey@2985
   123
			"game"		"cstrike_beta"
pred@2768
   124
		}
pred@2768
   125
		
pred@2768
   126
		"Offsets"
pred@2768
   127
		{
pred@2768
   128
			/* Offset into CreateGameRulesObject */
pred@2768
   129
			"g_pGameRules"
pred@2768
   130
			{
pred@2768
   131
				"windows"	"2"
pred@2768
   132
			}
pred@2768
   133
		}
pred@2768
   134
		
pred@2768
   135
		"Signatures"
pred@2768
   136
		{
pred@2768
   137
			/* This signature sometimes has multiple matches, but this
pred@2768
   138
			 * does not matter as g_pGameRules is involved in all of them.
pred@2768
   139
			 * The same g_pGameRules offset applies to each match.
pred@2768
   140
			 *
pred@2768
   141
			 * Sometimes this block of bytes is at the beginning of the static
pred@2768
   142
			 * CreateGameRulesObject function and sometimes it is in the middle
pred@2768
   143
			 * of an entirely different function. This depends on the game.
pred@2768
   144
			 */
pred@2768
   145
			"CreateGameRulesObject"
pred@2768
   146
			{
pred@2768
   147
				"library"	"server"
pred@2768
   148
				"windows"	"\x8B\x0D\x2A\x2A\x2A\x2A\x85\xC9\x74\x2A\x8B\x01\x8B\x50\x2A\x6A\x01\xFF\xD2"
pred@2768
   149
			}
pred@2768
   150
			"g_pGameRules"
pred@2768
   151
			{
pred@2768
   152
				"library"	"server"
pred@2768
   153
				"linux"		"@g_pGameRules"
pred@2768
   154
			}
pred@2768
   155
		}
pred@2768
   156
	}
pred@2768
   157
pred@2768
   158
	/* IServer interface pointer */
pred@2768
   159
	"#default"
pred@2768
   160
	{
pred@2768
   161
		"Keys"
pred@2768
   162
		{
pred@2768
   163
			/* Signature for the beginning of IVEngineServer::CreateFakeClient.
pred@2768
   164
			 *
pred@2768
   165
			 * The engine binary is not actually scanned in order to look for
pred@2768
   166
			 * this. SourceHook is used to used to determine the address of the
pred@2768
   167
			 * function and this signature is used to verify that it contains
pred@2768
   168
			 * the expected code. A pointer to sv (IServer interface) is used
pred@2768
   169
			 * here.
pred@2768
   170
			 */
pred@2768
   171
			"CreateFakeClient_Windows"	"\x8B\x44\x24\x2A\x50\xB9\x2A\x2A\x2A\x2A\xE8"
pred@2768
   172
		}
pred@2768
   173
		
pred@2768
   174
		"Offsets"
pred@2768
   175
		{
pred@2768
   176
			/* Offset into IVEngineServer::CreateFakeClient */
pred@2768
   177
			"sv"
pred@2768
   178
			{
pred@2768
   179
				"windows"	"6"
pred@2768
   180
			}
pred@2768
   181
		}
pred@2768
   182
pred@2768
   183
		"Signatures"
pred@2768
   184
		{
pred@2768
   185
			/* CBaseServer object for IServer interface */
pred@2768
   186
			"sv"
pred@2768
   187
			{
pred@2768
   188
				"library"	"engine"
pred@2768
   189
				"linux"		"@sv"
pred@2768
   190
			}
pred@2768
   191
		}
pred@2768
   192
	}
pred@2768
   193
	
pred@2768
   194
	/* EntityFactoryDictionary function */
pred@2768
   195
	"#default"
pred@2768
   196
	{
pred@2768
   197
		"Signatures"
pred@2768
   198
		{
pred@2768
   199
			"EntityFactory"
pred@2768
   200
			{
pred@2768
   201
				"library"	"server"
pred@2768
   202
				"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
   203
				"linux"		"@_Z23EntityFactoryDictionaryv"
pred@2768
   204
			}
pred@2768
   205
		}
pred@2768
   206
	}
pred@2768
   207
pred@2768
   208
	/* CBaseEntityOutput::FireOutput */
pred@2768
   209
	"#default"
pred@2768
   210
	{
pred@2768
   211
		"#supported"
pred@2768
   212
		{
pred@2768
   213
			"game"		"dod"
pred@2768
   214
			"game"		"tf"
skamonkey@2985
   215
			"game"		"cstrike"
skamonkey@2985
   216
			"game"		"cstrike_beta"
pred@2768
   217
		}
pred@2768
   218
		"Signatures"
pred@2768
   219
		{
pred@2768
   220
			"FireOutput"
pred@2768
   221
			{
pred@2768
   222
				"library"	"server"
pred@2768
   223
				"windows"	"\x81\xEC\x1C\x01\x00\x00\x53\x55\x56\x8B\x71\x14\x85\xF6"
pred@2768
   224
				"linux"		"@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
pred@2768
   225
			}
pred@2768
   226
		}
pred@2768
   227
		"Offsets"
pred@2768
   228
		{
pred@2768
   229
			"FireOutputBackup"
pred@2768
   230
			{
pred@2768
   231
				"windows"	"6"
ds@2972
   232
				"linux"		"12"
pred@2768
   233
			}
pred@2768
   234
		}
pred@2768
   235
	}
pred@2768
   236
	
pred@2768
   237
	/* SetUserInfo data */
pred@2768
   238
	"#default"
pred@2768
   239
	{
pred@2768
   240
		"Offsets"
pred@2768
   241
		{
pred@2768
   242
			/**
pred@2768
   243
			 * CBaseClient::SetUserCVar(char  const*,char  const*);
pred@2768
   244
			 * Linux offset straight from VTable dump.
pred@2768
   245
			 * Windows offset is crazy. Found the windows SetName function using string "(%d)%-0.*s"
pred@2768
   246
			 * Cross referenced back to the vtable and counted manually (SetUserCvar is 1 higher, offsets start from 1)
pred@2768
   247
			 */
pred@2768
   248
			"SetUserCvar"
pred@2768
   249
			{
pred@2768
   250
				"windows"	"17"
skamonkey@2968
   251
				"linux"		"56"
pred@2768
   252
			}
pred@2768
   253
			/**
pred@2768
   254
			 * Offset into CBaseClient - Used by CBaseServer::UpdateUserSettings to determine when changes have been made.
pred@2768
   255
			 * Find CBaseClient::UpdateUserSettings (strings "net_maxroutable", "cl_updaterate" etc) and the offset is set to 0 near the end.
pred@2768
   256
			 * Linux: 	mov     byte ptr [esi+98h], 0
pred@2768
   257
			 * Win:	mov     byte ptr [esi+0A4h], 0
pred@2768
   258
			 */
pred@2768
   259
			"InfoChanged"
pred@2768
   260
			{
pred@2768
   261
				"windows"	"140"
pred@2768
   262
				"linux"		"140"
pred@2768
   263
			}
pred@2768
   264
		}
pred@2768
   265
	}
pred@2768
   266
}