diff --git a/gamedata/core.games/common.games.txt b/gamedata/core.games/common.games.txt index 6e49ca45..910068e9 100644 --- a/gamedata/core.games/common.games.txt +++ b/gamedata/core.games/common.games.txt @@ -99,7 +99,6 @@ "engine" "csgo" "engine" "sdk2013" "engine" "contagion" - "engine" "bms" } "Offsets" @@ -113,6 +112,24 @@ } } + "#default" + { + "#supported" + { + "engine" "bms" + } + + "Offsets" + { + "GetDataDescMap" + { + "windows" "12" + "linux" "13" + "mac" "13" + } + } + } + /* The Ship is completely different */ "ship" { diff --git a/gamedata/sdkhooks.games/game.bms.txt b/gamedata/sdkhooks.games/game.bms.txt index 1c2d005b..00881294 100644 --- a/gamedata/sdkhooks.games/game.bms.txt +++ b/gamedata/sdkhooks.games/game.bms.txt @@ -1,142 +1,142 @@ -"Games" -{ - "#default" - { - "Offsets" - { - "Blocked" - { - "windows" "109" - "linux" "110" - "mac" "110" - } - "EndTouch" - { - "windows" "107" - "linux" "108" - "mac" "108" - } - "FireBullets" - { - "windows" "120" - "linux" "121" - "mac" "121" - } - "OnTakeDamage" - { - "windows" "66" - "linux" "67" - "mac" "67" - } - "OnTakeDamage_Alive" - { - "windows" "290" - "linux" "291" - "mac" "291" - } - "PreThink" - { - "windows" "352" - "linux" "353" - "mac" "353" - } - "PostThink" - { - "windows" "353" - "linux" "354" - "mac" "354" - } - "SetTransmit" - { - "windows" "20" - "linux" "21" - "mac" "21" - } - "ShouldCollide" - { - "windows" "16" - "linux" "17" - "mac" "17" - } - "Spawn" - { - "windows" "22" - "linux" "23" - "mac" "23" - } - "StartTouch" - { - "windows" "105" - "linux" "106" - "mac" "106" - } - "Think" - { - "windows" "48" - "linux" "49" - "mac" "49" - } - "Touch" - { - "windows" "106" - "linux" "107" - "mac" "107" - } - "TraceAttack" - { - "windows" "64" - "linux" "65" - "mac" "65" - } - "VPhysicsUpdate" - { - "windows" "166" - "linux" "167" - "mac" "167" - } - "Weapon_CanSwitchTo" - { - "windows" "284" - "linux" "285" - "mac" "285" - } - "Weapon_CanUse" - { - "windows" "278" - "linux" "279" - "mac" "279" - } - "Weapon_Drop" - { - "windows" "281" - "linux" "282" - "mac" "282" - } - "Weapon_Equip" - { - "windows" "279" - "linux" "280" - "mac" "280" - } - "Weapon_Switch" - { - "windows" "282" - "linux" "283" - "mac" "283" - } - } - } - - "#default" - { - "Offsets" - { - "EntityListeners" - { - "windows" "131108" - "linux" "131108" - "mac" "131108" - } - } - } -} +"Games" +{ + "#default" + { + "Offsets" + { + "Blocked" + { + "windows" "110" + "linux" "111" + "mac" "111" + } + "EndTouch" + { + "windows" "108" + "linux" "109" + "mac" "109" + } + "FireBullets" + { + "windows" "121" + "linux" "122" + "mac" "122" + } + "OnTakeDamage" + { + "windows" "67" + "linux" "68" + "mac" "68" + } + "OnTakeDamage_Alive" + { + "windows" "291" + "linux" "292" + "mac" "292" + } + "PreThink" + { + "windows" "353" + "linux" "354" + "mac" "354" + } + "PostThink" + { + "windows" "354" + "linux" "355" + "mac" "355" + } + "SetTransmit" + { + "windows" "21" + "linux" "22" + "mac" "22" + } + "ShouldCollide" + { + "windows" "17" + "linux" "18" + "mac" "18" + } + "Spawn" + { + "windows" "23" + "linux" "24" + "mac" "24" + } + "StartTouch" + { + "windows" "106" + "linux" "107" + "mac" "107" + } + "Think" + { + "windows" "49" + "linux" "50" + "mac" "50" + } + "Touch" + { + "windows" "107" + "linux" "108" + "mac" "108" + } + "TraceAttack" + { + "windows" "65" + "linux" "66" + "mac" "66" + } + "VPhysicsUpdate" + { + "windows" "167" + "linux" "168" + "mac" "168" + } + "Weapon_CanSwitchTo" + { + "windows" "285" + "linux" "286" + "mac" "286" + } + "Weapon_CanUse" + { + "windows" "279" + "linux" "280" + "mac" "280" + } + "Weapon_Drop" + { + "windows" "282" + "linux" "283" + "mac" "283" + } + "Weapon_Equip" + { + "windows" "280" + "linux" "281" + "mac" "281" + } + "Weapon_Switch" + { + "windows" "283" + "linux" "284" + "mac" "284" + } + } + } + + "#default" + { + "Offsets" + { + "EntityListeners" + { + "windows" "131108" + "linux" "131108" + "mac" "131108" + } + } + } +} diff --git a/gamedata/sdktools.games/game.bms.txt b/gamedata/sdktools.games/game.bms.txt index f5c598a1..b40174ea 100644 --- a/gamedata/sdktools.games/game.bms.txt +++ b/gamedata/sdktools.games/game.bms.txt @@ -1,200 +1,200 @@ -/** - * Do not edit this file. Any changes will be overwritten by the gamedata - * updater or by upgrading your SourceMod install. - * - * To override data in this file, create a subdirectory named "custom" and - * place your own gamedata file(s) inside of it. Such files will be parsed - * after SM's own. - * - * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(SourceMod) - */ - -"Games" -{ - /* General Temp Entities */ - "#default" - { - "Offsets" - { - "GetTEName" - { - "windows" "4" - "linux" "4" - "mac" "4" - } - "GetTENext" - { - "windows" "8" - "linux" "8" - "mac" "8" - } - "TE_GetServerClass" - { - "windows" "0" - "linux" "0" - "mac" "0" - } - } - } - - /* CBaseEntityOutput::FireOutput */ - "#default" - { - "Signatures" - { - "FireOutput" - { - "library" "server" - "windows" "\x55\x8B\xEC\x81\xEC\x2A\x2A\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x33\xC5\x89\x45\xFC\x53\x8B\x5D\x20\x8B\xC1\x8B\x4D\x1C\x56\x57\x8B" - "linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f" - "mac" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f" - } - } - } - - /* SetUserInfo data */ - "#default" - { - "Offsets" - { - /** - * CBaseClient::SetUserCVar(char const*,char const*); - * Linux offset straight from VTable dump. - * Windows offset is crazy. Found the windows SetName function using string "(%d)%-0.*s" - * Cross referenced back to the vtable and counted manually (SetUserCvar is 1 higher, offsets start from 1) - */ - "SetUserCvar" - { - "windows" "18" - "linux" "58" - "mac" "58" - } - /** - * CBaseClient::SetName(char const*); - * Linux offset straight from VTable dump. - * Has string "(%d)%-0.*s" - */ - "SetClientName" - { - "windows" "17" - "linux" "57" - "mac" "57" - } - /** - * Offset into CBaseClient - Used by CBaseServer::UpdateUserSettings to determine when changes have been made. - * Find CBaseClient::UpdateUserSettings (strings "net_maxroutable", "cl_updaterate" etc) and the offset is set to 0 near the end. - * Linux: mov byte ptr [esi+98h], 0 - * Win: mov byte ptr [esi+0A4h], 0 - */ - "InfoChanged" - { - "windows" "140" - "linux" "140" - "mac" "140" - } - } - } - - "#default" - { - "Offsets" - { - "GiveNamedItem" - { - "windows" "421" - "linux" "422" - "mac" "422" - } - "RemovePlayerItem" - { - "windows" "288" - "linux" "289" - "mac" "289" - } - "Weapon_GetSlot" - { - "windows" "286" - "linux" "287" - "mac" "287" - } - "Ignite" - { - "windows" "225" - "linux" "226" - "mac" "226" - } - "Extinguish" - { - "windows" "229" - "linux" "230" - "mac" "230" - } - "Teleport" - { - "windows" "116" - "linux" "117" - "mac" "117" - } - "CommitSuicide" - { - "windows" "461" - "linux" "461" - "mac" "461" - } - "GetVelocity" - { - "windows" "149" - "linux" "150" - "mac" "150" - } - "EyeAngles" - { - "windows" "139" - "linux" "140" - "mac" "140" - } - "SetEntityModel" - { - "windows" "24" - "linux" "25" - "mac" "25" - } - "AcceptInput" - { - "windows" "37" - "linux" "38" - "mac" "38" - } - "WeaponEquip" - { - "windows" "279" - "linux" "280" - "mac" "280" - } - "Activate" - { - "windows" "34" - "linux" "35" - "mac" "35" - } - "PlayerRunCmd" - { - "windows" "440" - "linux" "441" - "mac" "441" - } - "GiveAmmo" - { - "windows" "270" - "linux" "271" - "mac" "271" - } - } - - "Keys" - { - "GameRulesProxy" "CBM_MP_GameRulesProxy" - "GameRulesDataTable" "blackmesa_mp_gamerules_data" - } - } -} +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your SourceMod install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after SM's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(SourceMod) + */ + +"Games" +{ + /* General Temp Entities */ + "#default" + { + "Offsets" + { + "GetTEName" + { + "windows" "4" + "linux" "4" + "mac" "4" + } + "GetTENext" + { + "windows" "8" + "linux" "8" + "mac" "8" + } + "TE_GetServerClass" + { + "windows" "0" + "linux" "0" + "mac" "0" + } + } + } + + /* CBaseEntityOutput::FireOutput */ + "#default" + { + "Signatures" + { + "FireOutput" + { + "library" "server" + "windows" "\x55\x8B\xEC\x81\xEC\x2A\x2A\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x33\xC5\x89\x45\xFC\x53\x8B\x5D\x20\x8B\xC1\x8B\x4D\x1C\x56\x57\x8B" + "linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f" + "mac" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f" + } + } + } + + /* SetUserInfo data */ + "#default" + { + "Offsets" + { + /** + * CBaseClient::SetUserCVar(char const*,char const*); + * Linux offset straight from VTable dump. + * Windows offset is crazy. Found the windows SetName function using string "(%d)%-0.*s" + * Cross referenced back to the vtable and counted manually (SetUserCvar is 1 higher, offsets start from 1) + */ + "SetUserCvar" + { + "windows" "18" + "linux" "58" + "mac" "58" + } + /** + * CBaseClient::SetName(char const*); + * Linux offset straight from VTable dump. + * Has string "(%d)%-0.*s" + */ + "SetClientName" + { + "windows" "17" + "linux" "57" + "mac" "57" + } + /** + * Offset into CBaseClient - Used by CBaseServer::UpdateUserSettings to determine when changes have been made. + * Find CBaseClient::UpdateUserSettings (strings "net_maxroutable", "cl_updaterate" etc) and the offset is set to 0 near the end. + * Linux: mov byte ptr [esi+98h], 0 + * Win: mov byte ptr [esi+0A4h], 0 + */ + "InfoChanged" + { + "windows" "140" + "linux" "140" + "mac" "140" + } + } + } + + "#default" + { + "Offsets" + { + "GiveNamedItem" + { + "windows" "423" + "linux" "424" + "mac" "424" + } + "RemovePlayerItem" + { + "windows" "289" + "linux" "290" + "mac" "290" + } + "Weapon_GetSlot" + { + "windows" "287" + "linux" "288" + "mac" "288" + } + "Ignite" + { + "windows" "226" + "linux" "227" + "mac" "227" + } + "Extinguish" + { + "windows" "230" + "linux" "231" + "mac" "231" + } + "Teleport" + { + "windows" "117" + "linux" "118" + "mac" "118" + } + "CommitSuicide" + { + "windows" "463" + "linux" "463" + "mac" "463" + } + "GetVelocity" + { + "windows" "150" + "linux" "151" + "mac" "151" + } + "EyeAngles" + { + "windows" "140" + "linux" "141" + "mac" "141" + } + "SetEntityModel" + { + "windows" "25" + "linux" "26" + "mac" "26" + } + "AcceptInput" + { + "windows" "38" + "linux" "39" + "mac" "39" + } + "WeaponEquip" + { + "windows" "280" + "linux" "281" + "mac" "281" + } + "Activate" + { + "windows" "35" + "linux" "36" + "mac" "36" + } + "PlayerRunCmd" + { + "windows" "442" + "linux" "443" + "mac" "443" + } + "GiveAmmo" + { + "windows" "271" + "linux" "272" + "mac" "272" + } + } + + "Keys" + { + "GameRulesProxy" "CBM_MP_GameRulesProxy" + "GameRulesDataTable" "blackmesa_mp_gamerules_data" + } + } +}