gamedata/sdktools.games/engine.l4d2.txt
author Nicholas Hastings <skamonkey@gmail.com>
Wed May 25 08:27:27 2011 -0400 (2011-05-25)
changeset 3280 7aea1316eff7
parent 3138 b7625c10af59
child 3333 e247490894a1
permissions -rw-r--r--
Switched to using IServerTools in SDKTools where possible. (bug 4899, r=fyren).
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"
pred@2848
    31
		}
pred@2848
    32
pred@2848
    33
		"Offsets"
pred@2848
    34
		{
pred@2848
    35
			/* Offset into CBaseTempEntity constructor */
pred@2848
    36
			"s_pTempEntities"
pred@2848
    37
			{
pred@2848
    38
				"windows"	"17"
pred@2848
    39
			}
pred@2848
    40
			"GetTEName"
pred@2848
    41
			{
pred@2848
    42
				"windows"	"4"
pred@2848
    43
				"linux"		"4"
ds@3138
    44
				"mac"		"4"
pred@2848
    45
			}
pred@2848
    46
			"GetTENext"
pred@2848
    47
			{
pred@2848
    48
				"windows"	"8"
pred@2848
    49
				"linux"		"8"
ds@3138
    50
				"mac"		"8"
pred@2848
    51
			}
pred@2848
    52
			"TE_GetServerClass"
pred@2848
    53
			{
pred@2848
    54
				"windows"	"0"
pred@2848
    55
				"linux"		"0"
ds@3138
    56
				"mac"		"0"
pred@2848
    57
			}
pred@2848
    58
		}
pred@2848
    59
pred@2848
    60
		"Signatures"
pred@2848
    61
		{
pred@2848
    62
			"CBaseTempEntity"
pred@2848
    63
			{
pred@2848
    64
				"library"	"server"
pred@2848
    65
				"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
    66
			}
pred@2848
    67
			"s_pTempEntities"
pred@2848
    68
			{
pred@2848
    69
				"library"	"server"
pred@2848
    70
				"linux"		"@_ZN15CBaseTempEntity15s_pTempEntitiesE"
ds@3138
    71
				"mac"		"@_ZN15CBaseTempEntity15s_pTempEntitiesE"
pred@2848
    72
			}
pred@2848
    73
		}
pred@2848
    74
	}
pred@2848
    75
pred@2848
    76
	/* General GameRules */
pred@2848
    77
	"#default"
pred@2848
    78
	{
pred@2848
    79
		"#supported"
pred@2848
    80
		{
pred@2848
    81
			"game"		"left4dead2"
pred@2848
    82
		}
pred@2848
    83
		
pred@2848
    84
		"Offsets"
pred@2848
    85
		{
pred@2848
    86
			/* Offset into CreateGameRulesObject */
pred@2848
    87
			"g_pGameRules"
pred@2848
    88
			{
pred@2848
    89
				"windows"	"2"
pred@2848
    90
			}
pred@2848
    91
		}
pred@2848
    92
		
pred@2848
    93
		"Signatures"
pred@2848
    94
		{
pred@2848
    95
			/* This signature sometimes has multiple matches, but this
pred@2848
    96
			 * does not matter as g_pGameRules is involved in all of them.
pred@2848
    97
			 * The same g_pGameRules offset applies to each match.
pred@2848
    98
			 *
pred@2848
    99
			 * Sometimes this block of bytes is at the beginning of the static
pred@2848
   100
			 * CreateGameRulesObject function and sometimes it is in the middle
pred@2848
   101
			 * of an entirely different function. This depends on the game.
pred@2848
   102
			 */
pred@2848
   103
			"CreateGameRulesObject"
pred@2848
   104
			{
pred@2848
   105
				"library"	"server"
pred@2848
   106
				"windows"	"\x8B\x0D\x2A\x2A\x2A\x2A\x85\xC9\x74\x2A\x8B\x01\x8B\x50\x2A\x6A\x01\xFF\xD2"
pred@2848
   107
			}
pred@2848
   108
			"g_pGameRules"
pred@2848
   109
			{
pred@2848
   110
				"library"	"server"
pred@2848
   111
				"linux"		"@g_pGameRules"
ds@3138
   112
				"mac"		"@g_pGameRules"
pred@2848
   113
			}
pred@2848
   114
		}
pred@2848
   115
	}
pred@2848
   116
pred@2848
   117
	/* IServer interface pointer */
pred@2848
   118
	"#default"
