From ce365abab6f21c22ca13b1c27f933258b483d942 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Fri, 22 Mar 2013 23:07:17 -0400 Subject: [PATCH] Added Dota 2 gamedata for SDKHooks. --- gamedata/sdkhooks.games/engine.dota.txt | 103 +++++++++++++++++++++++ gamedata/sdkhooks.games/master.games.txt | 5 ++ 2 files changed, 108 insertions(+) create mode 100644 gamedata/sdkhooks.games/engine.dota.txt diff --git a/gamedata/sdkhooks.games/engine.dota.txt b/gamedata/sdkhooks.games/engine.dota.txt new file mode 100644 index 00000000..2c7e3956 --- /dev/null +++ b/gamedata/sdkhooks.games/engine.dota.txt @@ -0,0 +1,103 @@ +"Games" +{ + "#default" + { + "Offsets" + { + "EndTouch" + { + "windows" "105" + } + "FireBullets" + { + "windows" "118" + } + "GetMaxHealth" + { + "windows" "122" + } + "OnTakeDamage" + { + "windows" "70" + } + "PreThink" + { + "windows" "363" + } + "PostThink" + { + "windows" "364" + } + "SetTransmit" + { + "windows" "22" + } + "ShouldCollide" + { + "windows" "17" + } + "Spawn" + { + "windows" "24" + } + "StartTouch" + { + "windows" "103" + } + "Think" + { + "windows" "52" + } + "Touch" + { + "windows" "104" + } + "TraceAttack" + { + "windows" "68" + } + "Use" + { + "windows" "102" + } + "VPhysicsUpdate" + { + "windows" "163" + } + "Weapon_CanSwitchTo" + { + "windows" "297" + } + "Weapon_CanUse" + { + "windows" "291" + } + "Weapon_Drop" + { + "windows" "294" + } + "Weapon_Equip" + { + "windows" "292" + } + "Weapon_Switch" + { + "windows" "295" + } + } + } + + "#default" + { + // CGlobalEntityList vtable, first function (OnAddEntity [+0]), near end, getting multiplied by 4 + // mov eax, [edi+20024h] + // mov ecx, [eax+esi*4] + "Offsets" + { + "EntityListeners" + { + "windows" "131108" + } + } + } +} \ No newline at end of file diff --git a/gamedata/sdkhooks.games/master.games.txt b/gamedata/sdkhooks.games/master.games.txt index 265a19d6..4e565942 100644 --- a/gamedata/sdkhooks.games/master.games.txt +++ b/gamedata/sdkhooks.games/master.games.txt @@ -36,6 +36,11 @@ "engine" "csgo" } + "engine.dota.txt" + { + "engine" "dota" + } + "engine.ep2v.txt" { "engine" "orangebox_valve"