Update BM:S gamedata.

This commit is contained in:
Nick Hastings 2018-05-06 12:17:47 -04:00
parent c316d8fccd
commit 256b33f75a
3 changed files with 360 additions and 343 deletions

View File

@ -99,7 +99,6 @@
"engine" "csgo" "engine" "csgo"
"engine" "sdk2013" "engine" "sdk2013"
"engine" "contagion" "engine" "contagion"
"engine" "bms"
} }
"Offsets" "Offsets"
@ -113,6 +112,24 @@
} }
} }
"#default"
{
"#supported"
{
"engine" "bms"
}
"Offsets"
{
"GetDataDescMap"
{
"windows" "12"
"linux" "13"
"mac" "13"
}
}
}
/* The Ship is completely different */ /* The Ship is completely different */
"ship" "ship"
{ {

View File

@ -1,142 +1,142 @@
"Games" "Games"
{ {
"#default" "#default"
{ {
"Offsets" "Offsets"
{ {
"Blocked" "Blocked"
{ {
"windows" "109" "windows" "110"
"linux" "110" "linux" "111"
"mac" "110" "mac" "111"
} }
"EndTouch" "EndTouch"
{ {
"windows" "107" "windows" "108"
"linux" "108" "linux" "109"
"mac" "108" "mac" "109"
} }
"FireBullets" "FireBullets"
{ {
"windows" "120" "windows" "121"
"linux" "121" "linux" "122"
"mac" "121" "mac" "122"
} }
"OnTakeDamage" "OnTakeDamage"
{ {
"windows" "66" "windows" "67"
"linux" "67" "linux" "68"
"mac" "67" "mac" "68"
} }
"OnTakeDamage_Alive" "OnTakeDamage_Alive"
{ {
"windows" "290" "windows" "291"
"linux" "291" "linux" "292"
"mac" "291" "mac" "292"
} }
"PreThink" "PreThink"
{ {
"windows" "352" "windows" "353"
"linux" "353" "linux" "354"
"mac" "353" "mac" "354"
} }
"PostThink" "PostThink"
{ {
"windows" "353" "windows" "354"
"linux" "354" "linux" "355"
"mac" "354" "mac" "355"
} }
"SetTransmit" "SetTransmit"
{ {
"windows" "20" "windows" "21"
"linux" "21" "linux" "22"
"mac" "21" "mac" "22"
} }
"ShouldCollide" "ShouldCollide"
{ {
"windows" "16" "windows" "17"
"linux" "17" "linux" "18"
"mac" "17" "mac" "18"
} }
"Spawn" "Spawn"
{ {
"windows" "22" "windows" "23"
"linux" "23" "linux" "24"
"mac" "23" "mac" "24"
} }
"StartTouch" "StartTouch"
{ {
"windows" "105" "windows" "106"
"linux" "106" "linux" "107"
"mac" "106" "mac" "107"
} }
"Think" "Think"
{ {
"windows" "48" "windows" "49"
"linux" "49" "linux" "50"
"mac" "49" "mac" "50"
} }
"Touch" "Touch"
{ {
"windows" "106" "windows" "107"
"linux" "107" "linux" "108"
"mac" "107" "mac" "108"
} }
"TraceAttack" "TraceAttack"
{ {
"windows" "64" "windows" "65"
"linux" "65" "linux" "66"
"mac" "65" "mac" "66"
} }
"VPhysicsUpdate" "VPhysicsUpdate"
{ {
"windows" "166" "windows" "167"
"linux" "167" "linux" "168"
"mac" "167" "mac" "168"
} }
"Weapon_CanSwitchTo" "Weapon_CanSwitchTo"
{ {
"windows" "284" "windows" "285"
"linux" "285" "linux" "286"
"mac" "285" "mac" "286"
} }
"Weapon_CanUse" "Weapon_CanUse"
{ {
"windows" "278" "windows" "279"
"linux" "279" "linux" "280"
"mac" "279" "mac" "280"
} }
"Weapon_Drop" "Weapon_Drop"
{ {
"windows" "281" "windows" "282"
"linux" "282" "linux" "283"
"mac" "282" "mac" "283"
} }
"Weapon_Equip" "Weapon_Equip"
{ {
"windows" "279" "windows" "280"
"linux" "280" "linux" "281"
"mac" "280" "mac" "281"
} }
"Weapon_Switch" "Weapon_Switch"
{ {
"windows" "282" "windows" "283"
"linux" "283" "linux" "284"
"mac" "283" "mac" "284"
} }
} }
} }
"#default" "#default"
{ {
"Offsets" "Offsets"
{ {
"EntityListeners" "EntityListeners"
{ {
"windows" "131108" "windows" "131108"
"linux" "131108" "linux" "131108"
"mac" "131108" "mac" "131108"
} }
} }
} }
} }

View File

@ -1,200 +1,200 @@
/** /**
* Do not edit this file. Any changes will be overwritten by the gamedata * Do not edit this file. Any changes will be overwritten by the gamedata
* updater or by upgrading your SourceMod install. * updater or by upgrading your SourceMod install.
* *
* To override data in this file, create a subdirectory named "custom" and * 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 * place your own gamedata file(s) inside of it. Such files will be parsed
* after SM's own. * after SM's own.
* *
* For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(SourceMod) * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(SourceMod)
*/ */
"Games" "Games"
{ {
/* General Temp Entities */ /* General Temp Entities */
"#default" "#default"
{ {
"Offsets" "Offsets"
{ {
"GetTEName" "GetTEName"
{ {
"windows" "4" "windows" "4"
"linux" "4" "linux" "4"
"mac" "4" "mac" "4"
} }
"GetTENext" "GetTENext"
{ {
"windows" "8" "windows" "8"
"linux" "8" "linux" "8"
"mac" "8" "mac" "8"
} }
"TE_GetServerClass" "TE_GetServerClass"
{ {
"windows" "0" "windows" "0"
"linux" "0" "linux" "0"
"mac" "0" "mac" "0"
} }
} }
} }
/* CBaseEntityOutput::FireOutput */ /* CBaseEntityOutput::FireOutput */
"#default" "#default"
{ {
"Signatures" "Signatures"
{ {
"FireOutput" "FireOutput"
{ {
"library" "server" "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" "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" "linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
"mac" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f" "mac" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
} }
} }
} }
/* SetUserInfo data */ /* SetUserInfo data */
"#default" "#default"
{ {
"Offsets" "Offsets"
{ {
/** /**
* CBaseClient::SetUserCVar(char const*,char const*); * CBaseClient::SetUserCVar(char const*,char const*);
* Linux offset straight from VTable dump. * Linux offset straight from VTable dump.
* Windows offset is crazy. Found the windows SetName function using string "(%d)%-0.*s" * 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) * Cross referenced back to the vtable and counted manually (SetUserCvar is 1 higher, offsets start from 1)
*/ */
"SetUserCvar" "SetUserCvar"
{ {
"windows" "18" "windows" "18"
"linux" "58" "linux" "58"
"mac" "58" "mac" "58"
} }
/** /**
* CBaseClient::SetName(char const*); * CBaseClient::SetName(char const*);
* Linux offset straight from VTable dump. * Linux offset straight from VTable dump.
* Has string "(%d)%-0.*s" * Has string "(%d)%-0.*s"
*/ */
"SetClientName" "SetClientName"
{ {
"windows" "17" "windows" "17"
"linux" "57" "linux" "57"
"mac" "57" "mac" "57"
} }
/** /**
* Offset into CBaseClient - Used by CBaseServer::UpdateUserSettings to determine when changes have been made. * 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. * 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 * Linux: mov byte ptr [esi+98h], 0
* Win: mov byte ptr [esi+0A4h], 0 * Win: mov byte ptr [esi+0A4h], 0
*/ */
"InfoChanged" "InfoChanged"
{ {
"windows" "140" "windows" "140"
"linux" "140" "linux" "140"
"mac" "140" "mac" "140"
} }
} }
} }
"#default" "#default"
{ {
"Offsets" "Offsets"
{ {
"GiveNamedItem" "GiveNamedItem"
{ {
"windows" "421" "windows" "423"
"linux" "422" "linux" "424"
"mac" "422" "mac" "424"
} }
"RemovePlayerItem" "RemovePlayerItem"
{ {
"windows" "288" "windows" "289"
"linux" "289" "linux" "290"
"mac" "289" "mac" "290"
} }
"Weapon_GetSlot" "Weapon_GetSlot"
{ {
"windows" "286" "windows" "287"
"linux" "287" "linux" "288"
"mac" "287" "mac" "288"
} }
"Ignite" "Ignite"
{ {
"windows" "225" "windows" "226"
"linux" "226" "linux" "227"
"mac" "226" "mac" "227"
} }
"Extinguish" "Extinguish"
{ {
"windows" "229" "windows" "230"
"linux" "230" "linux" "231"
"mac" "230" "mac" "231"
} }
"Teleport" "Teleport"
{ {
"windows" "116" "windows" "117"
"linux" "117" "linux" "118"
"mac" "117" "mac" "118"
} }
"CommitSuicide" "CommitSuicide"
{ {
"windows" "461" "windows" "463"
"linux" "461" "linux" "463"
"mac" "461" "mac" "463"
} }
"GetVelocity" "GetVelocity"
{ {
"windows" "149" "windows" "150"
"linux" "150" "linux" "151"
"mac" "150" "mac" "151"
} }
"EyeAngles" "EyeAngles"
{ {
"windows" "139" "windows" "140"
"linux" "140" "linux" "141"
"mac" "140" "mac" "141"
} }
"SetEntityModel" "SetEntityModel"
{ {
"windows" "24" "windows" "25"
"linux" "25" "linux" "26"
"mac" "25" "mac" "26"
} }
"AcceptInput" "AcceptInput"
{ {
"windows" "37" "windows" "38"
"linux" "38" "linux" "39"
"mac" "38" "mac" "39"
} }
"WeaponEquip" "WeaponEquip"
{ {
"windows" "279" "windows" "280"
"linux" "280" "linux" "281"
"mac" "280" "mac" "281"
} }
"Activate" "Activate"
{ {
"windows" "34" "windows" "35"
"linux" "35" "linux" "36"
"mac" "35" "mac" "36"
} }
"PlayerRunCmd" "PlayerRunCmd"
{ {
"windows" "440" "windows" "442"
"linux" "441" "linux" "443"
"mac" "441" "mac" "443"
} }
"GiveAmmo" "GiveAmmo"
{ {
"windows" "270" "windows" "271"
"linux" "271" "linux" "272"
"mac" "271" "mac" "272"
} }
} }
"Keys" "Keys"
{ {
"GameRulesProxy" "CBM_MP_GameRulesProxy" "GameRulesProxy" "CBM_MP_GameRulesProxy"
"GameRulesDataTable" "blackmesa_mp_gamerules_data" "GameRulesDataTable" "blackmesa_mp_gamerules_data"
} }
} }
} }