gamedata/sdktools.games/engine.l4d2.txt
author Nicholas Hastings <skamonkey@gmail.com>
Wed Aug 14 14:20:57 2013 -0400 (2013-08-14)
changeset 4008 490b01aa0683
parent 3936 47835546d849
child 4323 142b0c03e6bb
permissions -rw-r--r--
Updated some CS:GO 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 GameRules */
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 CreateGameRulesObject */
pred@2848
    37
			"g_pGameRules"
pred@2848
    38
			{
pred@2848
    39
				"windows"	"2"
pred@2848
    40
			}
pred@2848
    41
		}
pred@2848
    42
		
pred@2848
    43
		"Signatures"
pred@2848
    44
		{
pred@2848
    45
			/* This signature sometimes has multiple matches, but this
pred@2848
    46
			 * does not matter as g_pGameRules is involved in all of them.
pred@2848
    47
			 * The same g_pGameRules offset applies to each match.
pred@2848
    48
			 *
pred@2848
    49
			 * Sometimes this block of bytes is at the beginning of the static
pred@2848
    50
			 * CreateGameRulesObject function and sometimes it is in the middle
pred@2848
    51
			 * of an entirely different function. This depends on the game.
pred@2848
    52
			 */
pred@2848
    53
			"CreateGameRulesObject"
pred@2848
    54
			{
pred@2848
    55
				"library"	"server"
pred@2848
    56
				"windows"	"\x8B\x0D\x2A\x2A\x2A\x2A\x85\xC9\x74\x2A\x8B\x01\x8B\x50\x2A\x6A\x01\xFF\xD2"
pred@2848
    57
			}
pred@2848
    58
			"g_pGameRules"
pred@2848
    59
			{
pred@2848
    60
				"library"	"server"
pred@2848
    61
				"linux"		"@g_pGameRules"
ds@3138
    62
				"mac"		"@g_pGameRules"
pred@2848
    63
			}
pred@2848
    64
		}
pred@2848
    65
	}
pred@2848
    66
	
pred@2848
    67
	/* EntityFactoryDictionary function */
pred@2848
    68
	"#default"
pred@2848
    69
	{
pred@2848
    70
		"Signatures"
pred@2848
    71
		{
pred@2848
    72
			"EntityFactory"
pred@2848
    73
			{
pred@2848
    74
				"library"	"server"
pred@2848
    75
				"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
    76
				"linux"		"@_Z23EntityFactoryDictionaryv"
ds@3138
    77
				"mac"		"@_Z23EntityFactoryDictionaryv"
pred@2848
    78
			}
pred@2848
    79
		}
pred@2848
    80
	}
pred@2848
    81
	
pred@2848
    82
	/* SetUserInfo data */
pred@2848
    83
	"#default"
pred@2848
    84
	{
pred@2848
    85
		"Offsets"
pred@2848
    86
		{
pred@2848
    87
			/**
pred@2848
    88
			 * CBaseClient::SetUserCVar(char  const*,char  const*);
pred@2848
    89
			 * Linux offset straight from VTable dump.
pred@2848
    90
			 * Windows offset is crazy. Found the windows SetName function using string "(%d)%-.*s" (aD_S in IDA)
pred@2848
    91
			 * Cross referenced back to the vtable and counted manually (SetUserCvar is 1 higher, offsets start from 1)
pred@2848
    92
			 */
pred@2848
    93
			"SetUserCvar"
pred@2848
    94
			{
pred@2848
    95
				/* Not 100% sure on this, why would windows change and not linux - TEST ME */
skamonkey@2933
    96
				"windows"	"17"
pred@2848
    97
				"linux"		"63"
ds@3138
    98
				"mac"		"63"
pred@2848
    99
			}
pred@2848
   100
			/**
pred@2848
   101
			 * Offset into CBaseClient - Used by CBaseServer::UpdateUserSettings to determine when changes have been made.
pred@2848
   102
			 * Find CBaseClient::UpdateUserSettings (strings "net_maxroutable", "cl_updaterate" etc) and the offset is set to 0 near the end.
pred@2848
   103
			 * Linux: 	mov     byte ptr [esi+0B0h], 0
pred@2848
   104
			 * Win:		mov     byte ptr [esi+0B0h], 0
pred@2848
   105
			 *
pred@2848
   106
			 * L4D2: This has been moved into CBaseClient::UpdateUserSettings(), rest of the details are still relevant.
pred@2848
   107
			 */
pred@2848
   108
			"InfoChanged"
pred@2848
   109
			{
pred@2848
   110
				"windows"	"176"
pred@2848
   111
				"linux"		"176"
ds@3138
   112
				"mac"		"176"
pred@2848
   113
			}
pred@2848
   114
		}
pred@2848
   115
	}
pred@2848
   116
}