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