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