pred@2848
   119
	{
pred@2848
   120
		"Keys"
pred@2848
   121
		{
pred@2848
   122
			/* Signature for the beginning of IVEngineServer::CreateFakeClient.
pred@2848
   123
			 *
pred@2848
   124
			 * The engine binary is not actually scanned in order to look for
pred@2848
   125
			 * this. SourceHook is used to used to determine the address of the
pred@2848
   126
			 * function and this signature is used to verify that it contains
pred@2848
   127
			 * the expected code. A pointer to sv (IServer interface) is used
pred@2848
   128
			 * here.
pred@2848
   129
			 */
pred@2848
   130
			"CreateFakeClient_Windows"	"\x8B\x44\x24\x2A\x50\xB9\x2A\x2A\x2A\x2A\xE8"
pred@2848
   131
		}
pred@2848
   132
		
pred@2848
   133
		"Offsets"
pred@2848
   134
		{
pred@2848
   135
			/* Offset into IVEngineServer::CreateFakeClient */
pred@2848
   136
			"sv"
pred@2848
   137
			{
pred@2848
   138
				"windows"	"6"
pred@2848
   139
			}
pred@2848
   140
		}
pred@2848
   141
pred@2848
   142
		"Signatures"
pred@2848
   143
		{
pred@2848
   144
			/* CBaseServer object for IServer interface */
pred@2848
   145
			"sv"
pred@2848
   146
			{
pred@2848
   147
				"library"	"engine"
pred@2848
   148
				"linux"		"@sv"
ds@3138
   149
				"mac"		"@sv"
pred@2848
   150
			}
pred@2848
   151
		}
pred@2848
   152
	}
pred@2848
   153
	
pred@2848
   154
	/* EntityFactoryDictionary function */
pred@2848
   155
	"#default"
pred@2848
   156
	{
pred@2848
   157
		"Signatures"
pred@2848
   158
		{
pred@2848
   159
			"EntityFactory"
pred@2848
   160
			{
pred@2848
   161
				"library"	"server"
pred@2848
   162
				"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
   163
				"linux"		"@_Z23EntityFactoryDictionaryv"
ds@3138
   164
				"mac"		"@_Z23EntityFactoryDictionaryv"
pred@2848
   165
			}
pred@2848
   166
		}
pred@2848
   167
	}
pred@2848
   168
pred@2848
   169
	/* CBaseEntityOutput::FireOutput */
pred@2848
   170
	"#default"
pred@2848
   171
	{
pred@2848
   172
		"#supported"
pred@2848
   173
		{
pred@2848
   174
			"game"		"left4dead2"
pred@2848
   175
		}
pred@2848
   176
		"Signatures"
pred@2848
   177
		{
pred@2848
   178
			"FireOutput"
pred@2848
   179
			{
pred@2848
   180
				"library"	"server"
pred@2848
   181
				"windows"	"\x81\xEC\x1C\x01\x00\x00\x53\x55\x56\x8B\x71\x14\x85\xF6"
pred@2848
   182
				"linux"		"@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
ds@3138
   183
				"mac"		"@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
pred@2848
   184
			}
pred@2848
   185
		}
pred@2848
   186
	}
pred@2848
   187
	
pred@2848
   188
	/* SetUserInfo data */
pred@2848
   189
	"#default"
pred@2848
   190
	{
pred@2848
   191
		"Offsets"
pred@2848
   192
		{
pred@2848
   193
			/**
pred@2848
   194
			 * CBaseClient::SetUserCVar(char  const*,char  const*);
pred@2848
   195
			 * Linux offset straight from VTable dump.
pred@2848
   196
			 * Windows offset is crazy. Found the windows SetName function using string "(%d)%-.*s" (aD_S in IDA)
pred@2848
   197
			 * Cross referenced back to the vtable and counted manually (SetUserCvar is 1 higher, offsets start from 1)
pred@2848
   198
			 */
pred@2848
   199
			"SetUserCvar"
pred@2848
   200
			{
pred@2848
   201
				/* Not 100% sure on this, why would windows change and not linux - TEST ME */
skamonkey@2933
   202
				"windows"	"17"
pred@2848
   203
				"linux"		"63"
ds@3138
   204
				"mac"		"63"
pred@2848
   205
			}
pred@2848
   206
			/**
pred@2848
   207
			 * Offset into CBaseClient - Used by CBaseServer::UpdateUserSettings to determine when changes have been made.
pred@2848
   208
			 * Find CBaseClient::UpdateUserSettings (strings "net_maxroutable", "cl_updaterate" etc) and the offset is set to 0 near the end.
pred@2848
   209
			 * Linux: 	mov     byte ptr [esi+0B0h], 0
pred@2848
   210
			 * Win:		mov     byte ptr [esi+0B0h], 0
pred@2848
   211
			 *
pred@2848
   212
			 * L4D2: This has been moved into CBaseClient::UpdateUserSettings(), rest of the details are still relevant.
pred@2848
   213
			 */
pred@2848
   214
			"InfoChanged"
pred@2848
   215
			{
pred@2848
   216
				"windows"	"176"
pred@2848
   217
				"linux"		"176"
ds@3138
   218
				"mac"		"176"
pred@2848
   219
			}
pred@2848
   220
		}
pred@2848
   221
	}
