Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add gamedata for tf2classic (#2088) #2089

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions gamedata/core.games/common.games.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
"game" "bms"
"game" "iosoccer"
"game" "open_fortress"
"game" "tf2classic"
}

"Keys"
Expand Down Expand Up @@ -242,6 +243,7 @@
"game" "iosoccer"
"game" "reactivedrop"
"game" "open_fortress"
"game" "tf2classic"
}

"Keys"
Expand Down Expand Up @@ -303,6 +305,7 @@
"game" "reactivedrop"
"game" "FortressForever"
"game" "open_fortress"
"game" "tf2classic"
}

"Keys"
Expand Down
184 changes: 184 additions & 0 deletions gamedata/sdkhooks.games/game.tf2classic.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
"Games"
{
"#default"
{
"Offsets"
{
/* CBaseMultiplayerPlayer::CanBeAutobalanced()*/
"CanBeAutobalanced"
{
"linux" "462"
"windows" "461"
}

/* CBaseEntity::EndTouch(CBaseEntity*) */
"EndTouch"
{
"linux" "102"
"windows" "101"
}

/* CBaseEntity::FireBullets(FireBulletsInfo_t const&) */
"FireBullets"
{
"linux" "114"
"windows" "113"
}

/* CBaseEntity::GetMaxHealth() const */
"GetMaxHealth"
{
"linux" "119"
"windows" "118"
}

// NOTE: https://asherkin.github.io/vtable/ provides the correct windows offset, GDC does not appear to.
/* CBaseEntity::NetworkStateChanged_m_hGroundEntity(void*) */
"GroundEntChanged"
{
"linux" "181"
"windows" "179"
}

/* CBaseEntity::OnTakeDamage(CTakeDamageInfo const&) */
"OnTakeDamage"
{
"linux" "64"
"windows" "63"
}

/* CBasePlayer::OnTakeDamage_Alive(CTakeDamageInfo const&) */
"OnTakeDamage_Alive"
{
"linux" "276"
"windows" "275"
}

/* CBasePlayer::PreThink() */
"PreThink"
{
"linux" "336"
"windows" "335"
}

/* CBasePlayer::PostThink() */
"PostThink"
{
"linux" "337"
"windows" "336"
}

/* CBaseCombatWeapon::Reload() */
"Reload"
{
"linux" "285"
"windows" "280"
}

/* CBaseEntity::SetTransmit(CCheckTransmitInfo*, bool) */
"SetTransmit"
{
"linux" "22"
"windows" "21"
}

/* CBaseEntity::ShouldCollide(int, int) const */
"ShouldCollide"
{
"linux" "18"
"windows" "16"
}

/* CBaseEntity::Spawn() */
"Spawn"
{
"linux" "24"
"windows" "23"
}

/* CBaseEntity::StartTouch(CBaseEntity*) */
"StartTouch"
{
"linux" "100"
"windows" "99"
}

/* CBaseEntity::Think() */
"Think"
{
"linux" "49"
"windows" "48"
}

/* CBaseEntity::Touch(CBaseEntity*) */
"Touch"
{
"linux" "101"
"windows" "100"
}

/* CBaseEntity::TraceAttack(CTakeDamageInfo const&, Vector const&, CGameTrace*, CDmgAccumulator*) */
"TraceAttack"
{
"linux" "62"
"windows" "61"
}

/* CBaseEntity::Use(CBaseEntity*, CBaseEntity*, USE_TYPE, float) */
"Use"
{
"linux" "99"
"windows" "98"
}

/* CBaseEntity::VPhysicsUpdate(IPhysicsObject*) */
"VPhysicsUpdate"
{
"linux" "160"
"windows" "159"
}

/* CBaseEntity::Blocked(CBaseEntity*) */
"Blocked"
{
"linux" "104"
"windows" "103"
}

/* CBaseCombatCharacter::Weapon_CanSwitchTo(CBaseCombatWeapon*) */
"Weapon_CanSwitchTo"
{
"linux" "270"
"windows" "269"
}

/* CBaseCombatCharacter::Weapon_CanUse(CBaseCombatWeapon*) */
"Weapon_CanUse"
{
"linux" "264"
"windows" "263"
}

/* CBaseCombatCharacter::Weapon_Drop(CBaseCombatWeapon*, Vector const*, Vector const*) */
"Weapon_Drop"
{
"linux" "267"
"windows" "266"
}

/* CBaseCombatCharacter::Weapon_Equip(CBaseCombatWeapon*) */
"Weapon_Equip"
{
"linux" "265"
"windows" "264"
}

/* CBaseCombatCharacter::Weapon_Switch(CBaseCombatWeapon*, int) */
"Weapon_Switch"
{
"linux" "268"
"windows" "267"
}
}
}
}
4 changes: 4 additions & 0 deletions gamedata/sdkhooks.games/master.games.txt
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,8 @@
{
"game" "!Dystopia"
}
"game.tf2classic.txt"
{
"game" "tf2classic"
}
}
153 changes: 153 additions & 0 deletions gamedata/sdktools.games/game.tf2classic.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
"Games"
{
"#default"
{
"Offsets"
{
/* CBaseTempEntity::GetName() */
"GetTEName"
{
"windows" "4"
"linux" "4"
"mac" "4"
}

/* CBaseTempEntity::GetNext() */
"GetTENext"
{
"windows" "8"
"linux" "8"
"mac" "8"
}

/* CBaseTempEntity::GetServerClass() */
"TE_GetServerClass"
{
"windows" "0"
"linux" "0"
"mac" "0"
}

/* CBasePlayer::GiveNamedItem(char const*, int) */
"GiveNamedItem"
{
"linux" "404"
"windows" "403"
}

/* CBaseCombatCharacter::RemovePlayerItem(CBaseCombatWeapon*) */
"RemovePlayerItem"
{
"linux" "274"
"windows" "273"
}

/* CBaseCombatCharacter::Weapon_GetSlot(int) const */
"Weapon_GetSlot"
{
"linux" "272"
"windows" "271"
}

/* CBaseAnimating::Ignite(float, bool, float, bool) */
"Ignite"
{
"linux" "213"
"windows" "212"
}

/* CBaseAnimating::Extinguish() */
"Extinguish"
{
"linux" "217"
"windows" "216"
}

/* CBaseEntity::Teleport(Vector const*, QAngle const*, Vector const*) */
"Teleport"
{
"linux" "111"
"windows" "109"
}

/* CBasePlayer::CommitSuicide(bool, bool) */
"CommitSuicide"
{
"linux" "444"
"windows" "444"
}

/* CBaseEntity::GetVelocity(Vector*, Vector*) */
"GetVelocity"
{
"linux" "142"
"windows" "141"
}

/* CBaseEntity::EyeAngles() */
"EyeAngles"
{
"linux" "133"
"windows" "132"
}

/* CBaseEntity::SetModel(char const*) */
"SetEntityModel"
{
"linux" "26"
"windows" "25"
}

/* CBaseEntity::AcceptInput(char const*, CBaseEntity*, CBaseEntity*, variant_t, int) */
"AcceptInput"
{
"linux" "38"
"windows" "37"
}

/* CBaseCombatCharacter::Weapon_Equip(CBaseCombatWeapon*) */
"WeaponEquip"
{
"linux" "265"
"windows" "264"
}

/* CBaseEntity::Activate() */
"Activate"
{
"linux" "35"
"windows" "34"
}

/* CBasePlayer::PlayerRunCommand(CUserCmd*, IMoveHelper*) */
"PlayerRunCmd"
{
"linux" "422"
"windows" "421"
}

/* CBaseCombatCharacter::GiveAmmo(int, int, bool) */
"GiveAmmo"
{
"linux" "256"
"windows" "255"
}
}

"Keys"
{
"GameRulesProxy" "CTFGameRulesProxy"
"GameRulesDataTable" "tf_gamerules_data"
}

"Signatures"
{
"FireOutput"
{
"library" "server"
"windows" "@?FireOutput@COutputEvent@@QAEXPAVCBaseEntity@@0M@Z"
"linux" "@_ZN12COutputEvent10FireOutputEP11CBaseEntityS1_f"
}
}
}
}
4 changes: 4 additions & 0 deletions gamedata/sdktools.games/master.games.txt
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,8 @@
{
"game" "open_fortress"
}
"game.tf2classic.txt"
{
"game" "tf2classic"
}
}
Loading