Fixed cvars, updated gamedata.
Fixed cvars, updated gamedata.
1.1 --- a/cssdm_main.cpp Fri Jun 25 00:33:30 2010 -0700
1.2 +++ b/cssdm_main.cpp Fri Jun 25 03:01:12 2010 -0700
1.3 @@ -91,6 +91,7 @@
1.4
1.5 void *addr;
1.6 int offset;
1.7 + VERIFY_OFFSET("CSWeaponDropPatch");
1.8 VERIFY_SIGNATURE("UTIL_Remove");
1.9 VERIFY_SIGNATURE("RoundRespawn");
1.10 VERIFY_SIGNATURE("CSWeaponDrop");
1.11 @@ -98,7 +99,6 @@
1.12 VERIFY_OFFSET("Weapon_GetSlot");
1.13 VERIFY_OFFSET("RemoveAllItems");
1.14 VERIFY_OFFSET("DropWeaponsPatch");
1.15 - VERIFY_OFFSET("CSWeaponDropPatch");
1.16 VERIFY_OFFSET("GiveAmmo");
1.17
1.18 if (!DM_ParseWeapons(error, maxlength))
1.19 @@ -123,6 +123,7 @@
1.20 GET_V_IFACE_ANY(GetServerFactory, gameents,IServerGameEnts, INTERFACEVERSION_SERVERGAMEENTS);
1.21 GET_V_IFACE_ANY(GetServerFactory, botmanager, IBotManager, INTERFACEVERSION_PLAYERBOTMANAGER);
1.22 GET_V_IFACE_ANY(GetServerFactory, gameclients, IServerGameClients, INTERFACEVERSION_SERVERGAMECLIENTS);
1.23 + GET_V_IFACE_CURRENT(GetEngineFactory, icvar, ICvar, CVAR_INTERFACE_VERSION);
1.24
1.25 return true;
1.26 }
2.1 --- a/gamedata/cssdm.games.txt Fri Jun 25 00:33:30 2010 -0700
2.2 +++ b/gamedata/cssdm.games.txt Fri Jun 25 03:01:12 2010 -0700
2.3 @@ -6,12 +6,21 @@
2.4 /* FFA patch bytes */
2.5 "Keys"
2.6 {
2.7 - "LagCompPatch_Windows" "\x90\x90\x90\x90\x90\x90"
2.8 + "LagCompPatch_Windows" "\x90\x90"
2.9 "LagCompPatch_Linux" "\x90\x90\x90\x90\x90\x90"
2.10 + "LagCompPatch_Mac" "\x90\x90\x90\x90\x90\x90"
2.11 +
2.12 "TakeDmgPatch1_Windows" "\xEB"
2.13 "TakeDmgPatch1_Linux" "\x90\x90\x90\x90\x90\x90"
2.14 + "TakeDmgPatch1_Mac" "\x90\x90\x90\x90\x90\x90"
2.15 +
2.16 "TakeDmgPatch2_Windows" "\x90\xE9"
2.17 "TakeDmgPatch2_Linux" "\x90\x90\x90\x90\x90\x90"
2.18 + "TakeDmgPatch2_Mac" "\x90\x90\x90\x90\x90\x90"
2.19 +
2.20 + "CalcDomRevPatch_Windows" "\x90\x90\x90\x90\x90\x90"
2.21 + "CalcDomRevPatch_Linux" "\x90\x90\x90\x90\x90\x90"
2.22 + "CalcDomRevPatch_Mac" "\x90\x90\x90\x90\x90\x90"
2.23 }
2.24 "Offsets"
2.25 {
2.26 @@ -19,55 +28,69 @@
2.27 "LagCompPatch"
2.28 {
2.29 "windows" "41"
2.30 - "linux" "62"
2.31 + "linux" "40"
2.32 + "mac" "31"
2.33 }
2.34 "TakeDmgPatch1"
2.35 {
2.36 - "windows" "513"
2.37 - "linux" "1547"
2.38 + "windows" "752"
2.39 + "linux" "1905"
2.40 + "mac" "2067"
2.41 }
2.42 "TakeDmgPatch2"
2.43 {
2.44 - "windows" "161"
2.45 - "linux" "366"
2.46 + "windows" "391"
2.47 + "linux" "683"
2.48 + "mac" "730"
2.49 }
2.50 /* Offset into gamerules constructor */
2.51 "g_pGameRules"
2.52 {
2.53 - "linux" "40"
2.54 "windows" "32"
2.55 + "linux" "54"
2.56 + "mac" "57"
2.57 }
2.58 /* Virtual indexes */
2.59 "IPointsForKill"
2.60 {
2.61 - "windows" "63"
2.62 - "linux" "64"
2.63 + "windows" "77"
2.64 + "linux" "78"
2.65 + "mac" "78"
2.66 }
2.67 "Weapon_GetSlot"
2.68 {
2.69 - "windows" "224"
2.70 - "linux" "225"
2.71 + "windows" "257"
2.72 + "linux" "258"
2.73 + "mac" "258"
2.74 }
2.75 "RemoveAllItems"
2.76 {
2.77 - "windows" "283"
2.78 - "linux" "284"
2.79 + "windows" "330"
2.80 + "linux" "331"
2.81 + "mac" "331"
2.82 }
2.83 "GiveAmmo"
2.84 {
2.85 - "windows" "213"
2.86 - "linux" "214"
2.87 + "windows" "244"
2.88 + "linux" "245"
2.89 + "mac" "245"
2.90 }
2.91 - /* The next two are detour byte "save" counts */
2.92 + /* Next _two_ are detour byte "save" counts */
2.93 "DropWeaponsPatch"
2.94 {
2.95 "windows" "7"
2.96 - "linux" "8"
2.97 + "linux" "6"
2.98 }
2.99 "CSWeaponDropPatch"
2.100 {
2.101 "windows" "6"
2.102 - "linux" "10"
2.103 + "linux" "6"
2.104 + }
2.105 + "CalcDomRevPatch"
2.106 + {
2.107 + "windows" "63"
2.108 + "linux" "95"
2.109 + "mac" "97"
2.110 }
2.111 }
2.112 "Signatures"
2.113 @@ -75,44 +98,58 @@
2.114 "UTIL_Remove"
2.115 {
2.116 "library" "server"
2.117 - "windows" "\x8B\x44\x24\x04\x85\xC0\x74\x2A\x05\x2A\x2A\x00\x00\x89\x44\x24\x04\xE9\x2A\xFF\xFF\xFF"
2.118 + "windows" "\x8B\x44\x24\x04\x85\xC0\x74\x0C\x83\xC0\x0C\x89\x44\x24\x04\xE9"
2.119 "linux" "@_Z11UTIL_RemoveP11CBaseEntity"
2.120 + "mac" "@_Z11UTIL_RemoveP11CBaseEntity"
2.121 }
2.122 "RoundRespawn"
2.123 {
2.124 - "library" "server"
2.125 - "windows" "\x56\x8B\xF1\x8B\x06\xFF\x90\x2A\x04\x00\x00\x8B\x86\x2A\x0D\x00"
2.126 - "linux" "@_ZN9CCSPlayer12RoundRespawnEv"
2.127 + "library" "server"
2.128 + "windows" "\x56\x8B\xF1\x8B\x06\x8B\x2A\x2A\x2A\x2A\x2A\xFF\xD2\x8B\x2A\x2A\x2A\x2A\x2A\x85"
2.129 + "linux" "@_ZN9CCSPlayer12RoundRespawnEv"
2.130 + "mac" "@_ZN9CCSPlayer12RoundRespawnEv"
2.131 }
2.132 "OnTakeDamage"
2.133 {
2.134 "library" "server"
2.135 - "windows" "\x8B\x44\x24\x04\x81\xEC\x84\x00\x00\x00\x53\x56\x8B\xF1\x50\x8D\x4C\x24\x28\xE8\x2A\x2A\x2A\x2A\x8B\x44\x24\x4C\x83\xF8\xFF\x0F"
2.136 + "windows" "\x81\xEC\x2A\x2A\x2A\x2A\x56\x57\x8B\x2A\x2A\x2A\x2A\x2A\x2A\x8B\xF1\x57\x8D\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x8B\x2A\x2A\x2A\x83\xF8\xFF\x74"
2.137 "linux" "@_ZN9CCSPlayer12OnTakeDamageERK15CTakeDamageInfo"
2.138 + "mac" "@_ZN9CCSPlayer12OnTakeDamageERK15CTakeDamageInfo"
2.139 }
2.140 "WantsLagComp"
2.141 {
2.142 "library" "server"
2.143 - "windows" "\xA1\x2A\x2A\x2A\x2A\x83\xEC\x24\x83\x78\x2C\x00\x53\x56\x8B\x74\x24\x30\x57\x8B\xF9\x75\x2A\x8B\xCE\xE8\x2A\x2A\x2A\x2A\x8B\xCF"
2.144 + "windows" "\xA1\x2A\x2A\x2A\x2A\x83\xEC\x2A\x83\x78\x2A\x2A\x53\x56\x8B\x74\x2A\x2A\x57\x8B\xF9\x75\x2A\x8B\xCE\xE8\x2A\x2A\x2A\x2A\x8B\xCF"
2.145 "linux" "@_ZNK11CBasePlayer28WantsLagCompensationOnEntityEPKS_PK8CUserCmdPK7CBitVecILi2048EE"
2.146 + "mac" "@_ZNK11CBasePlayer28WantsLagCompensationOnEntityEPKS_PK8CUserCmdPK7CBitVecILi2048EE"
2.147 }
2.148 "CGameRules"
2.149 {
2.150 "library" "server"
2.151 - "windows" "\x56\x68\x2A\x2A\x2A\x22\x8B\xF1\xE8\x2A\x2A\x2A\x2A\xC7\x06\x2A\x2A\x2A\x22\xA1\x2A\x2A\x2A\x22\x8B\x15\x2A\x2A\x2A\x22\x89\x2A"
2.152 - "linux" "@_ZN10CGameRulesC1Ev"
2.153 + "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"
2.154 + "linux" "@_ZN10CGameRulesC2Ev"
2.155 + "mac" "@_ZN10CGameRulesC2Ev"
2.156 }
2.157 "CSWeaponDrop"
2.158 {
2.159 "library" "server"
2.160 - "windows" "\x81\xEC\x2C\x01\x00\x00\x53\x55\x56\x57\x8B\xBC\x24\x40\x01\x00\x00\x32\xDB\x85\xFF\x8B\xF1\x0F"
2.161 + "windows" "\x81\xEC\x2A\x2A\x2A\x2A\x53\x55\x56\x57\x8B\x2A\x2A\x2A\x2A\x2A\x2A\x32\xDB\x85\xFF\x8B\xF1\x0F"
2.162 "linux" "@_ZN9CCSPlayer12CSWeaponDropEP17CBaseCombatWeaponbb"
2.163 + "mac" "@_ZN9CCSPlayer12CSWeaponDropEP17CBaseCombatWeaponbb"
2.164 }
2.165 "DropWeapons"
2.166 {
2.167 "library" "server"
2.168 - "windows" "\x83\xEC\x48\x56\x57\x6A\x00\x68\x2A\x2A\x2A\x22\x8B\xF1\xE8\x2A\x2A\x2A\x2A\x85\xC0\x74\x0C\x6A\x01\x6A\x00\x50\x8B\xCE\xE8\x2A"
2.169 - "linux" "@_ZN9CCSPlayer11DropWeaponsEv"
2.170 + "windows" "\x83\xEC\x2A\x53\x56\x8B\xF1\x83\xC8\x2A\x57\x89\x2A\x2A\x2A\x2A\x2A\x89\x2A\x2A\x2A\x2A\x2A\x6A\x00\x89\x2A\x2A\x2A\x2A\x2A\x68"
2.171 + "linux" "@_ZN9CCSPlayer11DropWeaponsEbb"
2.172 + "mac" "@_ZN9CCSPlayer11DropWeaponsEbb"
2.173 + }
2.174 + "CalcDominationAndRevenge"
2.175 + {
2.176 + "library" "server"
2.177 + "windows" "\xA1\x2A\x2A\x2A\x2A\x83\x2A\x2A\x00\x55\x8B\xE9\x0F\x2A\x2A\x2A\x2A\x2A\x57\x8B\x2A\x2A\x2A\x85\xFF\x0F\x2A\x2A\x2A\x2A\x2A\x53\x8B"
2.178 + "linux" "@_ZN12CCSGameStats24CalcDominationAndRevengeEP9CCSPlayerS1_Pi"
2.179 + "mac" "@_ZN12CCSGameStats24CalcDominationAndRevengeEP9CCSPlayerS1_Pi"
2.180 }
2.181 }
2.182 }