Skip to content

Commit

Permalink
Add gmod9 gamedata. (#2093)
Browse files Browse the repository at this point in the history
  • Loading branch information
caatge authored Dec 18, 2023
1 parent 5f309f4 commit 385eae8
Show file tree
Hide file tree
Showing 8 changed files with 324 additions and 1 deletion.
1 change: 1 addition & 0 deletions gamedata/core.games/engine.ep1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"game" "esmod"
"game" "ios"
"game" "hl2ctf"
"game" "gmod9"
}

"Offsets"
Expand Down
24 changes: 24 additions & 0 deletions gamedata/core.games/game.gmod9.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
modified copy of engine.ep1.txt
*/

"Games"
{
/* CGlobalEntityList */
"#default"
{
"#supported"
{
"game" "gmod9"
}

"Offsets"
{
"GetDataDescMap"
{
"windows" "15"
"linux" "16"
}
}
}
}
7 changes: 6 additions & 1 deletion gamedata/core.games/master.games.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@
{
"game" "dinodday"
}


"game.gmod9.txt"
{
"game" "gmod9"
}

"blocklist.plugins.txt"
{
}
Expand Down
116 changes: 116 additions & 0 deletions gamedata/sdkhooks.games/game.gmod9.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@

"Games"
{
/* GMod 9.0.4b */
"gmod9"
{
"Offsets"
{
"EndTouch"
{
"windows" "86"
"linux" "87"
}
"FireBullets"
{
"windows" "96"
"linux" "97"
}
"GroundEntChanged"
{
"windows" "149"
"linux" "150"
}
"OnTakeDamage"
{
"windows" "56"
"linux" "57"
}
"PreThink"
{
"windows" "250"
"linux" "251"
}
"PostThink"
{
"windows" "251"
"linux" "252"
}
"Reload"
{
"windows" "217"
"linux" "218"
}
"SetTransmit"
{
"windows" "23"
"linux" "24"
}
"ShouldCollide"
{
"windows" "19"
"linux" "20"
}
"Spawn"
{
"windows" "25"
"linux" "26"
}
"StartTouch"
{
"windows" "84"
"linux" "85"
}
"Think"
{
"windows" "47"
"linux" "48"
}
"Touch"
{
"windows" "91"
"linux" "92"
}
"TraceAttack"
{
"windows" "55"
"linux" "56"
}
"Use"
{
"windows" "83"
"linux" "84"
}
"VPhysicsUpdate"
{
"windows" "133"
"linux" "134"
}
"Weapon_CanSwitchTo"
{
"windows" "208"
"linux" "209"
}
"Weapon_CanUse"
{
"windows" "202"
"linux" "203"
}
"Weapon_Drop"
{
"windows" "205"
"linux" "206"
}
"Weapon_Equip"
{
"windows" "203"
"linux" "204"
}
"Weapon_Switch"
{
"windows" "206"
"linux" "207"
}
}
}
}
5 changes: 5 additions & 0 deletions gamedata/sdkhooks.games/master.games.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,9 @@
{
"game" "tf2classic"
}

"game.gmod9.txt"
{
"game" "gmod9"
}
}
1 change: 1 addition & 0 deletions gamedata/sdktools.games/engine.ep1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"game" "esmod"
"game" "ios"
"game" "hl2ctf"
"game" "gmod9"
}

"Offsets"
Expand Down
167 changes: 167 additions & 0 deletions gamedata/sdktools.games/game.gmod9.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@

