skamonkey@3515: /** skamonkey@3515: * Do not edit this file. Any changes will be overwritten by the gamedata skamonkey@3515: * updater or by upgrading your SourceMod install. skamonkey@3515: * skamonkey@3515: * To override data in this file, create a subdirectory named "custom" and skamonkey@3515: * place your own gamedata file(s) inside of it. Such files will be parsed skamonkey@3515: * after SM's own. skamonkey@3515: * skamonkey@3515: * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(SourceMod) skamonkey@3515: */ skamonkey@3515: skamonkey@3515: "Games" skamonkey@3515: { skamonkey@3515: /* Sounds */ skamonkey@3515: "#default" skamonkey@3515: { skamonkey@3515: "Keys" skamonkey@3515: { skamonkey@3515: "SlapSoundCount" "3" skamonkey@3515: "SlapSound1" "player/damage1.wav" skamonkey@3515: "SlapSound2" "player/damage2.wav" skamonkey@3515: "SlapSound2" "player/damage3.wav" skamonkey@3515: } skamonkey@3515: } skamonkey@3515: skamonkey@3515: /* General Temp Entities */ skamonkey@3515: "#default" skamonkey@3515: { skamonkey@3515: "Offsets" skamonkey@3515: { skamonkey@3515: /* Offset into CBaseTempEntity constructor */ skamonkey@3515: "s_pTempEntities" skamonkey@3515: { skamonkey@3515: "windows" "19" skamonkey@3515: } skamonkey@3515: "GetTEName" skamonkey@3515: { skamonkey@3515: "windows" "4" skamonkey@3515: "linux" "4" skamonkey@3515: "mac" "4" skamonkey@3515: } skamonkey@3515: "GetTENext" skamonkey@3515: { skamonkey@3515: "windows" "8" skamonkey@3515: "linux" "8" skamonkey@3515: "mac" "8" skamonkey@3515: } skamonkey@3515: "TE_GetServerClass" skamonkey@3515: { skamonkey@3515: "windows" "0" skamonkey@3515: "linux" "0" skamonkey@3515: "mac" "0" skamonkey@3515: } skamonkey@3515: } skamonkey@3515: skamonkey@3515: "Signatures" skamonkey@3515: { skamonkey@3515: "CBaseTempEntity" skamonkey@3515: { skamonkey@3515: "library" "server" skamonkey@3515: "windows" "\x55\x8B\xEC\x8B\xC1\x8B\x4D\x08\xC7\x00\x2A\x2A\x2A\x2A\x89\x48\x2A\x8B" skamonkey@3515: } skamonkey@3515: "s_pTempEntities" skamonkey@3515: { skamonkey@3515: "library" "server" skamonkey@3515: "linux" "@_ZN15CBaseTempEntity15s_pTempEntitiesE" skamonkey@3515: "mac" "@_ZN15CBaseTempEntity15s_pTempEntitiesE" skamonkey@3515: } skamonkey@3515: } skamonkey@3515: } skamonkey@3515: skamonkey@3515: /* CGlobalEntityList */ skamonkey@3515: "#default" skamonkey@3515: { skamonkey@3515: "Signatures" skamonkey@3515: { skamonkey@3515: /* Functions in CGlobalEntityList */ skamonkey@3515: "FindEntityByClassname" skamonkey@3515: { skamonkey@3515: "library" "server" skamonkey@3515: "windows" "\x55\x8B\xEC\x53\x56\x8B\xF1\x8B\x4D\x08\x57\x85\xC9\x74\x2A\x8B\x01\x8B\x50\x08\xFF\xD2\x8B\x00\x83\xF8\xFF\x75\x2A\xB8\xFF\x1F\x00\x00\x8D\x04\x40\x8B\x74\xC6\x2A\xEB" skamonkey@3515: "linux" "@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc" skamonkey@3515: "mac" "@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc" skamonkey@3515: } skamonkey@3515: } skamonkey@3515: } skamonkey@3515: skamonkey@3515: /* General GameRules */ skamonkey@3515: "#default" skamonkey@3515: { skamonkey@3549: "Keys" skamonkey@3549: { skamonkey@3549: "GameRulesProxy" "CCSGameRulesProxy" skamonkey@3549: } skamonkey@3549: skamonkey@3515: "Offsets" skamonkey@3515: { skamonkey@3515: /* Offset into CreateGameRulesObject */ skamonkey@3515: "g_pGameRules" skamonkey@3515: { skamonkey@3515: "windows" "2" skamonkey@3515: } skamonkey@3515: } skamonkey@3515: skamonkey@3515: "Signatures" skamonkey@3515: { skamonkey@3515: /* This signature sometimes has multiple matches, but this skamonkey@3515: * does not matter as g_pGameRules is involved in all of them. skamonkey@3515: * The same g_pGameRules offset applies to each match. skamonkey@3515: * skamonkey@3515: * Sometimes this block of bytes is at the beginning of the static skamonkey@3515: * CreateGameRulesObject function and sometimes it is in the middle skamonkey@3515: * of an entirely different function. This depends on the game. skamonkey@3515: */ skamonkey@3515: "CreateGameRulesObject" skamonkey@3515: { skamonkey@3515: "library" "server" skamonkey@3515: "windows" "\x8B\x0D\x2A\x2A\x2A\x2A\x85\xC9\x74\x2A\x8B\x01\x8B\x50\x2A\x6A\x01\xFF\xD2" skamonkey@3515: } skamonkey@3515: "g_pGameRules" skamonkey@3515: { skamonkey@3515: "library" "server" skamonkey@3515: "linux" "@g_pGameRules" skamonkey@3515: "mac" "@g_pGameRules" skamonkey@3515: } skamonkey@3515: } skamonkey@3515: } skamonkey@3515: skamonkey@3515: /* IServer interface pointer */ skamonkey@3515: "#default" skamonkey@3515: { skamonkey@3515: "Keys" skamonkey@3515: { skamonkey@3515: /* Signature for the beginning of IVEngineServer::CreateFakeClient. skamonkey@3515: * skamonkey@3515: * The engine binary is not actually scanned in order to look for skamonkey@3515: * this. SourceHook is used to used to determine the address of the skamonkey@3515: * function and this signature is used to verify that it contains skamonkey@3515: * the expected code. A pointer to sv (IServer interface) is used skamonkey@3515: * here. skamonkey@3515: */ skamonkey@3515: "CreateFakeClient_Windows" "\x55\x8B\xEC\x8B\x2A\x2A\x50\xB9\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x85\xC0\x75" skamonkey@3515: } skamonkey@3515: skamonkey@3515: "Offsets" skamonkey@3515: { skamonkey@3515: /* Offset into IVEngineServer::CreateFakeClient */ skamonkey@3515: "sv" skamonkey@3515: { skamonkey@3515: "windows" "8" skamonkey@3515: } skamonkey@3515: } skamonkey@3515: skamonkey@3515: "Signatures" skamonkey@3515: { skamonkey@3515: /* CBaseServer object for IServer interface */ skamonkey@3515: "sv" skamonkey@3515: { skamonkey@3515: "library" "engine" skamonkey@3515: "linux" "@sv" skamonkey@3515: "mac" "@sv" skamonkey@3515: } skamonkey@3515: } skamonkey@3515: } skamonkey@3515: skamonkey@3515: /* EntityFactoryDictionary function */ skamonkey@3515: "#default" skamonkey@3515: { skamonkey@3515: "Signatures" skamonkey@3515: { skamonkey@3515: "EntityFactory" skamonkey@3515: { skamonkey@3515: "library" "server" skamonkey@3515: "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@3515: "linux" "@_Z23EntityFactoryDictionaryv" skamonkey@3515: "mac" "@_Z23EntityFactoryDictionaryv" skamonkey@3515: } skamonkey@3515: } skamonkey@3515: } skamonkey@3515: skamonkey@3515: /* CBaseEntityOutput::FireOutput */ skamonkey@3515: "#default" skamonkey@3515: { skamonkey@3515: "Signatures" skamonkey@3515: { skamonkey@3515: "FireOutput" skamonkey@3515: { skamonkey@3515: "library" "server" skamonkey@3515: "windows" "\x55\x8B\xEC\x81\x2A\x2A\x2A\x2A\x2A\x53\x56\x8B\x71\x2A\x57" skamonkey@3515: "linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f" skamonkey@3515: "mac" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f" skamonkey@3515: } skamonkey@3515: } skamonkey@3515: } skamonkey@3515: skamonkey@3515: /* SetUserInfo data */ skamonkey@3515: "#default" skamonkey@3515: { skamonkey@3515: "Offsets" skamonkey@3515: { skamonkey@3515: /** skamonkey@3515: * CBaseClient::SetUserCVar(char const*,char const*); skamonkey@3515: * Linux offset straight from VTable dump. skamonkey@3515: * Windows offset is crazy. Found the windows SetName function using string "(%d)%-.*s" (aD_S in IDA) skamonkey@3515: * Cross referenced back to the vtable and counted manually (SetUserCvar is 1 higher, offsets start from 1) skamonkey@3515: */ skamonkey@3515: "SetUserCvar" skamonkey@3515: { skamonkey@3515: /* Not 100% sure on this, why would windows change and not linux - TEST ME */ skamonkey@3515: "windows" "17" skamonkey@3515: "linux" "64" skamonkey@3515: "mac" "64" skamonkey@3515: } skamonkey@3515: /** skamonkey@3515: * Offset into CBaseClient - Used by CBaseServer::UpdateUserSettings to determine when changes have been made. skamonkey@3515: * Find CBaseClient::UpdateUserSettings (strings "net_maxroutable", "cl_updaterate" etc) and the offset is set to 0 near the end. skamonkey@3515: * Linux: mov byte ptr [esi+0B0h], 0 skamonkey@3515: * Win: mov byte ptr [esi+0B0h], 0 skamonkey@3515: * skamonkey@3515: * L4D2: This has been moved into CBaseClient::UpdateUserSettings(), rest of the details are still relevant. skamonkey@3515: */ skamonkey@3515: "InfoChanged" skamonkey@3515: { skamonkey@3515: "windows" "168" skamonkey@3515: "linux" "168" skamonkey@3515: "mac" "168" skamonkey@3515: } skamonkey@3515: } skamonkey@3515: } skamonkey@3515: skamonkey@3515: "csgo" skamonkey@3515: { rgr_02@3543: "Keys" rgr_02@3543: { rgr_02@3543: // Netprop on the team entity for team score rgr_02@3543: "m_iScore" "m_scoreTotal" rgr_02@3543: } skamonkey@3515: "Offsets" skamonkey@3515: { skamonkey@3515: "GiveNamedItem" skamonkey@3515: { skamonkey@4008: "windows" "441" skamonkey@4008: "linux" "442" skamonkey@4008: "mac" "442" skamonkey@3515: } skamonkey@3515: "RemovePlayerItem" skamonkey@3515: { skamonkey@4008: "windows" "288" skamonkey@4008: "linux" "289" skamonkey@4008: "mac" "289" skamonkey@4008: } skamonkey@4008: "Weapon_GetSlot" skamonkey@4008: { drifter01620@3865: "windows" "286" drifter01620@3865: "linux" "287" drifter01620@3865: "mac" "287" skamonkey@3515: } skamonkey@3515: "Ignite" skamonkey@3515: { skamonkey@4008: "windows" "222" skamonkey@4008: "linux" "223" skamonkey@4008: "mac" "223" skamonkey@3515: } skamonkey@3515: "Extinguish" skamonkey@3515: { skamonkey@4008: "windows" "225" skamonkey@4008: "linux" "226" skamonkey@4008: "mac" "226" skamonkey@3515: } skamonkey@3515: "Teleport" skamonkey@3515: { drifter01620@3865: "windows" "112" drifter01620@3865: "linux" "113" drifter01620@3865: "mac" "113" skamonkey@3515: } skamonkey@3515: "CommitSuicide" skamonkey@3515: { skamonkey@4008: "windows" "491" skamonkey@4008: "linux" "491" skamonkey@4008: "mac" "491" skamonkey@3515: } skamonkey@3515: "GetVelocity" skamonkey@3515: { drifter01620@3865: "windows" "137" drifter01620@3865: "linux" "138" drifter01620@3865: "mac" "138" skamonkey@3515: } skamonkey@3515: "EyeAngles" skamonkey@3515: { drifter01620@3865: "windows" "128" drifter01620@3865: "linux" "129" drifter01620@3865: "mac" "129" skamonkey@3515: } skamonkey@3515: "AcceptInput" skamonkey@3515: { drifter01620@3865: "windows" "40" drifter01620@3865: "linux" "41" drifter01620@3865: "mac" "41" skamonkey@3515: } skamonkey@3515: "SetEntityModel" skamonkey@3515: { skamonkey@3515: "windows" "26" skamonkey@3515: "linux" "27" skamonkey@3515: "mac" "27" skamonkey@3515: } skamonkey@3515: "WeaponEquip" skamonkey@3515: { skamonkey@4008: "windows" "279" skamonkey@4008: "linux" "280" skamonkey@4008: "mac" "280" skamonkey@3515: } skamonkey@3515: "Activate" skamonkey@3515: { drifter01620@3865: "windows" "37" drifter01620@3865: "linux" "38" drifter01620@3865: "mac" "38" skamonkey@3515: } skamonkey@3515: "PlayerRunCmd" skamonkey@3515: { skamonkey@4008: "windows" "461" skamonkey@4008: "linux" "462" skamonkey@4008: "mac" "462" skamonkey@3515: } skamonkey@3515: } skamonkey@3515: } skamonkey@3515: }