pred@2848
   222
	
pred@2848
   223
	/* Left 4 Dead */
pred@2850
   224
	"left4dead2"
pred@2848
   225
	{
pred@2848
   226
		"Offsets"
pred@2848
   227
		{
pred@2848
   228
			"GiveNamedItem"
pred@2848
   229
			{
skamonkey@2952
   230
				"windows"	"506"
skamonkey@2952
   231
				"linux"		"507"
ds@3138
   232
				"mac"		"507"
pred@2848
   233
			}
pred@2848
   234
			"RemovePlayerItem"
pred@2848
   235
			{
pred@2848
   236
				"windows"	"288"
pred@2848
   237
				"linux"		"289"
ds@3138
   238
				"mac"		"289"
pred@2848
   239
			}
pred@2848
   240
			"Weapon_GetSlot"
pred@2848
   241
			{
pred@2848
   242
				"windows"	"286"
pred@2848
   243
				"linux"		"287"
ds@3138
   244
				"mac"		"287"
pred@2848
   245
			}
pred@2848
   246
			"Ignite"
pred@2848
   247
			{
pred@2848
   248
				"windows"	"221"
pred@2848
   249
				"linux"		"222"
ds@3138
   250
				"mac"		"222"
pred@2848
   251
			}
pred@2848
   252
			"Extinguish"
pred@2848
   253
			{
pred@2848
   254
				"windows"	"224"
pred@2848
   255
				"linux"		"225"
ds@3138
   256
				"mac"		"225"
pred@2848
   257
			}
pred@2848
   258
			"Teleport"
pred@2848
   259
			{
pred@2848
   260
				"windows"	"117"
pred@2848
   261
				"linux"		"118"
ds@3138
   262
				"mac"		"118"
pred@2848
   263
			}
pred@2848
   264
			"CommitSuicide"
pred@2848
   265
			{
skamonkey@2952
   266
				"windows"	"474"
skamonkey@2952
   267
				"linux"		"474"
ds@3138
   268
				"mac"		"474"
pred@2848
   269
			}
pred@2848
   270
			"GetVelocity"
pred@2848
   271
			{
pred@2848
   272
				"windows"	"149"
pred@2848
   273
				"linux"		"150"
ds@3138
   274
				"mac"		"150"
pred@2848
   275
			}
pred@2848
   276
			"EyeAngles"
pred@2848
   277
			{
pred@2848
   278
				"windows"	"140"
pred@2848
   279
				"linux"		"141"
ds@3138
   280
				"mac"		"141"
pred@2848
   281
			}
pred@2848
   282
			"AcceptInput"
pred@2848
   283
			{
pred@2848
   284
				"windows"	"43"
pred@2848
   285
				"linux"		"44"
ds@3138
   286
				"mac"		"44"
pred@2848
   287
			}
pred@2848
   288
			"SetEntityModel"
pred@2848
   289
			{
pred@2848
   290
				"windows"	"26"
pred@2848
   291
				"linux"		"27"
ds@3138
   292
				"mac"		"27"
pred@2848
   293
			}
pred@2848
   294
			"WeaponEquip"
pred@2848
   295
			{
pred@2848
   296
				"windows"	"279"
pred@2848
   297
				"linux"		"280"
ds@3138
   298
				"mac"		"280"
pred@2848
   299
			}
pred@2848
   300
			"Activate"
pred@2848
   301
			{
pred@2848
   302
				"windows"	"35"
pred@2848
   303
				"linux"		"36"
ds@3138
   304
				"mac"		"36"
pred@2848
   305
			}
pred@2848
   306
			"PlayerRunCmd"
pred@2848
   307
			{
skamonkey@2952
   308
				"windows"	"452"
skamonkey@2952
   309
				"linux"		"453"
ds@3138
   310
				"mac"		"453"
pred@2848
   311
			}
pred@2848
   312
		}
pred@2848
   313
	}
pred@2848
   314
}