diff --git a/gamedata/sdkhooks.games/game.ship.txt b/gamedata/sdkhooks.games/game.ship.txt new file mode 100644 index 00000000..6a4c5578 --- /dev/null +++ b/gamedata/sdkhooks.games/game.ship.txt @@ -0,0 +1,141 @@ +/** + * 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" +{ + /* The Ship */ + "ship" + { + "Offsets" + { + /* + * The following offsets aren't available because the function doesn't exist or isn't virtual: + * CanBeAutobalanced, GetMaxHealth + */ + "EndTouch" + { + "windows" "92" + "linux" "93" + } + "FireBullets" + { + "windows" "103" + "linux" "104" + } + "GroundEntChanged" + { + "windows" "156" + "linux" "157" + } + "OnTakeDamage" + { + "windows" "60" + "linux" "61" + } + "OnTakeDamage_Alive" + { + "windows" "222" + "linux" "223" + } + "PreThink" + { + "windows" "262" + "linux" "263" + } + "PostThink" + { + "windows" "263" + "linux" "264" + } + /* CBaseCombatWeapon::Reload */ + "Reload" + { + "windows" "224" + "linux" "225" + } + "SetTransmit" + { + "windows" "26" + "linux" "27" + } + "ShouldCollide" + { + "windows" "22" + "linux" "23" + } + "Spawn" + { + "windows" "28" + "linux" "29" + } + "StartTouch" + { + "windows" "90" + "linux" "91" + } + "Think" + { + "windows" "50" + "linux" "51" + } + "Touch" + { + "windows" "91" + "linux" "92" + } + "TraceAttack" + { + "windows" "58" + "linux" "59" + } + "Use" + { + "windows" "89" + "linux" "90" + } + "VPhysicsUpdate" + { + "windows" "140" + "linux" "141" + } + "Blocked" + { + "windows" "94" + "linux" "95" + } + "Weapon_CanSwitchTo" + { + "windows" "216" + "linux" "217" + } + "Weapon_CanUse" + { + "windows" "210" + "linux" "211" + } + "Weapon_Drop" + { + "windows" "213" + "linux" "214" + } + "Weapon_Equip" + { + "windows" "211" + "linux" "212" + } + "Weapon_Switch" + { + "windows" "214" + "linux" "215" + } + } + } +} \ No newline at end of file diff --git a/gamedata/sdkhooks.games/master.games.txt b/gamedata/sdkhooks.games/master.games.txt index 2af3eab2..b54206b8 100644 --- a/gamedata/sdkhooks.games/master.games.txt +++ b/gamedata/sdkhooks.games/master.games.txt @@ -231,4 +231,8 @@ { "game" "tf2classified" } + "game.ship.txt" + { + "game" "ship" + } } diff --git a/gamedata/sdktools.games/game.ship.txt b/gamedata/sdktools.games/game.ship.txt index 02f1f8a4..d2d10248 100644 --- a/gamedata/sdktools.games/game.ship.txt +++ b/gamedata/sdktools.games/game.ship.txt @@ -16,6 +16,12 @@ { "Offsets" { + /* CBaseEntity::SetOwnerEntity */ + "SetOwnerEntity" + { + "windows" "23" + "linux" "24" + } /* CBasePlayer */ "GiveNamedItem" { @@ -97,6 +103,21 @@ "windows" "37" "linux" "38" } + "PlayerRunCmd" + { + "windows" "334" + "linux" "335" + } + "GiveAmmo" + { + "windows" "207" + "linux" "208" + } + "GetAttachment" + { + "windows" "176" + "linux" "177" + } /* Temp Entities */ "TE_GetServerClass" @@ -112,7 +133,7 @@ { "library" "server" "linux" "@_Z13DispatchSpawnP11CBaseEntity" - "windows" "\x53\x56\x8B\x74\x24\x0C\x85\xF6\x57\x0F\x84\x2A\x2A\x2A\x2A\x8B\x1D\x2A\x2A\x2A\x2A\x8B\x03\x8B\xCB\xFF\x50\x60\x8B\0x16" + "windows" "\x53\x56\x8B\x74\x24\x2A\x85\xF6\x57\x0F\x84" } "CreateEntityByName" { @@ -120,6 +141,24 @@ "linux" "@_Z18CreateEntityByNamePKci" "windows" "\x56\x8B\x74\x24\x0C\x83\xFE\xFF\x57\x8B\x7C\x24\x0C\x74\x25\x8B\x0D\x2A\x2A\x2A\x2A\x8B\x01\x56\xFF\x50\x54\x85\xC0" } + "FireOutput" + { + /* CBaseEntityOutput::FireOutput */ + /* String: "(%0.2f) output: (%s,%s) -> (%s,%s,%.1f)" */ + "library" "server" + "windows" "\x83\xEC\x1C\x53\x55\x56\x8B\x71" + "linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f" + } + "LookupAttachment" + { + /* CBaseAnimating::LookupAttachment */ + /* Search for "zipline" string, CBaseAnimating::LookupAttachment is called with the "zipline" string passed as a parameter. + * "cable/cable.vmt" should be on another function call right below it. + */ + "library" "server" + "windows" "\xE8\x2A\x2A\x2A\x2A\x85\xC0\x75\x2A\xC2\x04\x00\x8B\x4C\x24" + "linux" "@_ZN14CBaseAnimating16LookupAttachmentEPKc" + } } } } \ No newline at end of file