gamedata/sdktools.games/engine.swarm.txt
author Nicholas Hastings <skamonkey@gmail.com>
Wed May 25 13:31:14 2011 -0400 (2011-05-25)
changeset 3285 065beec73902
parent 3280 7aea1316eff7
child 3353 c73d0ba1110b
permissions -rw-r--r--
Backed out changeset: 65eb3df32b1c
skamonkey@3109
     1
/**
skamonkey@3109
     2
 * Do not edit this file.  Any changes will be overwritten by the gamedata
skamonkey@3109
     3
 * updater or by upgrading your SourceMod install.
skamonkey@3109
     4
 *
skamonkey@3109
     5
 * To override data in this file, create a subdirectory named "custom" and
skamonkey@3109
     6
 * place your own gamedata file(s) inside of it.  Such files will be parsed
skamonkey@3109
     7
 * after SM's own.
skamonkey@3109
     8
 *
skamonkey@3109
     9
 * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(SourceMod)
skamonkey@3109
    10
 */
skamonkey@3109
    11
skamonkey@3109
    12
"Games"
skamonkey@3109
    13
{
skamonkey@3109
    14
	/* General Temp Entities */
skamonkey@3109
    15
	"#default"
skamonkey@3109
    16
	{
skamonkey@3109
    17
		"#supported"
skamonkey@3109
    18
		{
skamonkey@3109
    19
			"game"		"swarm"
skamonkey@3232
    20
			"game"		"dinodday"
skamonkey@3109
    21
		}
skamonkey@3109
    22
skamonkey@3109
    23
		"Offsets"
skamonkey@3109
    24
		{
skamonkey@3109
    25
			/* Offset into CBaseTempEntity constructor */
skamonkey@3109
    26
			"s_pTempEntities"
skamonkey@3109
    27
			{
skamonkey@3109
    28
				"windows"	"17"
skamonkey@3109
    29
			}
skamonkey@3109
    30
			"GetTEName"
skamonkey@3109
    31
			{
skamonkey@3109
    32
				"windows"	"4"
skamonkey@3109
    33
			}
skamonkey@3109
    34
			"GetTENext"
skamonkey@3109
    35
			{
skamonkey@3109
    36
				"windows"	"8"
skamonkey@3109
    37
			}
skamonkey@3109
    38
			"TE_GetServerClass"
skamonkey@3109
    39
			{
skamonkey@3109
    40
				"windows"	"0"
skamonkey@3109
    41
			}
skamonkey@3109
    42
		}
skamonkey@3109
    43
skamonkey@3109
    44
		"Signatures"
skamonkey@3109
    45
		{
skamonkey@3109
    46
			"CBaseTempEntity"
skamonkey@3109
    47
			{
skamonkey@3109
    48
				"library"	"server"
skamonkey@3109
    49
				"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"
skamonkey@3109
    50
			}
skamonkey@3109
    51
		}
skamonkey@3109
    52
	}
skamonkey@3109
    53
skamonkey@3109
    54
	/* General GameRules */
skamonkey@3109
    55
	"#default"
skamonkey@3109
    56
	{
skamonkey@3109
    57
		"#supported"
skamonkey@3109
    58
		{
skamonkey@3109
    59
			"game"		"swarm"
skamonkey@3232
    60
			"game"		"dinodday"
skamonkey@3109
    61
		}
skamonkey@3109
    62
		
skamonkey@3109
    63
		"Offsets"
skamonkey@3109
    64
		{
skamonkey@3109
    65
			/* Offset into CreateGameRulesObject */
skamonkey@3109
    66
			"g_pGameRules"
skamonkey@3109
    67
			{
skamonkey@3109
    68
				"windows"	"2"
skamonkey@3109
    69
			}
skamonkey@3109
    70
		}
skamonkey@3109
    71
		
skamonkey@3109
    72
		"Signatures"
skamonkey@3109
    73
		{
skamonkey@3109
    74
			/* This signature sometimes has multiple matches, but this
skamonkey@3109
    75
			 * does not matter as g_pGameRules is involved in all of them.
skamonkey@3109
    76
			 * The same g_pGameRules offset applies to each match.
skamonkey@3109
    77
			 *
skamonkey@3109
    78
			 * Sometimes this block of bytes is at the beginning of the static
skamonkey@3109
    79
			 * CreateGameRulesObject function and sometimes it is in the middle
skamonkey@3109
    80
			 * of an entirely different function. This depends on the game.
skamonkey@3109
    81
			 */
skamonkey@3109
    82
			"CreateGameRulesObject"
skamonkey@3109
    83
			{
skamonkey@3109
    84
				"library"	"server"
skamonkey@3109
    85
				"windows"	"\x8B\x0D\x2A\x2A\x2A\x2A\x85\xC9\x74\x2A\x8B\x01\x8B\x50\x2A\x6A\x01\xFF\xD2"
skamonkey@3109
    86
			}
skamonkey@3109
    87
		}
skamonkey@3109
    88
	}
skamonkey@3109
    89
skamonkey@3109
    90
	/* IServer interface pointer */
skamonkey@3109
    91
	"#default"
skamonkey@3109
    92
	{
skamonkey@3109
    93
		"Keys"
skamonkey@3109
    94
		{
skamonkey@3109
    95
			/* Signature for the beginning of IVEngineServer::CreateFakeClient.
skamonkey@3109
    96
			 *
skamonkey@3109
    97
			 * The engine binary is not actually scanned in order to look for
skamonkey@3109
    98
			 * this. SourceHook is used to used to determine the address of the
skamonkey@3109
    99
			 * function and this signature is used to verify that it contains
skamonkey@3109
   100
			 * the expected code. A pointer to sv (IServer interface) is used
skamonkey@3109
   101
			 * here.
skamonkey@3109
   102
			 */
skamonkey@3109
   103
			"CreateFakeClient_Windows"	"\x8B\x44\x24\x2A\x50\xB9\x2A\x2A\x2A\x2A\xE8"
skamonkey@3109
   104
		}
skamonkey@3109
   105
		
skamonkey@3109
   106
		"Offsets"
skamonkey@3109
   107
		{
skamonkey@3109
   108
			/* Offset into IVEngineServer::CreateFakeClient */
skamonkey@3109
   109
			"sv"
skamonkey@3109
   110
			{
skamonkey@3109
   111
				"windows"	"6"
skamonkey@3109
   112
			}
skamonkey@3109
   113
		}
skamonkey@3109
   114
	}
skamonkey@3109
   115
	
skamonkey@3109
   116
	/* EntityFactoryDictionary function */
skamonkey@3109
   117
	"#default"
skamonkey@3109
   118
	{
skamonkey@3109
   119
		"Signatures"
skamonkey@3109
   120
		{
skamonkey@3109
   121
			"EntityFactory"
skamonkey@3109
   122
			{
skamonkey@3109
   123
				"library"	"server"
skamonkey@3109
   124
				"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"
skamonkey@3109
   125
			}
skamonkey@3109
   126
		}
skamonkey@3109
   127
	}
skamonkey@3109
   128
skamonkey@3109
   129
	/* CBaseEntityOutput::FireOutput */
skamonkey@3109
   130
	"#default"
skamonkey@3109
   131
	{
skamonkey@3109
   132
		"#supported"
skamonkey@3109
   133
		{
skamonkey@3109
   134
			"game"		"swarm"
skamonkey@3232
   135
			"game"		"dinodday"
skamonkey@3109
   136
		}
skamonkey@3109
   137
		"Signatures"
skamonkey@3109
   138
		{
skamonkey@3109
   139
			"FireOutput"
skamonkey@3109
   140
			{
skamonkey@3109
   141
				"library"	"server"
skamonkey@3109
   142
				"windows"	"\x81\xEC\x1C\x01\x00\x00\x53\x55\x56\x8B\x71\x14\x85\xF6"
skamonkey@3109
   143
			}
skamonkey@3109
   144
		}
skamonkey@3109
   145
	}
skamonkey@3109
   146
	
skamonkey@3109
   147
	/* SetUserInfo data */
skamonkey@3109
   148
	"#default"
skamonkey@3109
   149
	{
skamonkey@3109
   150
		"Offsets"
skamonkey@3109
   151
		{
skamonkey@3109
   152
			/**
skamonkey@3109
   153
			 * CBaseClient::SetUserCVar(char  const*,char  const*);
skamonkey@3109
   154
			 * Linux offset straight from VTable dump.
skamonkey@3109
   155
			 * Windows offset is crazy. Found the windows SetName function using string "(%d)%-.*s" (aD_S in IDA)
skamonkey@3109
   156
			 * Cross referenced back to the vtable and counted manually (SetUserCvar is 1 higher, offsets start from 1)
skamonkey@3109
   157
			 */
skamonkey@3109
   158
			"SetUserCvar"
skamonkey@3109
   159
			{
skamonkey@3109
   160
				/* Not 100% sure on this, why would windows change and not linux - TEST ME */
skamonkey@3109
   161
				"windows"	"17"
skamonkey@3109
   162
			}
skamonkey@3109
   163
			/**
skamonkey@3109
   164
			 * Offset into CBaseClient - Used by CBaseServer::UpdateUserSettings to determine when changes have been made.
skamonkey@3109
   165
			 * Find CBaseClient::UpdateUserSettings (strings "net_maxroutable", "cl_updaterate" etc) and the offset is set to 0 near the end.
skamonkey@3109
   166
			 * Linux: 	mov     byte ptr [esi+0B0h], 0
skamonkey@3109
   167
			 * Win:		mov     byte ptr [esi+0B0h], 0
skamonkey@3109
   168
			 *
skamonkey@3109
   169
			 * L4D2/Swarm: This has been moved into CBaseClient::UpdateUserSettings(), rest of the details are still relevant.
skamonkey@3109
   170
			 */
skamonkey@3109
   171
			"InfoChanged"
skamonkey@3109
   172
			{
skamonkey@3109
   173
				"windows"	"176"
skamonkey@3109
   174
			}
skamonkey@3109
   175
		}
skamonkey@3109
   176
	}
skamonkey@3109
   177
}