From b17c7adcd59cf83c0c0c15654fdad158dc3d6195 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Wed, 10 Jun 2015 10:02:34 -0400 Subject: [PATCH] Add gamedata for Modular Combat. --- gamedata/core.games/engine.ep2.txt | 1 + .../sdkhooks.games/game.modularcombat.txt | 93 +++++++++++ gamedata/sdkhooks.games/master.games.txt | 5 + gamedata/sdktools.games/engine.ep2.txt | 1 + .../sdktools.games/game.modularcombat.txt | 157 ++++++++++++++++++ gamedata/sdktools.games/master.games.txt | 4 + tools/buildbot/PackageScript | 2 + 7 files changed, 263 insertions(+) create mode 100644 gamedata/sdkhooks.games/game.modularcombat.txt create mode 100644 gamedata/sdktools.games/game.modularcombat.txt diff --git a/gamedata/core.games/engine.ep2.txt b/gamedata/core.games/engine.ep2.txt index d1a4f5bd..b35b37b6 100644 --- a/gamedata/core.games/engine.ep2.txt +++ b/gamedata/core.games/engine.ep2.txt @@ -27,6 +27,7 @@ "game" "fistful_of_frags" "game" "cspromod" "game" "ag2" + "game" "modularcombat" } "Offsets" diff --git a/gamedata/sdkhooks.games/game.modularcombat.txt b/gamedata/sdkhooks.games/game.modularcombat.txt new file mode 100644 index 00000000..c93226a0 --- /dev/null +++ b/gamedata/sdkhooks.games/game.modularcombat.txt @@ -0,0 +1,93 @@ +"Games" +{ + "#default" + { + "Offsets" + { + "Blocked" + { + "windows" "98" + } + "EndTouch" + { + "windows" "96" + } + "FireBullets" + { + "windows" "108" + } + "OnTakeDamage" + { + "windows" "62" + } + "OnTakeDamage_Alive" + { + "windows" "250" + } + "PreThink" + { + "windows" "327" + } + "PostThink" + { + "windows" "328" + } + "SetTransmit" + { + "windows" "20" + } + "ShouldCollide" + { + "windows" "15" + } + "Spawn" + { + "windows" "22" + } + "StartTouch" + { + "windows" "94" + } + "Think" + { + "windows" "46" + } + "Touch" + { + "windows" "95" + } + "TraceAttack" + { + "windows" "60" + } + "VPhysicsUpdate" + { + "windows" "150" + } + "Weapon_CanSwitchTo" + { + "windows" "244" + } + "Weapon_CanUse" + { + "windows" "238" + } + "Weapon_Drop" + { + "windows" "241" + } + "Weapon_Equip" + { + "windows" "239" + } + "Weapon_Switch" + { + "windows" "242" + } + "Reload" + { + "windows" "254" + } + } + } +} \ No newline at end of file diff --git a/gamedata/sdkhooks.games/master.games.txt b/gamedata/sdkhooks.games/master.games.txt index 0d45ef4a..f4bedf9a 100644 --- a/gamedata/sdkhooks.games/master.games.txt +++ b/gamedata/sdkhooks.games/master.games.txt @@ -184,4 +184,9 @@ { "game" "bms" } + + "game.modularcombat.txt" + { + "game" "modularcombat" + } } diff --git a/gamedata/sdktools.games/engine.ep2.txt b/gamedata/sdktools.games/engine.ep2.txt index 887b2185..2e34f6a0 100644 --- a/gamedata/sdktools.games/engine.ep2.txt +++ b/gamedata/sdktools.games/engine.ep2.txt @@ -99,6 +99,7 @@ "game" "fas" "game" "cspromod" "game" "ag2" + "game" "modularcombat" } "Offsets" diff --git a/gamedata/sdktools.games/game.modularcombat.txt b/gamedata/sdktools.games/game.modularcombat.txt new file mode 100644 index 00000000..f112813d --- /dev/null +++ b/gamedata/sdktools.games/game.modularcombat.txt @@ -0,0 +1,157 @@ +/** + * 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" + { + /* Offset into CBaseTempEntity constructor */ + "s_pTempEntities" + { + "windows" "19" + } + "GetTEName" + { + "windows" "4" + "linux" "4" + } + "GetTENext" + { + "windows" "8" + "linux" "8" + } + "TE_GetServerClass" + { + "windows" "0" + "linux" "0" + } + } + + "Signatures" + { + "CBaseTempEntity" + { + "library" "server" + "windows" "\x55\x8B\xEC\x8B\xC1\x8B\x4D\x08\xC7\x00\x2A\x2A\x2A\x2A\x89" + } + "s_pTempEntities" + { + "library" "server" + "linux" "@_ZN15CBaseTempEntity15s_pTempEntitiesE" + } + } + } + + /* CGlobalEntityList */ + "#default" + { + "Signatures" + { + /* Functions in CGlobalEntityList */ + "FindEntityByClassname" + { + "library" "server" + "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\x25\xFF\x0F\x00\x00\x40\x03\xC0\x8B\x3C\xC6" + "linux" "@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc" + } + } + } + + /* CBaseEntityOutput::FireOutput */ + "#default" + { + "Signatures" + { + "FireOutput" + { + "library" "server" + "windows" "\x55\x8B\xEC\x81\xEC\x1C\x01\x00\x00\x53\x56\x8B\x71\x14" + "linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f" + } + } + } + + "#default" + { + "Offsets" + { + "GiveNamedItem" + { + "windows" "389" + } + "RemovePlayerItem" + { + "windows" "248" + } + "Weapon_GetSlot" + { + "windows" "246" + } + "Ignite" + { + "windows" "199" + } + "Extinguish" + { + "windows" "203" + } + "Teleport" + { + "windows" "104" + } + "CommitSuicide" + { + "windows" "427" + } + "GetVelocity" + { + "windows" "134" + } + "EyeAngles" + { + "windows" "126" + } + "AcceptInput" + { + "windows" "35" + } + "SetEntityModel" + { + "windows" "24" + } + "WeaponEquip" + { + "windows" "239" + } + "Activate" + { + "windows" "32" + } + "PlayerRunCmd" + { + "windows" "408" + } + "GiveAmmo" + { + "windows" "233" + } + } + + "Keys" + { + "GameRulesProxy" "CHL2MPGameRulesProxy" + "GameRulesDataTable" "hl2mp_gamerules_data" + } + } +} diff --git a/gamedata/sdktools.games/master.games.txt b/gamedata/sdktools.games/master.games.txt index 2f2e550a..16e21f7b 100644 --- a/gamedata/sdktools.games/master.games.txt +++ b/gamedata/sdktools.games/master.games.txt @@ -247,4 +247,8 @@ { "game" "bms" } + "game.modularcombat.txt" + { + "game" "modularcombat" + } } diff --git a/tools/buildbot/PackageScript b/tools/buildbot/PackageScript index 9f158898..152a0350 100644 --- a/tools/buildbot/PackageScript +++ b/tools/buildbot/PackageScript @@ -162,6 +162,7 @@ CopyFiles('gamedata/sdkhooks.games', 'addons/sourcemod/gamedata/sdkhooks.games', 'game.hl2ctf.txt', 'game.insurgency.txt', 'game.l4d2.txt', + 'game.modularcombat.txt', 'game.neotokyo.txt', 'game.nmrih.txt', 'game.nucleardawn.txt', @@ -214,6 +215,7 @@ CopyFiles('gamedata/sdktools.games', 'addons/sourcemod/gamedata/sdktools.games', 'game.insurgency.txt', 'game.ios.txt', 'game.left4dead2.txt', + 'game.modularcombat.txt', 'game.neotokyo.txt', 'game.nmrih.txt', 'game.nucleardawn.txt',