gamedata/cssdm.games.txt
author Scott Ehlert <ds@alliedmods.net>
Sat Jun 30 03:16:25 2012 -0500 (2012-06-30)
changeset 88 4591e2a3ea51
parent 78 84caf7a01d19
child 91 d8536de2e9ad
permissions -rw-r--r--
Updated mac offsets.
     1 /* Do not edit this file unless you know what you are doing! */
     2 /* TakeDmgPatch2 is not needed. Mac has not been tested. - Dr!fter */
     3 "Games"
     4 {
     5 	"cstrike"
     6 	{
     7 		/* FFA patch bytes */
     8 		"Keys"
     9 		{
    10 			"LagCompPatch_Windows"		"\xEB"
    11 			"LagCompPatch_Linux"		"\x90\x90\x90\x90\x90\x90"
    12 			"LagCompPatch_Mac"		"\x90\x90\x90\x90\x90\x90"
    13 			
    14 			"TakeDmgPatch1_Windows"		"\xEB"
    15 			"TakeDmgPatch1_Linux"		"\x90\x90\x90\x90\x90\x90"
    16 			"TakeDmgPatch1_Mac"		"\x90\x90\x90\x90\x90\x90"
    17 			
    18 			"TakeDmgPatch2_Windows"		"\xEB" //"\x90\xE9"
    19 			"TakeDmgPatch2_Linux"		"\x90\x90\x90\x90\x90\x90"
    20 			"TakeDmgPatch2_Mac"		"\x90\x90\x90\x90\x90\x90"
    21 			
    22 			"CalcDomRevPatch_Windows"	"\x90\x90\x90\x90\x90\x90"
    23 			"CalcDomRevPatch_Linux"		"\x90\x90"
    24 			"CalcDomRevPatch_Mac"		"\x90\x90\x90\x90\x90\x90"
    25 		}
    26 		"Offsets"
    27 		{
    28 			/* Patch offsets for FFA */
    29 			"LagCompPatch"
    30 			{
    31 				"windows"		"41"
    32 				"linux"			"47"
    33 				"mac"			"32"
    34 			}
    35 			"TakeDmgPatch1"
    36 			{
    37 				"windows"		"906"
    38 				"linux"			"428"
    39 				"mac"			"746"
    40 			}
    41 			"TakeDmgPatch2"
    42 			{
    43 				"windows"		"906"
    44 				"linux"			"428"
    45 				"mac"			"746"
    46 			}
    47 			/* Offset into gamerules constructor - bogo value linux/mac */
    48 			"g_pGameRules"
    49 			{
    50 				"windows"		"32"
    51 				"linux"			"1"
    52 				"mac"			"1"
    53 			}
    54 			/* Virtual indexes */
    55 			"IPointsForKill"
    56 			{
    57 				"windows"		"78"
    58 				"linux"			"79"
    59 				"mac"			"79"
    60 			}
    61 			"Weapon_GetSlot"
    62 			{
    63 				"windows"		"261"
    64 				"linux"			"262"
    65 				"mac"			"262"
    66 			}
    67 			"RemoveAllItems"
    68 			{
    69 				"windows"		"335"
    70 				"linux"			"336"
    71 				"mac"			"336"
    72 			}
    73 			"GiveAmmo"
    74 			{
    75 				"windows"		"247"
    76 				"linux"			"248"
    77 				"mac"			"248"
    78 			}
    79 			/* Next _two_ are detour byte "save" counts */
    80 			"DropWeaponsPatch"
    81 			{
    82 				"windows"		"6"
    83 				"linux"			"6"
    84 				"mac"			"6"
    85 			}
    86 			"CSWeaponDropPatch"
    87 			{
    88 				"windows"		"9"
    89 				"linux"			"6"
    90 				"mac"			"6"
    91 			}
    92 			"CalcDomRevPatch"
    93 			{
    94 				"windows"		"65"
    95 				"linux"			"112"
    96 				"mac"			"86"
    97 			}
    98 		}
    99 		"Signatures"
   100 		{
   101 			"UTIL_Remove"
   102 			{
   103 				"library"		"server"
   104 				"windows"		"\x55\x8B\xEC\x8B\x2A\x2A\x85\xC0\x74\x2A\x83\x2A\x2A\x50"
   105 				"linux"			"@_Z11UTIL_RemoveP11CBaseEntity"
   106 				"mac"			"@_Z11UTIL_RemoveP11CBaseEntity"
   107 			}
   108 			"RoundRespawn"
   109 			{
   110 				"library"	"server"
   111 				"windows"	"\x55\x8B\xEC\x51\x89\x2A\x2A\x8B\x2A\x2A\x8B\x10\x8B"
   112 				"linux"		"@_ZN9CCSPlayer12RoundRespawnEv"
   113 				"mac"		"@_ZN9CCSPlayer12RoundRespawnEv"
   114 			}
   115 			"OnTakeDamage"
   116 			{
   117 				"library"		"server"
   118 				"windows"		"\x55\x8B\xEC\x81\xEC\x2A\x2A\x2A\x2A\x56\x89\x8D\x2A\x2A\x2A\x2A\x8B\x45\x2A\x50\x8D"
   119 				"linux"			"@_ZN9CCSPlayer12OnTakeDamageERK15CTakeDamageInfo"
   120 				"mac"			"@_ZN9CCSPlayer12OnTakeDamageERK15CTakeDamageInfo"
   121 			}
   122 			"WantsLagComp"
   123 			{
   124 				"library"		"server"
   125 				"windows"		"\x53\x8B\xDC\x83\xEC\x2A\x83\xE4\x2A\x83\xC4\x2A\x55\x8B\x2A\x2A\x89\x2A\x2A\x2A\x8B\xEC\xA1\x2A\x2A\x2A\x2A\x83\xEC\x2A\x83\x2A\x2A\x00\x56\x8B\x2A\x2A\x57"
   126 				"linux"			"@_ZNK11CBasePlayer28WantsLagCompensationOnEntityEPKS_PK8CUserCmdPK7CBitVecILi2048EE"
   127 				"mac"			"@_ZNK11CBasePlayer28WantsLagCompensationOnEntityEPKS_PK8CUserCmdPK7CBitVecILi2048EE"
   128 			}
   129 			"CGameRules"
   130 			{
   131 				"library"		"server"
   132 				"windows"		"\x56\x68\x2A\x2A\x2A\x2A\x8B\xF1\xE8\x2A\x2A\x2A\x2A\xC7\x2A\x2A\x2A\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x8B\x2A\x2A\x2A\x2A\x2A\x89\x2A\x2A\x2A\x2A\x2A\x8B\x48"
   133 				"linux"			"@g_pGameRules"
   134 				"mac"			"@g_pGameRules"
   135 			}
   136 			"CSWeaponDrop"
   137 			{
   138 				"library"		"server"
   139 				"windows"		"\x55\x8B\xEC\x81\xEC\x2A\x2A\x2A\x2A\x89\x8D\x2A\x2A\x2A\x2A\xC6\x2A\x2A\x00\x8B\x8D\x2A\x2A\x2A\x2A\xE8"
   140 				"linux"			"@_ZN9CCSPlayer12CSWeaponDropEP17CBaseCombatWeaponbb"
   141 				"mac"			"@_ZN9CCSPlayer12CSWeaponDropEP17CBaseCombatWeaponbb"
   142 			}
   143 			"DropWeapons"
   144 			{
   145 				"library"		"server"
   146 				"windows"		"\x55\x8B\xEC\x83\xEC\x2A\x89\x4D\x2A\xC7\x45\x2A\x00\x00\x00\x00\xEB\x2A\x8B\x45\x2A\x83\xC0\x01\x89\x45\x2A\x83"
   147 				"linux"			"@_ZN9CCSPlayer11DropWeaponsEbb"
   148 				"mac"			"@_ZN9CCSPlayer11DropWeaponsEbb"
   149 			}
   150 			"CalcDominationAndRevenge"
   151 			{
   152 				"library"		"server"
   153 				"windows"		"\x55\x8B\xEC\x51\xA1\x2A\x2A\x2A\x2A\x83\x2A\x2A\x00\x89\x2A\x2A\x0F\x85\x2A\x2A\x00\x00\x57"
   154 				"linux"			"@_ZN12CCSGameStats24CalcDominationAndRevengeEP9CCSPlayerS1_Pi"
   155 				"mac"			"@_ZN12CCSGameStats24CalcDominationAndRevengeEP9CCSPlayerS1_Pi"
   156 			}
   157 		}
   158 	}
   159 }