"Games"
{
/* GMod 9.0.4b */
"gmod9"
{
"Signatures"
{
/* CBaseEntityOutput::FireOutput */
"FireOutput"
{
"library" "server"
"windows" "\x83\xEC\x1C\x53\x55\x56\x8B\x71\x14\x85\xF6\x57\x89\x4C\x24\x14\xC7\x44\x24\x2A\x2A\x2A\x2A\x2A\x0F\x84\x2A\x2A\x2A\x2A\x8B\x6C\x24\x48\x8B\x5C\x24\x30\x8B\x46\x14\x8B\x4E\x08\x85\xC9\x50\x55\x75\x45\x8B\x4C\x24\x4C\xD9\x44\x24\x54\xD8\x46\x0C\x8B\x54\x24\x38\x51"
"linux" "@_ZN17CBaseEntityOutput10FireOutputE9variant_tP11CBaseEntityS2_f"
}

/* CBaseAnimating::LookupAttachment */
"LookupAttachment"
{
"library" "server"
"windows" "\x56\xE8\x2A\x2A\x2A\x2A\x8B\xF0\x85\xF6\x74\x21\x8B\x0D\x2A\x2A\x2A\x2A\x8B\x01\x56\xFF\x50\x24\x83\xF8\x03\x75\x10\x8B\x0D\x2A\x2A\x2A\x2A\x8B\x11\x56\xFF\x52\x28\x85\xC0\x75\x06\x33\xC0\x5E\xC2\x04\x00"
"linux" "@_ZN14CBaseAnimating16LookupAttachmentEPKc"
}

/* CGlobalEntityList::FindEntityByClassname */
"FindEntityByClassname"
{
"library" "server"
"windows" "\x53\x55\x56\x8B\xF1\x8B\x4C\x24\x10\x85\xC9\x57\x74\x16\x8B\x01\xFF\x50\x08\x8B\x08\x81\xE1\x2A\x2A\x2A\x2A\x41\xC1\xE1\x04\x8B\x3C\x31\xEB\x06"
"linux" "@_ZN17CGlobalEntityList21FindEntityByClassnameEP11CBaseEntityPKc"
}

/* CreateEntityByName */
"CreateEntityByName"
{
"library" "server"
"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\xA3\x2A\x2A\x2A\x2A\x75\x10\x56\x57\x68\x2A\x2A\x2A\x2A\xFF\x15\x2A\x2A\x2A\x2A\x83\xC4\x0C\xE8\x2A\x2A\x2A\x2A\x8B\x10\x57\x8B\xC8\xFF\x52\x04\x85\xC0\x5F\xC7\x05\x2A\x2A\x2A\x2A\x2A"
"linux" "@_Z18CreateEntityByNamePKci"
}

/* DispatchSpawn */
"DispatchSpawn"
{
"library" "server"
"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\x14\x8B\x16\x8B\xCE\xFF\x52\x08\x8B\x38\x8B\x06\x8B\xCE\xFF\x50\x64\x83\xFF\xFF\x74\x58\x8B\x15\x2A\x2A\x2A\x2A\x8B\xCF\x81\xE1\x2A\x2A\x2A\x2A\xC1\xE1\x04\x8D\x44\x11\x04\x8B\x48"
"linux" "@_Z13DispatchSpawnP11CBaseEntity"
}

/* CBasePlayer::CommitSuicide */
"CommitSuicide"
{
"library" "server"
"windows" "\x83\xEC\x44\x56\x8B\xF1\x8B\x86\x2A\x2A\x2A\x2A\x85\xC0\x75\x6E\x8B\x0D\x2A\x2A\x2A\x2A\xD9\x86\x2A\x2A\x2A\x2A\xD8\x59\x0C\xDF\xE0\xF6\xC4\x41\x74\x58\xD9\x41\x0C\xD8\x05\x2A\x2A\x2A\x2A\xD9\x9E\x2A\x2A\x2A\x2A\x8B\x86\x2A\x2A\x2A\x2A\x85\xC0\x74\x14\x8B\xCE\x8B\x01\xFF\x90\x2A\x2A\x2A\x2A\xC7\x86\x2A"
"linux" "@_ZN11CBasePlayer13CommitSuicideEv"
}
}
"Offsets"
{
"m_iHealth"
{
"class" "CBasePlayer"
"prop" "m_iHealth"
}
"GiveNamedItem"
{
"windows" "299"
"linux" "300"
}
"RemovePlayerItem"
{
"windows" "212"
"linux" "213"
}
"Weapon_GetSlot"
{
"windows" "210"
"linux" "211"
}
"Ignite"
{
"windows" "174"
"linux" "175"
}
"Extinguish"
{
"windows" "175"
"linux" "176"
}
"Teleport"
{
"windows" "93"
"linux" "94"
}
"GetVelocity"
{
"windows" "117"
"linux" "118"
}
"EyeAngles"
{
"windows" "109"
"linux" "110"
}
"AcceptInput"
{
"windows" "36"
"linux" "37"
}
"SetEntityModel"
{
"windows" "27"
"linux" "28"
}
"WeaponEquip"
{
"windows" "203"
"linux" "204"
}
"Activate"
{
"windows" "34"
"linux" "35"
}
"PlayerRunCmd"
{
"windows" "315"
"linux" "316"
}
"GiveAmmo"
{
"windows" "199"
"linux" "200"
}
"SetOwnerEntity"
{
"windows" "20"
"linux" "21"
}
"GetAttachment"
{
"windows" "170"
"linux" "171"
}
"DispatchKeyValue"
{
"windows" "32"
"linux" "31"
}
"DispatchKeyValueVector"
{
"windows" "30"
"linux" "33"
}
"DispatchKeyValueFloat"
{
"windows" "31"
"linux" "32"
}
}

"Keys"
{
"GameRulesProxy" "CHL2MPGameRulesProxy"
"GameRulesDataTable" "hl2mp_gamerules_data"
}
}
}
4 changes: 4 additions & 0 deletions gamedata/sdktools.games/master.games.txt
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,8 @@
{
"game" "tf2classic"
}
"game.gmod9.txt"
{
"game" "gmod9"
}
}

0 comments on commit 385eae8

Please sign in to comment.